diff --git a/home/common/nvim/init.lua b/home/common/nvim/init.lua index d91ad1f..4f01f68 100644 --- a/home/common/nvim/init.lua +++ b/home/common/nvim/init.lua @@ -1,5 +1,5 @@ --- vim.g.mapleader = "" -vim.g.maplocalleader = ',' +vim.g.mapleader = "" +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