1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 17:28:01 +00:00
This commit is contained in:
Daniel Carrillo 2023-03-12 13:58:45 +01:00
parent 6567e2daae
commit ff52cc24f0
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
3 changed files with 15 additions and 4 deletions

View File

@ -50,12 +50,12 @@ M.setup = function()
end end
M.on_attach = function(client) M.on_attach = function(client)
if client.name == "tsserver" then if client.name == "lua_ls" then
client.server_capabilities.document_formatting = false client.server_capabilities.document_formatting = false
end end
if client.name == "lua_ls" then if client.name == "ruff-lsp" then
client.server_capabilities.document_formatting = false client.server_capabilities.hover = false
end end
local status_ok, illuminate = pcall(require, "illuminate") local status_ok, illuminate = pcall(require, "illuminate")

View File

@ -5,8 +5,9 @@ local servers = {
"html", "html",
"jdtls", "jdtls",
"jsonls", "jsonls",
"pyright",
"lua_ls", "lua_ls",
"pyright",
"ruff_lsp",
"terraformls", "terraformls",
"yamlls", "yamlls",
} }

View File

@ -0,0 +1,10 @@
return {
settings = {
python = {
analysis = {
autoSearchPaths = true,
useLibraryCodeForTypes = true,
},
},
},
}