updated python configs

This commit is contained in:
Daveanand Mannie
2024-08-26 01:06:52 -04:00
parent e5dc5faaeb
commit c066a50450
3 changed files with 104 additions and 10 deletions

View File

@@ -8,6 +8,21 @@ return {
opts = {
inlay_hints = { enabled = false },
servers = {
ruff = {
cmd_env = { RUFF_TRACE = "messages" },
init_options = {
settings = {
logLevel = "error",
},
},
keys = {
{
"<leader>co",
LazyVim.lsp.action["source.organizeImports"],
desc = "Organize Imports",
},
},
},
basedpyright = {
cmd_env = { RUFF_TRACE = "messages" },
init_options = {
@@ -29,7 +44,7 @@ return {
{
"neovim/nvim-lspconfig",
opts = function(_, opts)
local servers = { "basedpyright", "ruff" }
local servers = { "basedpyright" }
for _, server in ipairs(servers) do
opts.servers[server] = opts.servers[server] or {}
opts.servers[server].enabled = server == "basedpyright"