Initial LSP setup with formatting and autocompletion
This commit is contained in:
14
after/lsp/lua_ls.lua
Normal file
14
after/lsp/lua_ls.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
---@type vim.lsp.Config
|
||||
local settings = {
|
||||
---@type lspconfig.settings.lua_ls
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = {
|
||||
version = 'LuaJIT',
|
||||
},
|
||||
workspace = { checkThirdParty = false, library = vim.list_extend({ vim.fn.expand('$VIMRUNTIME') }, vim.api.nvim_get_runtime_file('lua', true)) },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return settings
|
||||
Reference in New Issue
Block a user