From 9091ec72fe5ed12ae56a46f8580e0053d4b525fb Mon Sep 17 00:00:00 2001 From: Petri Hienonen Date: Mon, 12 Jan 2026 10:17:28 +0200 Subject: Minor nvim changes --- home/nvim/lsp.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'home/nvim/lsp.lua') diff --git a/home/nvim/lsp.lua b/home/nvim/lsp.lua index 5371eb2..97037c6 100644 --- a/home/nvim/lsp.lua +++ b/home/nvim/lsp.lua @@ -120,19 +120,22 @@ vim.lsp.config("lua_ls", { cmd = { "lua-language-server" }, filetypes = { "lua" }, root_markers = { ".luarc.json", ".luarc.jsonc" }, + single_file_support = true, settings = { Lua = { format = { enable = true, defaultConfig = { - indent_style = "tab", indent_size = 1, - quote_style = "double", - max_line_length = 120 + indent_style = "tab", + max_line_length = 120, + quote_style = "double" }, }, runtime = { version = "LuaJIT" }, - diagnostics = { globals = { "vim", "luassert" }, enable = true }, + diagnostics = { + globals = { "vim", "luassert", "luv" }, + }, workspace = { checkThirdParty = true, library = vim.api.nvim_get_runtime_file("", true), -- cgit v1.2.3-70-g09d2