diff options
| author | bh <qn+git@excalibur.computer> | 2026-03-14 19:16:03 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-03-14 19:16:03 +0800 |
| commit | 1d30a4a7bb10439beddccc169c281283947640e0 (patch) | |
| tree | f9a5a3d62e3ad6901c148d84c63cc65dbe007020 | |
| parent | 60c29bc03ea739f0c7468d700b4e3c9cf1415ec2 (diff) | |
Fix tab indent chars
| -rw-r--r-- | init.lua | 20 | ||||
| -rw-r--r-- | lua/config/indent.lua | 2 |
2 files changed, 12 insertions, 10 deletions
@@ -27,8 +27,8 @@ vim.cmd("colorscheme terafox") -- List Chars vim.o.list = true vim.opt.listchars = { - -- tab = "»·", - tab = "│»", + tab = "»»", + -- tab = "│»", space = "·", trail = "·", eol = "↲", @@ -87,16 +87,16 @@ vim.api.nvim_set_keymap('n', '<leader>t', ':NvimTreeToggle<CR>', { noremap = tru -- ~/.config/nvim/lua/keymaps.lua vim.keymap.set('n', '<Space>;', function() - local row, col = unpack(vim.api.nvim_win_get_cursor(0)) -- save cursor - local line = vim.api.nvim_get_current_line() + local row, col = unpack(vim.api.nvim_win_get_cursor(0)) -- save cursor + local line = vim.api.nvim_get_current_line() - -- Only add semicolon if it doesn't exist - if not line:match(";$") then - vim.api.nvim_set_current_line(line .. ";") - end + -- Only add semicolon if it doesn't exist + if not line:match(";$") then + vim.api.nvim_set_current_line(line .. ";") + end - -- Restore cursor - vim.api.nvim_win_set_cursor(0, {row, col}) + -- Restore cursor + vim.api.nvim_win_set_cursor(0, {row, col}) end, { noremap = true, silent = true }) diff --git a/lua/config/indent.lua b/lua/config/indent.lua index e703212..a73ee1c 100644 --- a/lua/config/indent.lua +++ b/lua/config/indent.lua @@ -29,6 +29,8 @@ return function() ibl.setup { indent = { highlight = highlight, + char = "│", + tab_char = "│", }, exclude = { filetypes = { "dashboard", "alpha", "help", "neo-tree", "NvimTree", "lazy" }, |
