From fa2d41901d9fd10fd257c7ccc249ab29c5df2e33 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 14 Mar 2023 21:39:56 +0100 Subject: neovim: set up coc for nix files --- user/settings/neovim.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'user') 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"; -- cgit 1.4.1