From e8bd36899b88285c94c850f0dfce0754d94cfe24 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 22 Dec 2025 17:37:13 +0100 Subject: Neovim: Neue Konfiguration --- nvim/lua/plugins/lsp.lua | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nvim/lua/plugins/lsp.lua (limited to 'nvim/lua/plugins/lsp.lua') 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 @@ +return { + { + "neovim/nvim-lspconfig", + lazy = false, + config = function() + vim.lsp.config.lua_ls = { + settings = { + Lua = { + diagnostics = { + globals = { "vim" }, + }, + workspace = { + checkThirdParty = false, + library = { + vim.fn.expand("$VIMRUNTIME/lua"), + vim.fn.expand("$XDG_CONFIG_HOME") .. "/nvim/lua", + }, + }, + }, + }, + } + + vim.lsp.enable({ + "clangd", -- pkg install llvm + "lua_ls", -- pkg install lua-language-server + }) + end, + }, +} -- cgit v1.3