home/neovim: Configure NIL

This commit is contained in:
fleaz 2024-04-16 14:31:38 +02:00
parent 160952445a
commit 1c18f14092
No known key found for this signature in database
GPG key ID: AED15F8FDD04D083

View file

@ -141,6 +141,7 @@
let g:go_highlight_types = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
" Don't use gopls from vim-go
let g:go_gopls_enabled = 0
@ -159,6 +160,20 @@
require('lspconfig').gopls.setup{}
require('lspconfig').pyright.setup{}
require('lspconfig').nil_ls.setup {
autostart = true,
capabilities = caps,
cmd = { "nil" },
settings = {
['nil'] = {
testSetting = 42,
formatting = {
command = { "nixpkgs-fmt" },
},
},
},
}
vim.api.nvim_create_autocmd('LspAttach', {
desc = 'LSP actions',
callback = function()