37 lines
978 B
Lua
37 lines
978 B
Lua
local lsp = require("lsp")
|
|
|
|
local lua_library_paths = { vim.env.VIMRUNTIME }
|
|
vim.list_extend(lua_library_paths, require("pack").paths)
|
|
|
|
---@type vim.lsp.Config
|
|
return {
|
|
settings = {
|
|
Lua = {
|
|
completion = { showWord = "Disable" },
|
|
runtime = {
|
|
version = "LuaJIT",
|
|
path = {
|
|
"lua/?.lua",
|
|
"lua/?/init.lua",
|
|
},
|
|
pathStrict = true,
|
|
},
|
|
workspace = {
|
|
library = lua_library_paths,
|
|
checkThirdParty = false,
|
|
},
|
|
hint = {
|
|
enable = false,
|
|
arrayIndex = "Disable",
|
|
await = true,
|
|
paramName = "All",
|
|
paramType = true,
|
|
semicolon = "Disable",
|
|
setType = true,
|
|
},
|
|
telemetry = { enable = false },
|
|
},
|
|
},
|
|
on_attach = lsp.on_attach,
|
|
}
|