This commit is contained in:
2021-09-12 16:42:08 +02:00
parent ad50027cd3
commit f43691093d
7 changed files with 68 additions and 4 deletions

22
lua/lsp/lua.lua Normal file
View File

@ -0,0 +1,22 @@
local M = {
Lua = {
runtime = {
-- LuaJIT in the case of Neovim
version = 'LuaJIT',
path = vim.split(package.path, ';'),
},
diagnostics = {
-- Get the language server to recognize the `vim` global
globals = {'vim'},
},
workspace = {
-- Make the server aware of Neovim runtime files
library = {
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
},
},
}
}
return M