post-update

This commit is contained in:
hakase
2025-04-05 10:09:03 -05:00
parent 6bcb31995a
commit 2a58ee17e7
4 changed files with 37 additions and 9 deletions
+15 -9
View File
@@ -17,7 +17,7 @@ for _, lsp in ipairs(servers) do
end
-- typescript
lspconfig.tsserver.setup {
lspconfig.ts_ls.setup {
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
@@ -54,17 +54,23 @@ lspconfig.gopls.setup {
}
---- ruff_lsp and pyright compatibility
local on_attach = function(client, bufnr)
if client.name == 'ruff_lsp' then
-- hover in favor of Pyright
client.server_capabilities.hoverProvider = false
end
end
lspconfig.ruff_lsp.setup{
-- local on_attach = function(client, bufnr)
-- if client.name == 'ruff_lsp' then
-- -- hover in favor of Pyright
-- client.server_capabilities.hoverProvider = false
-- end
-- end
--
lspconfig.ruff.setup{
on_attach = on_attach,
on_init = on_init,
capabilities = capabilities,
init_options = {
settings = {
}
},
}