From ff13fce3739ef8c09d08a48b058363d2f7fb6c11 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 9 Jul 2024 22:33:50 +0300 Subject: Neovim: almost finished with git integration, did minor unrelated tweaks --- .config/nvim/plugin/options.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to '.config/nvim/plugin/options.lua') diff --git a/.config/nvim/plugin/options.lua b/.config/nvim/plugin/options.lua index 79a0f46..4a2da62 100644 --- a/.config/nvim/plugin/options.lua +++ b/.config/nvim/plugin/options.lua @@ -1,14 +1,14 @@ -- System vim.g.have_nerd_font = true -vim.opt.mouse = 'a' -- enable mouse +vim.opt.mouse = 'a' -- enable mouse vim.opt.clipboard = 'unnamedplus' -- use system clipboard -vim.opt.undofile = true -- Persist undo history by saving it to a file +vim.opt.undofile = true -- Persist undo history by saving it to a file -- Tab vim.opt.expandtab = true -- convert tabs to spaces -vim.opt.tabstop = 4 -- number of visual spaces per TAB -vim.opt.softtabstop = 4 -- number of idfk tab when editing -vim.opt.shiftwidth = 4 -- number of spaces to insert on tab +vim.opt.tabstop = 4 -- number of visual spaces per TAB +vim.opt.softtabstop = 4 -- number of idfk tab when editing +vim.opt.shiftwidth = 4 -- number of spaces to insert on tab -- UI vim.opt.signcolumn = 'auto:9' @@ -21,6 +21,7 @@ vim.opt.showmode = false -- don't show mode, because lualine already does vim.opt.list = true vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } vim.diagnostic.config({ signs = false }) -- disable signcolumn diagnostics +vim.opt.fillchars:append({ diff = '╱' }) -- nicer diff view for filled spaces -- Searching vim.opt.hlsearch = true @@ -33,7 +34,7 @@ vim.opt.wrap = false vim.opt.scrolloff = 8 vim.opt.undofile = true vim.opt.termguicolors = true -vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline +vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline vim.opt.splitkeep = 'screen' -- for edgy.nvim vim.opt.inccommand = 'split' -- shows preview for commands like :%s/from/to -- cgit v1.3.1