aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2026-03-25 07:08:57 +0100
committerThomas Schmucker <ts@its1.de>2026-03-25 07:08:57 +0100
commite99756d1d5acb6805003b403985ee0a2a253bf26 (patch)
tree7dac1f53da9f2f231d4457dd56589b3a514e841d /nvim/lua
parent9f6461c5b1cb6754b130b30dfe9ba50fd1fcf9cb (diff)
downloaddotfiles-e99756d1d5acb6805003b403985ee0a2a253bf26.tar.gz
dotfiles-e99756d1d5acb6805003b403985ee0a2a253bf26.tar.bz2
dotfiles-e99756d1d5acb6805003b403985ee0a2a253bf26.zip
Neovim: Sonarqube Unterstützung hinzugefügt
Diffstat (limited to 'nvim/lua')
-rw-r--r--nvim/lua/config/treesitter.lua1
-rw-r--r--nvim/lua/config/usercmds.lua31
-rw-r--r--nvim/lua/plugins/lsp.lua13
3 files changed, 45 insertions, 0 deletions
diff --git a/nvim/lua/config/treesitter.lua b/nvim/lua/config/treesitter.lua
index 2bdfce5..f3024f0 100644
--- a/nvim/lua/config/treesitter.lua
+++ b/nvim/lua/config/treesitter.lua
@@ -12,6 +12,7 @@ M.languages = {
12 "make", 12 "make",
13 "markdown", 13 "markdown",
14 "markdown_inline", 14 "markdown_inline",
15 "po",
15 "prisma", 16 "prisma",
16 "python", 17 "python",
17 "typescript", 18 "typescript",
diff --git a/nvim/lua/config/usercmds.lua b/nvim/lua/config/usercmds.lua
new file mode 100644
index 0000000..e7dd220
--- /dev/null
+++ b/nvim/lua/config/usercmds.lua
@@ -0,0 +1,31 @@
1local function run_sonar()
2 local exe = vim.fn.exepath("sonar-scanner")
3
4 if exe == "" then
5 vim.notify("sonar-scanner nicht im PATH gefunden", vim.log.levels.ERROR)
6 return
7 end
8
9 if vim.fn.executable(exe) == 0 then
10 vim.notify("sonar-scanner ist nicht ausführbar", vim.log.levels.ERROR)
11 return
12 end
13
14 -- vim.cmd("!" .. exe)
15 vim.cmd("botright split | terminal " .. exe)
16 vim.cmd("norm G")
17end
18
19local function load_sonar_issues()
20 local cmd = vim.fn.stdpath("config") .. "/scripts/sonarqube.sh"
21
22 vim.fn.setqflist({}, " ", {
23 title = "SonarQube Issues",
24 lines = vim.fn.systemlist(cmd),
25 })
26
27 vim.cmd("copen")
28end
29
30vim.api.nvim_create_user_command("SonarScan", run_sonar, {})
31vim.api.nvim_create_user_command("SonarIssues", load_sonar_issues, {})
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
index 3d53350..03a6be0 100644
--- a/nvim/lua/plugins/lsp.lua
+++ b/nvim/lua/plugins/lsp.lua
@@ -56,6 +56,10 @@ return {
56 capabilities = capabilities, 56 capabilities = capabilities,
57 } 57 }
58 58
59 vim.lsp.config.jsonls = {
60 capabilities = capabilities,
61 }
62
59 vim.lsp.config.vtsls = { 63 vim.lsp.config.vtsls = {
60 capabilities = capabilities, 64 capabilities = capabilities,
61 settings = { 65 settings = {
@@ -73,6 +77,14 @@ return {
73 variableTypes = { enabled = false }, 77 variableTypes = { enabled = false },
74 }, 78 },
75 }, 79 },
80 javascript = {
81 suggest = {
82 completeFunctionCalls = true,
83 },
84 inlayHints = {
85 parameterNames = { enabled = "all" },
86 },
87 },
76 }, 88 },
77 } 89 }
78 90
@@ -97,6 +109,7 @@ return {
97 "basedpyright", -- npm install -g basedpyright, brew install basedpyright 109 "basedpyright", -- npm install -g basedpyright, brew install basedpyright
98 "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck 110 "bashls", -- npm install -g bash-language-server, pkg install hs-ShellCheck
99 "clangd", -- pkg install llvm 111 "clangd", -- pkg install llvm
112 "jsonls", -- npm install -g vscode-langservers-extracted
100 "lua_ls", -- pkg install lua-language-server 113 "lua_ls", -- pkg install lua-language-server
101 "prismals", -- npm install -g @prisma/language-server 114 "prismals", -- npm install -g @prisma/language-server
102 "vtsls", -- npm install -g @vtsls/language-server 115 "vtsls", -- npm install -g @vtsls/language-server