26 lines
492 B
Lua
26 lines
492 B
Lua
local config = require("plugins.configs.lspconfig")
|
|
|
|
local on_attach = config.on_attach
|
|
local capabilities = config.capabilities
|
|
|
|
local lspconfig = require("lspconfig")
|
|
|
|
lspconfig.pyright.setup({
|
|
on_attach = on_attach,
|
|
capabilities = capabilities,
|
|
filetypes = {"python"},
|
|
settings = {
|
|
pyright = {
|
|
disableOrganizeImports = true,
|
|
},
|
|
python = {
|
|
analysis = {
|
|
ignore = {"*"},
|
|
},
|
|
},
|
|
},
|
|
})
|
|
|
|
lspconfig.ruff_lsp.setup({
|
|
filetypes = {"python"},
|
|
})
|