diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/opts.lua | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/plugin/opts.lua b/plugin/opts.lua index 79ddf00..b2ebf9f 100644 --- a/plugin/opts.lua +++ b/plugin/opts.lua @@ -19,7 +19,7 @@ vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>") vim.opt.inccommand = "split" -- Minimal number of screen lines to keep above and below the cursor. -vim.opt.scrolloff = 3 +vim.opt.scrolloff = 99 -- Make line numbers default vim.wo.number = true @@ -44,7 +44,6 @@ vim.o.wrap = true vim.o.linebreak = true vim.o.breakindent = true --- Save undo history vim.o.undofile = false vim.o.title = true vim.o.swapfile = false @@ -53,7 +52,6 @@ vim.o.swapfile = false vim.o.ignorecase = true vim.o.smartcase = true --- Keep signcolumn on by default vim.wo.signcolumn = "yes" vim.wo.relativenumber = true vim.opt.lazyredraw = true @@ -64,8 +62,6 @@ vim.o.timeoutlen = 300 -- Set completeopt to have a better completion experience vim.o.completeopt = "menu,preview,noselect" - --- NOTE: You should make sure your terminal supports this vim.o.termguicolors = true -- remove empty buffer text @@ -74,15 +70,10 @@ vim.opt.shortmess:append("I") vim.g.netrw_liststyle = 0 vim.g.netrw_banner = 0 --- [[ Highlight on yank ]] --- See `:help vim.highlight.on_yank()` -local highlight_group = vim.api.nvim_create_augroup("YankHighlight", { clear = true }) vim.api.nvim_create_autocmd("TextYankPost", { callback = function() - vim.hl.on_yank() + vim.highlight.on_yank() end, - group = highlight_group, - pattern = "*", }) local augroup = vim.api.nvim_create_augroup("UserConfig", {}) |
