neovim: set up coc for nix files
Alan Pearce alan@alanpearce.eu
Tue, 14 Mar 2023 21:39:56 +0100
1 files changed, 5 insertions(+), 0 deletions(-)
jump to
M user/settings/neovim.nix → user/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";