LSP-specific settings
This commit is contained in:
parent
7a03ce9563
commit
8e135e03ff
1 changed files with 6 additions and 2 deletions
|
|
@ -343,10 +343,14 @@ local on_attach = function(client, bufno)
|
|||
vim.api.nvim_command [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()]]
|
||||
end
|
||||
|
||||
local servers = { 'gopls', 'rust_analyzer' }
|
||||
for _, lsp in ipairs(servers) do
|
||||
local servers = {
|
||||
gopls = {},
|
||||
rust_analyzer = {},
|
||||
}
|
||||
for lsp, settings in pairs(servers) do
|
||||
nvim_lsp[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
settings = settings,
|
||||
}
|
||||
end
|
||||
LSPCONFIG
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue