summaryrefslogtreecommitdiffstats
path: root/after/lsp/lua_ls.lua
diff options
context:
space:
mode:
Diffstat (limited to 'after/lsp/lua_ls.lua')
-rw-r--r--after/lsp/lua_ls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/after/lsp/lua_ls.lua b/after/lsp/lua_ls.lua
new file mode 100644
index 0000000..23f0dc6
--- /dev/null
+++ b/after/lsp/lua_ls.lua
@@ -0,0 +1,24 @@
+return {
+ settings = {
+ Lua = {
+ diagnostics = {
+ globals = { "vim", "mp" }
+ },
+ runtime = {
+ version = "LuaJIT"
+ },
+ format = {
+ enable = false
+ },
+ workspace = {
+ checkThirdParty = true,
+ library = {
+ vim.env.VIMRUNTIME
+ }
+ }
+ }
+ },
+
+ root_markers = { ".luarc.json", ".luarc.jsonc", ".luacheckrc", ".stylua.toml",
+ "stylua.toml", "selene.toml", "selene.yml", "README.md" }
+}