all repos — nixfiles @ fa2d41901d9fd10fd257c7ccc249ab29c5df2e33

System and user configuration, managed by nix and home-manager

neovim: set up coc for nix files
Alan Pearce alan@alanpearce.eu
Tue, 14 Mar 2023 21:39:56 +0100
commit

fa2d41901d9fd10fd257c7ccc249ab29c5df2e33

parent

0f1b6a0fb092d044db6bbaebf25198b3f96c61f9

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M user/settings/neovim.nixuser/settings/neovim.nix
@@ -23,6 +23,11 @@ enable = true;       settings = {
         "json.enable" = true;
         "suggest.enablePreview" = true;
+        "coc.preferences.formatOnSaveFiletypes" = [ "nix" ];
+        "nil.formatting.command" = "nixpkgs-fmt";
+        semantictokens = {
+          filetypes = [ "nix" ];
+        };
         languageserver = {
           nix = {
             command = "${pkgs.nil}/bin/nil";