nvchad-custom/configs/lspconfig.lua

27 lines
492 B
Lua
Raw Normal View History

2024-02-26 08:54:13 -06:00
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 = {"*"},
},
},
},
2024-02-26 08:54:13 -06:00
})
lspconfig.ruff_lsp.setup({
filetypes = {"python"},
})