aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/plugins/lsp.lua
diff options
context:
space:
mode:
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}