mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
fix(neovim): Python basedpyright LSP settings
This commit is contained in:
16
common/.config/nvim/lsp/basedpyright.lua
Normal file
16
common/.config/nvim/lsp/basedpyright.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
cmd = { "basedpyright" },
|
||||
filetypes = { "python" },
|
||||
settings = {
|
||||
basedpyright = {
|
||||
analysis = {
|
||||
typeCheckingMode = "basic",
|
||||
diagnosticMode = "openFilesOnly",
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
disableOrganizeImports = true, -- let ruff do it
|
||||
},
|
||||
python = { analysis = { ignore = { "*" } } }, -- let ruff do it
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user