dotfiles/nvim/after/lsp/lua_ls.lua
2026-06-02 08:20:14 +02:00

21 lines
517 B
Lua

-- settings for lua-language-server can be found on https://luals.github.io/wiki/settings/
---@type vim.lsp.Config
return {
---@type lspconfig.settings.lua_ls
settings = {
Lua = {
runtime = {
-- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
version = "LuaJIT",
},
hint = {
enable = true,
},
workspace = {
library = {
vim.env.VIMRUNTIME .. "/lua",
},
},
},
},
}