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 /init.lua | |
| parent | 60c29bc03ea739f0c7468d700b4e3c9cf1415ec2 (diff) | |
Fix tab indent chars
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 20 |
1 files changed, 10 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 }) |
