aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/lsp.lua
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2025-12-22 17:37:13 +0100
committerThomas Schmucker <ts@its1.de>2025-12-22 17:37:13 +0100
commite8bd36899b88285c94c850f0dfce0754d94cfe24 (patch)
treeaa857a427db278888233ab03cad59b138d16eaa8 /nvim/lua/plugins/lsp.lua
parent6f6457b7397247a34e25d4d9bfca434d8306283e (diff)
downloaddotfiles-e8bd36899b88285c94c850f0dfce0754d94cfe24.tar.gz
dotfiles-e8bd36899b88285c94c850f0dfce0754d94cfe24.tar.bz2
dotfiles-e8bd36899b88285c94c850f0dfce0754d94cfe24.zip
Neovim: Neue Konfiguration
Diffstat (limited to 'nvim/lua/plugins/lsp.lua')
-rw-r--r--nvim/lua/plugins/lsp.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua
new file mode 100644
index 0000000..e888ae0
--- /dev/null
+++ b/nvim/lua/plugins/lsp.lua
@@ -0,0 +1,29 @@
1return {
2 {
3 "neovim/nvim-lspconfig",
4 lazy = false,
5 config = function()
6 vim.lsp.config.lua_ls = {
7 settings = {
8 Lua = {
9 diagnostics = {
10 globals = { "vim" },
11 },
12 workspace = {
13 checkThirdParty = false,
14 library = {
15 vim.fn.expand("$VIMRUNTIME/lua"),
16 vim.fn.expand("$XDG_CONFIG_HOME") .. "/nvim/lua",
17 },
18 },
19 },
20 },
21 }
22
23 vim.lsp.enable({
24 "clangd", -- pkg install llvm
25 "lua_ls", -- pkg install lua-language-server
26 })
27 end,
28 },
29}