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