lua_ls: fix vim global not found

This commit is contained in:
Asmir A 2023-07-09 12:01:44 +02:00
parent aa745901c6
commit 44eaabc43c

View File

@ -194,6 +194,23 @@ end
require('lspconfig').lua_ls.setup({
single_file_support = true,
settings = {
Lua = {
diagnostics = {
globals = { 'vim' },
},
runtime = {
version = 'LuaJIT',
path = vim.split(package.path, ';'),
},
workspace = {
library = {
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
[vim.fn.expand('$VIMRUNTIME/lua/vim/lsp')] = true,
},
},
},
},
})
require('lspconfig').verible.setup({