Configuration for my NixOS based systems and Home Manager
1return {
2 settings = {
3 Lua = {
4 runtime = {
5 -- Tell the language server which version of Lua you're using (most likely LuaJIT in the case of Neovim)
6 version = "LuaJIT"
7 },
8 diagnostics = {
9 -- Get the language server to recognize the `vim` global
10 globals = { "vim", "vis" }
11 },
12 workspace = {
13 -- Make the server aware of Neovim runtime files
14 library = vim.api.nvim_get_runtime_file("", true)
15 },
16 -- Do not send telemetry data containing a randomized but unique identifier
17 telemetry = { enable = false }
18 }
19 }
20}