summaryrefslogtreecommitdiff
path: root/.config/nvim/lsp/lua_ls.lua
diff options
context:
space:
mode:
authorcryxtalix <fgx8p9t@protonmail.com>2026-05-09 00:15:07 +0800
committercryxtalix <fgx8p9t@protonmail.com>2026-05-09 00:15:07 +0800
commit8fbf7c2a9ce92b97941bff2c8b52c1d52d9834d2 (patch)
treeaa4cb6f169758fb9abdcf5b378a1a8ccc6902344 /.config/nvim/lsp/lua_ls.lua
parent1302056eddd9a69ea2d0ffdf8bedd8582fb5a907 (diff)
Update
Diffstat (limited to '.config/nvim/lsp/lua_ls.lua')
-rw-r--r--.config/nvim/lsp/lua_ls.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/.config/nvim/lsp/lua_ls.lua b/.config/nvim/lsp/lua_ls.lua
new file mode 100644
index 0000000..c0a6d56
--- /dev/null
+++ b/.config/nvim/lsp/lua_ls.lua
@@ -0,0 +1,19 @@
+return {
+ -- Command and arguments to start the server.
+ cmd = { 'lua-language-server' },
+ -- Filetypes to automatically attach to.
+ filetypes = { 'lua' },
+ -- Sets the "workspace" to the directory where any of these files is found.
+ -- Files that share a root directory will reuse the LSP server connection.
+ -- Nested lists indicate equal priority, see |vim.lsp.Config|.
+ root_markers = { { '.luarc.json', '.luarc.jsonc' }, '.git' },
+ -- Specific settings to send to the server. The schema is server-defined.
+ -- Example: https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json
+ settings = {
+ Lua = {
+ runtime = {
+ version = 'LuaJIT',
+ }
+ }
+ }
+}