Files
nvim/data/lsp_servers/lua.lua
Norm Rasmussen 1f66ee24e0 First Commit
2022-03-03 13:52:43 -05:00

30 lines
600 B
Lua

local lsp_config = require('nvim-lspconfig')
local on_attach = require('lsp/on_attach')
lsp_config.sumneko_lua.setup({
on_attach = on_attach,
settings = {
Lua = {
runtime = {
version = 'LuaJIT',
},
diagnostics = {
enable = true,
globals = {
"vim",
"describe",
"it",
"before_each",
"after_each"
}
},
workspace = {
library = {
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true
},
},
}
}
})