diff options
Diffstat (limited to 'home/nvim/lsp.lua')
| -rw-r--r-- | home/nvim/lsp.lua | 11 |
1 files changed, 7 insertions, 4 deletions
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), |
