Switched Screens
This commit is contained in:
parent
a004c8c24d
commit
a9bebf4efd
11 changed files with 97 additions and 18 deletions
|
@ -26,12 +26,12 @@ local on_attach = function(client, bufnr)
|
|||
end
|
||||
|
||||
local servers = {
|
||||
"bashls",
|
||||
"cssls",
|
||||
"eslint",
|
||||
--"bashls",
|
||||
--"cssls",
|
||||
--"eslint",
|
||||
--"ltex",
|
||||
"sumneko_lua",
|
||||
"tsserver",
|
||||
--"tsserver",
|
||||
--"pyright",
|
||||
"jedi_language_server",
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ null_ls.setup({
|
|||
sources = sources,
|
||||
|
||||
on_attach = function(client)
|
||||
if client.resolved_capabilities.document_formatting then
|
||||
if client.server_capabilities.document_formatting then
|
||||
vim.cmd("autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting()")
|
||||
end
|
||||
end,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue