This commit is contained in:
Daniel Lundin 2024-11-06 00:49:36 +01:00
parent 4f8865c8ac
commit 2f0f291167
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -1,5 +1,5 @@
-- vim.g.mapleader = "<space>"
vim.g.maplocalleader = ','
vim.g.mapleader = "<space>"
vim.g.maplocalleader = ","
-- UI
@ -21,10 +21,6 @@ function GetIndicators()
local error_string = errors > 0 and "%#DiagnosticError# " .. errors .. " " or " "
return warn_string .. error_string
end
function GetRulerIcon()
local icon = vim.bo.modified and "" or ""
return "%#CustomRulerSeparator#%#CustomRulerIcon#" .. icon .. " "
end
vim.opt.rulerformat = "%40(%=%{%v:lua.GetIndicators()%}%#Label#│ %t %)"
-- Search
@ -46,14 +42,13 @@ vim.opt.smartindent = true
vim.opt.tabstop = 2
vim.opt.wrap = false
vim.opt.list = true
im.opt.listchars = "tab:»·,trail:·"
vim.opt.listchars = "tab:»·,trail:·"
-- Folds
vim.opt.foldenable = false
vim.opt.foldtext = "v:lua.vim.treesitter.foldtext()"
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
qqq
--
vim.o.autochdir = true