From 966d12ac730c83da90d60ab24eae539b2ea69441 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 00:14:04 +0200 Subject: Update/Overhaul --- after/ftplugin/lua.lua.bak | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 after/ftplugin/lua.lua.bak (limited to 'after/ftplugin/lua.lua.bak') diff --git a/after/ftplugin/lua.lua.bak b/after/ftplugin/lua.lua.bak new file mode 100755 index 0000000..fe9587b --- /dev/null +++ b/after/ftplugin/lua.lua.bak @@ -0,0 +1,35 @@ +local lspconfig = require("lspconfig") + +if lspconfig.lua_ls then + lspconfig.lua_ls.setup({ + settings = { + Lua = { + diagnostics = { + -- This is the Lua table for diagnostics settings + globals = { "vim", "use", "_G", "packer_plugins", "P" }, + disable = { + "undefined-global", + "lowercase-global", + "unused-local", + "unused-vararg", + "trailing-space" + }, + }, + workspace = { + -- Points the language server to Neovim's runtime files for auto-completion + library = { + --vim.api.nvim_get_runtime_path(), + --checkThirdParty = false, + vim.env.VIMRUNTIME, + -- Depending on the usage, you might want to add additional paths here. + "${3rd}/luv/library", + "${3rd}/busted/library", + }, + }, + telemetry = { + enable = false, + }, + }, + }, + }) +end -- cgit v1.2.3