aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/lua/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/plugins')
-rw-r--r--nvim/lua/plugins/lsp.lua53
1 files changed, 28 insertions, 25 deletions
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index b0b1ac6..d0ec530 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -98,35 +98,38 @@ local mason_lspconfig = {
handlers = {
function(server_name)
require('lspconfig')[server_name].setup({})
- end
- },
- ["lua_ls"] = function()
- require('lspconfig').lua_ls.setup({
- settings = {
- Lua = {
- diagnostics = {
- globals = { "vim" }
+ end,
+ ["lua_ls"] = function()
+ require('lspconfig').lua_ls.setup({
+ settings = {
+ Lua = {
+ diagnostics = {
+ globals = { "vim" }
+ }
}
}
- }
- })
- end,
- ["basedpyright"] = function()
- require('lspconfig').setup({
- settings = {
- pyright = {
- -- defer to ruff for import oranization
- disableOrganizeImports = true,
- },
- python = {
- analysis = {
- -- Ignore all files for analysis to exclusively use Ruff for linting
- ignore = { '*' },
+ })
+ end,
+ ["basedpyright"] = function()
+ require('lspconfig').basedpyright.setup({
+ settings = {
+ basedpyright = {
+ -- defer to ruff for import oranization
+ disableOrganizeImports = true,
+ analysis = {
+ typeCheckingMode = "standard"
+ }
+ },
+ python = {
+ analysis = {
+ -- Ignore all files for analysis to exclusively use Ruff for linting
+ ignore = { '*' },
+ },
},
},
- },
- })
- end
+ })
+ end
+ },
}
}