Something went wrong. Try again.
My simple neovim config
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142local root_markers1 = { ".emmyrc.json", ".luarc.json", ".luarc.jsonc",}local root_markers2 = { ".luacheckrc", ".stylua.toml", "stylua.toml", "selene.toml", "selene.yml",}
---@type vim.lsp.Configreturn { cmd = { "lua-language-server" }, filetypes = { "lua" }, root_markers = vim.fn.has("nvim-0.11.3") == 1 and { root_markers1, root_markers2, { ".git" } } or vim.list_extend(vim.list_extend(root_markers1, root_markers2), { ".git" }), ---@type lspconfig.settings.lua_ls settings = { Lua = { codeLens = { enable = true }, diagnostics = { -- Get the language server to recognize the `vim` global and `awesome` globals = { "vim", "use", "beautiful", "awful" }, }, workspace = { -- Make the server aware of Neovim runtime files library = { vim.env.VIMRUNTIME }, checkThirdParty = false, }, hint = { enable = true, }, telemetry = { enable = false, }, }, },}