summaryrefslogtreecommitdiffstats
path: root/after/lsp/lua_ls.lua
blob: 23f0dc605aa17e7ef5495654c905b636d1707eec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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" }
}