diff options
Diffstat (limited to 'home-manager/soispha/config/neovim/nixvim/plugins/lsp/default.nix')
-rw-r--r-- | home-manager/soispha/config/neovim/nixvim/plugins/lsp/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/home-manager/soispha/config/neovim/nixvim/plugins/lsp/default.nix b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/default.nix new file mode 100644 index 00000000..8fd09e3d --- /dev/null +++ b/home-manager/soispha/config/neovim/nixvim/plugins/lsp/default.nix @@ -0,0 +1,33 @@ +{...}: { + imports = [ + ./keymaps + ./servers + ]; + programs.nixvim.plugins.lsp = { + enable = true; + onAttach = + "" + # + '' + # function(client, bufnr) + # -- Enable completion triggered by <c-x><c-o> + # -- vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') + # end + # '' + ; + # TODO only for cmp_nvim_lsp + capabilities = '' + capabilities = require('cmp_nvim_lsp').default_capabilities(); + ''; + preConfig = '' + vim.diagnostic.config({ + underline = true, + -- virtual_text = true, + virtual_text = { + source = "always", -- Or "if_many" + }, + update_in_insert = true, + severity_sort = true, + }, nil); + ''; + }; +} |