home/neovim: Configure NIL
This commit is contained in:
parent
160952445a
commit
1c18f14092
|
@ -141,6 +141,7 @@
|
||||||
let g:go_highlight_types = 1
|
let g:go_highlight_types = 1
|
||||||
let g:go_highlight_operators = 1
|
let g:go_highlight_operators = 1
|
||||||
let g:go_highlight_build_constraints = 1
|
let g:go_highlight_build_constraints = 1
|
||||||
|
|
||||||
" Don't use gopls from vim-go
|
" Don't use gopls from vim-go
|
||||||
let g:go_gopls_enabled = 0
|
let g:go_gopls_enabled = 0
|
||||||
|
|
||||||
|
@ -159,6 +160,20 @@
|
||||||
require('lspconfig').gopls.setup{}
|
require('lspconfig').gopls.setup{}
|
||||||
require('lspconfig').pyright.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', {
|
vim.api.nvim_create_autocmd('LspAttach', {
|
||||||
desc = 'LSP actions',
|
desc = 'LSP actions',
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
Loading…
Reference in a new issue