aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-01-13 15:51:01 +0100
committerThomas Schmucker <ts@its1.de>2026-01-13 15:51:01 +0100
commitfbcb16d2116842b7e6394635c5da97b10e8c83ea (patch)
tree8491e21da536e88ad9778fc2b60006888528dd9a /nvim
parentcce88d21d475cef3b0f8377c042ad62438d1674b (diff)
downloaddotfiles-fbcb16d2116842b7e6394635c5da97b10e8c83ea.tar.gz
dotfiles-fbcb16d2116842b7e6394635c5da97b10e8c83ea.tar.bz2
dotfiles-fbcb16d2116842b7e6394635c5da97b10e8c83ea.zip
Neovim: pyright als LSP hinzugefügt
Diffstat (limited to 'nvim')
-rw-r--r--nvim/lua/plugins/lsp.lua46
1 files changed, 33 insertions, 13 deletions
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index 69ba9df..17ca039 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -3,44 +3,64 @@ return {
3 "neovim/nvim-lspconfig", 3 "neovim/nvim-lspconfig",
4 lazy = false, 4 lazy = false,
5 config = function() 5 config = function()
6 local capabilities = vim.lsp.protocol.make_client_capabilities()
7
6 vim.lsp.config.lua_ls = { 8 vim.lsp.config.lua_ls = {
9 capabilities = capabilities,
7 settings = { 10 settings = {
8 Lua = { 11 Lua = {
12 runtime = {
13 version = "LuaJIT",
14 },
9 diagnostics = { 15 diagnostics = {
10 globals = { "vim" }, 16 globals = { "vim" },
11 }, 17 },
12 workspace = { 18 workspace = {
13 checkThirdParty = false, 19 checkThirdParty = false,
14 library = { 20 library = {
15 vim.fn.expand("$VIMRUNTIME/lua"), 21 vim.env.VIMRUNTIME .. "/lua",
16 vim.fn.expand("$XDG_CONFIG_HOME") .. "/nvim/lua", 22 vim.fn.stdpath("config") .. "/lua",
17 }, 23 },
18 }, 24 },
25 telemetry = {
26 enable = false,
27 },
19 }, 28 },
20 }, 29 },
21 } 30 }
22 31
23 vim.lsp.config.bashls = { 32 vim.lsp.config.bashls = {
33 capabilities = capabilities,
34 filetypes = { "sh", "bash", "zsh" },
35 }
36
37 vim.lsp.config.clangd = {
38 capabilities = capabilities,
39 }
40
41 vim.lsp.config.tsserver = {
42 capabilities = capabilities,
43 }
44
45 vim.lsp.config.pyright = {
46 capabilities = capabilities,
24 settings = { 47 settings = {
25 bashIde = { 48 python = {
26 shellcheck = { -- pkg install hs-ShellCheck 49 analysis = {
27 enable = true, 50 typeCheckingMode = "basic", -- oder "strict" für strenger
28 severity = { 51 autoSearchPaths = true,
29 error = "error", 52 useLibraryCodeForTypes = true,
30 warning = "warning",
31 info = "info",
32 },
33 }, 53 },
34 globPattern = "**/*.sh",
35 }, 54 },
36 }, 55 },
37 } 56 }
38 57
39 vim.lsp.enable({ 58 vim.lsp.enable({
40 "bashls", -- npm install -g bash-language-server 59 "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck
41 "clangd", -- pkg install llvm 60 "clangd", -- pkg install llvm
42 "lua_ls", -- pkg install lua-language-server 61 "lua_ls", -- pkg install lua-language-server
43 "ts_ls", -- npm install -g typescript typescript-language-server 62 "tsserver", -- npm install -g typescript typescript-language-server
63 "pyright", -- npm install -g pyright, brew install pyright
44 }) 64 })
45 end, 65 end,
46 }, 66 },