aboutsummaryrefslogtreecommitdiffstats
path: root/lua/alpha/lsp/servers/lua_ls.lua
blob: 64f012c0e8999844e23a67b5cc25b856622f1f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local lsp_attach = require "alpha.lsp.attach"
local lsp_flags = require("alpha.lsp.flags")

return function(ops)
  return vim.tbl_extend("force", {
    on_attach = lsp_attach,
    flags = lsp_flags,
    settings = {
      Lua = {
        runtime = {
          version = "LuaJIT",
        },
        diagnostics = {
          globals = { "vim" },
        },
        workspace = {
          library = vim.api.nvim_get_runtime_file("", true),
          checkThirdParty = false,
        },
        telemetry = {
          enable = false,
        },
        hint = {
          enable = true,
        },
      },
    },
  }, ops)
end