summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-03-14 21:39:56 +0100
committerAlan Pearce2023-03-14 21:39:56 +0100
commitfa2d41901d9fd10fd257c7ccc249ab29c5df2e33 (patch)
treec0429a3115ec4eb7acec007d56ab694124779157
parent0f1b6a0fb092d044db6bbaebf25198b3f96c61f9 (diff)
downloadnixfiles-fa2d41901d9fd10fd257c7ccc249ab29c5df2e33.tar.lz
nixfiles-fa2d41901d9fd10fd257c7ccc249ab29c5df2e33.tar.zst
nixfiles-fa2d41901d9fd10fd257c7ccc249ab29c5df2e33.zip
neovim: set up coc for nix files
-rw-r--r--user/settings/neovim.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/user/settings/neovim.nix b/user/settings/neovim.nix
index 108b51a7..59c75a91 100644
--- a/user/settings/neovim.nix
+++ b/user/settings/neovim.nix
@@ -23,6 +23,11 @@
       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";