diff --git a/home-manager/modules/neovim.nix b/home-manager/modules/neovim.nix index 9d37310..08f047a 100644 --- a/home-manager/modules/neovim.nix +++ b/home-manager/modules/neovim.nix @@ -1,4 +1,24 @@ -{ pkgs, ... }: { +{ pkgs, ... }: +{ + home.file.".config/nvim/coc-settings.json".text = '' + { + "diagnostic.virtualText": true, + "diagnostic.checkCurrentLine": false, + "diagnostic.virtualTextCurrentLineOnly": false, + "diagnostic.messageTarget": "", + + "suggest.noselect": true, + + "languageserver": { + "nix": { + "command": "nil", + "filetypes": ["nix"], + "rootPatterns": ["flake.nix"] + } + } + } + ''; + programs.neovim = { enable = true; withPython3 = true;