First Commit
This commit is contained in:
29
data/lsp_servers/lua.lua
Normal file
29
data/lsp_servers/lua.lua
Normal file
@ -0,0 +1,29 @@
|
||||
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
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user