diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-12 16:58:39 +0200 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-06-12 22:57:30 +0200 |
| commit | 2e42bf1ef8c27173ed3a540135eada4c24abbaaf (patch) | |
| tree | a7e04f70f47b82e44a0e4721505a315867aac854 /.config/nvim/init.lua | |
| parent | 9236e1f700b028da61302be8371401fe0fd86f0c (diff) | |
| download | dotfiles-2e42bf1ef8c27173ed3a540135eada4c24abbaaf.tar.gz dotfiles-2e42bf1ef8c27173ed3a540135eada4c24abbaaf.zip | |
refactor(nvim): rewrite the highlight and extended marks plugins
Diffstat (limited to '.config/nvim/init.lua')
| -rw-r--r-- | .config/nvim/init.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 5bdaaf5..a99e2c6 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -9,6 +9,12 @@ vim.g.dotfiles = { textwidth = { sh = 80, lua = 120, markdown = 120, gitcommit = 72, python = 88 }, } +-- Sets the window bar content and style (custom hl-groups WinBarCwd and WinBarFilePath) +-- Note that this will usually be cleared when loading a colorscheme (which do the equivalent of :hi clear) +vim.api.nvim_set_hl(0, "WinBarCwd", { bold = true }) +vim.api.nvim_set_hl(0, "WinBarFilePath", { link = "Normal" }) +vim.opt.winbar = "%#WinBarCwd#%{fnamemodify(getcwd(),':~')}%* | %#WinBarFilePath#%f%*" + ------------------------------------------------------------------------------------------------------------------------ -- Local functions ------------------------------------------------------------------------------------------------------------------------ @@ -204,7 +210,6 @@ vim.opt.ignorecase = true -- Search ignores case by default vim.opt.smartcase = true -- Search is case-sensitive if searching for uppercase characters vim.opt.conceallevel = 2 -- Hide text with the "conceal" syntax attribute vim.opt.showtabline = 2 -- Always show tabline -vim.opt.winbar = "%#WinBarCwd#%{fnamemodify(getcwd(),':~')}%* | %#WinBarFile#%f%*" vim.opt.winborder = "rounded" -- Rounded outline for floating windows vim.opt.updatetime = 1000 -- Swap file save frequency; also how often GitGutter signs update in ms vim.opt.list = true -- Display <Tab> and other non-printables |
