mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 08:08:00 +00:00
.
This commit is contained in:
parent
6567e2daae
commit
ff52cc24f0
@ -50,12 +50,12 @@ M.setup = function()
|
||||
end
|
||||
|
||||
M.on_attach = function(client)
|
||||
if client.name == "tsserver" then
|
||||
if client.name == "lua_ls" then
|
||||
client.server_capabilities.document_formatting = false
|
||||
end
|
||||
|
||||
if client.name == "lua_ls" then
|
||||
client.server_capabilities.document_formatting = false
|
||||
if client.name == "ruff-lsp" then
|
||||
client.server_capabilities.hover = false
|
||||
end
|
||||
|
||||
local status_ok, illuminate = pcall(require, "illuminate")
|
||||
|
@ -5,8 +5,9 @@ local servers = {
|
||||
"html",
|
||||
"jdtls",
|
||||
"jsonls",
|
||||
"pyright",
|
||||
"lua_ls",
|
||||
"pyright",
|
||||
"ruff_lsp",
|
||||
"terraformls",
|
||||
"yamlls",
|
||||
}
|
||||
|
10
.config/nvim/lua/plugins/lsp/settings/pyright.lua
Normal file
10
.config/nvim/lua/plugins/lsp/settings/pyright.lua
Normal file
@ -0,0 +1,10 @@
|
||||
return {
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user