save
This commit is contained in:
15
nvim/.config/nvim/lsp/basedpyright.lua
Normal file
15
nvim/.config/nvim/lsp/basedpyright.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
cmd = { 'basedpyright', '--stdio' },
|
||||
settings = {
|
||||
python = {
|
||||
analysis = {
|
||||
typeCheckingMode = vim.env.TYPE_CHECKING_MODE or 'basic',
|
||||
autoSearchPaths = true,
|
||||
useLibraryCodeForTypes = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
filetypes = { 'python' },
|
||||
root_markers = { 'pyproject.toml', 'setup.py', 'requirements.txt', '.git' },
|
||||
}
|
||||
@@ -6,6 +6,6 @@ return {
|
||||
globPattern = vim.env.GLOB_PATTERN or '*@(.sh|.inc|.bash|.command)',
|
||||
},
|
||||
},
|
||||
filetypes = { 'bash', 'sh' },
|
||||
filetypes = { 'bash', 'sh', 'zsh' },
|
||||
root_markers = { '.git' },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user