diff options
author | Alan Pearce | 2023-03-14 21:39:56 +0100 |
---|---|---|
committer | Alan Pearce | 2023-03-14 21:39:56 +0100 |
commit | fa2d41901d9fd10fd257c7ccc249ab29c5df2e33 (patch) | |
tree | c0429a3115ec4eb7acec007d56ab694124779157 /user | |
parent | 0f1b6a0fb092d044db6bbaebf25198b3f96c61f9 (diff) | |
download | nixfiles-fa2d41901d9fd10fd257c7ccc249ab29c5df2e33.tar.lz nixfiles-fa2d41901d9fd10fd257c7ccc249ab29c5df2e33.tar.zst nixfiles-fa2d41901d9fd10fd257c7ccc249ab29c5df2e33.zip |
neovim: set up coc for nix files
Diffstat (limited to 'user')
-rw-r--r-- | user/settings/neovim.nix | 5 |
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"; |