summaryrefslogtreecommitdiff
path: root/lsp/lua.lua
diff options
context:
space:
mode:
authorMarcelo <setanta@gmail.com>2025-03-30 04:26:45 -0300
committerMarcelo <setanta@gmail.com>2025-04-04 00:10:23 -0300
commit43af656a9e1325e76c69e6f5e694214156c278f1 (patch)
tree9c44dbd5842107b662bd5795d238ace98677e648 /lsp/lua.lua
parent7eec86e74ffb085d48da574b02af12bce3f73d93 (diff)
Replace nvim-lspconfig and blink completion with NVIM 0.11 native options.
Diffstat (limited to 'lsp/lua.lua')
-rw-r--r--lsp/lua.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lsp/lua.lua b/lsp/lua.lua
new file mode 100644
index 0000000..4d3e241
--- /dev/null
+++ b/lsp/lua.lua
@@ -0,0 +1,24 @@
+return {
+ cmd = { "lua-language-server" },
+ filetypes = { "lua" },
+ root_markers = { ".luarc.json" },
+ settings = {
+ Lua = {
+ runtime = {
+ version = "LuaJIT",
+ },
+ diagnostics = {
+ globals = {
+ "vim",
+ "require",
+ },
+ },
+ workspace = {
+ library = vim.api.nvim_get_runtime_file("", true),
+ },
+ telemetry = {
+ enable = false,
+ },
+ },
+ },
+}