From cf76f3cf424c426eb49b0227e97f3fcf38018782 Mon Sep 17 00:00:00 2001 From: fleaz Date: Wed, 22 Feb 2023 22:23:25 +0100 Subject: [PATCH] modules/neovim: Also manage coc setings file --- home-manager/modules/neovim.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) 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;