aboutsummaryrefslogtreecommitdiff
path: root/common/nvim/lsp/lua_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'common/nvim/lsp/lua_ls.lua')
-rw-r--r--common/nvim/lsp/lua_ls.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/common/nvim/lsp/lua_ls.lua b/common/nvim/lsp/lua_ls.lua
new file mode 100644
index 0000000..d248e2e
--- /dev/null
+++ b/common/nvim/lsp/lua_ls.lua
@@ -0,0 +1,20 @@
+return {
+ cmd = { "lua-language-server" },
+ filetypes = { "lua" },
+ root_markers = { ".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml" },
+ settings = {
+ Lua = {
+ diagnostics = {
+ disable = { "undefined-global", "lowercase-global", "unused-local", "unused-vararg", "trailing-space" },
+ globals = { "vim", "use", "_G", "packer_plugins", "P" }
+ },
+ telemetry = {
+ enable = false
+ },
+ workspace = {
+ checkThirdParty = false,
+ library = { "/tmp/.mount_nvimOIpamk/usr/share/nvim/runtime", "${3rd}/luv/library", "${3rd}/busted/library" }
+ }
+ }
+ }
+} \ No newline at end of file