feat: add nvimdots
This commit is contained in:
25
nvim/lua/modules/configs/completion/servers/lua_ls.lua
Normal file
25
nvim/lua/modules/configs/completion/servers/lua_ls.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
-- https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/server_configurations/lua_ls.lua
|
||||
return {
|
||||
settings = {
|
||||
Lua = {
|
||||
runtime = { version = "LuaJIT" },
|
||||
diagnostics = {
|
||||
globals = { "vim" },
|
||||
disable = { "different-requires", "undefined-field" },
|
||||
},
|
||||
workspace = {
|
||||
library = {
|
||||
vim.fn.expand("$VIMRUNTIME/lua"),
|
||||
vim.fn.expand("$VIMRUNTIME/lua/vim/lsp"),
|
||||
},
|
||||
maxPreload = 100000,
|
||||
preloadFileSize = 10000,
|
||||
},
|
||||
hint = { enable = true, setType = true },
|
||||
format = { enable = false },
|
||||
telemetry = { enable = false },
|
||||
-- Do not override treesitter lua highlighting with lua_ls's highlighting
|
||||
semantic = { enable = false },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user