aboutsummaryrefslogtreecommitdiffstats
path: root/home/nvim/lsp.lua
diff options
context:
space:
mode:
authorPetri Hienonen <petri.hienonen@gmail.com>2026-01-12 10:17:28 +0200
committerPetri Hienonen <petri.hienonen@gmail.com>2026-01-12 10:17:28 +0200
commit9091ec72fe5ed12ae56a46f8580e0053d4b525fb (patch)
treeaf7c1d6a472b8ec6a3060bd53cb2ffdb6b9221e3 /home/nvim/lsp.lua
parentb85d671f4977ee7b3a5a7f079d618c5449f86940 (diff)
downloadnixos-9091ec72fe5ed12ae56a46f8580e0053d4b525fb.tar.zst
Minor nvim changes
Diffstat (limited to 'home/nvim/lsp.lua')
-rw-r--r--home/nvim/lsp.lua11
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),