nvim/lua/cosmic/lsp/providers/lua_ls.lua
2023-08-29 11:27:15 -07:00

22 lines
536 B
Lua

return {
settings = {
Lua = {
hint = {
enable = true,
},
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,
[vim.fn.stdpath('config') .. '/lua'] = true,
},
maxPreload = 10000,
},
},
},
}