diff options
| author | Thomas Schmucker <ts@its1.de> | 2026-01-15 09:24:17 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2026-01-15 09:24:17 +0100 |
| commit | ddd9176e4608e1e34f0befe1315adae515672c2e (patch) | |
| tree | 7d7e553eeded92dce865d4575d006b2bec092772 /nvim/lua/plugins | |
| parent | 2fe1e0e5209edc66e896077fd4d368ec43e5911b (diff) | |
| download | dotfiles-ddd9176e4608e1e34f0befe1315adae515672c2e.tar.gz dotfiles-ddd9176e4608e1e34f0befe1315adae515672c2e.tar.bz2 dotfiles-ddd9176e4608e1e34f0befe1315adae515672c2e.zip | |
neovim: benutze 'basedpyright' statt 'pyright'
Diffstat (limited to 'nvim/lua/plugins')
| -rw-r--r-- | nvim/lua/plugins/lsp.lua | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 825ffb6..9896430 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua | |||
| @@ -56,11 +56,15 @@ return { | |||
| 56 | }, | 56 | }, |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | vim.lsp.config.pyright = { | 59 | vim.lsp.config.basedpyright = { |
| 60 | capabilities = capabilities, | 60 | capabilities = capabilities, |
| 61 | settings = { | 61 | settings = { |
| 62 | python = { | 62 | basedpyright = { |
| 63 | analysis = { | 63 | analysis = { |
| 64 | diagnosticMode = "openFilesOnly", | ||
| 65 | inlayHints = { | ||
| 66 | callArgumentNames = true, | ||
| 67 | }, | ||
| 64 | typeCheckingMode = "basic", -- oder "strict" für strenger | 68 | typeCheckingMode = "basic", -- oder "strict" für strenger |
| 65 | autoSearchPaths = true, | 69 | autoSearchPaths = true, |
| 66 | useLibraryCodeForTypes = true, | 70 | useLibraryCodeForTypes = true, |
| @@ -74,7 +78,7 @@ return { | |||
| 74 | "clangd", -- pkg install llvm | 78 | "clangd", -- pkg install llvm |
| 75 | "lua_ls", -- pkg install lua-language-server | 79 | "lua_ls", -- pkg install lua-language-server |
| 76 | "ts_ls", -- npm install -g typescript typescript-language-server | 80 | "ts_ls", -- npm install -g typescript typescript-language-server |
| 77 | "pyright", -- npm install -g pyright, brew install pyright | 81 | "basedpyright", -- npm install -g basedpyright, brew install basedpyright |
| 78 | }) | 82 | }) |
| 79 | end, | 83 | end, |
| 80 | }, | 84 | }, |
