pull/1708/head
Oluwatobi 2 years ago
parent c37bf09c81
commit f9e3314b2d

@ -25,6 +25,9 @@ require('mini.comment').setup {
-- Toggle comment on current line
comment_line = '++',
-- Toggle comment on visual selection
comment_visual = '++',
-- Define 'comment' textobject (like `dgc` - delete whole comment block)
textobject = '++',
},

@ -1,9 +1,6 @@
-- [[ Basic Keymaps ]]
vim.o.relativenumber = true
-- Set highlight on search
vim.o.hlsearch = false
-- Make line numbers default
vim.wo.number = true
@ -39,8 +36,7 @@ vim.opt.expandtab = true
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
vim.opt.smartindent = true
@ -50,20 +46,20 @@ vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.isfname:append("@-@")
vim.opt.signcolumn = 'yes'
vim.opt.isfname:append '@-@'
vim.opt.updatetime = 50
vim.opt.colorcolumn = "100"
vim.opt.colorcolumn = '100'
-- [[ 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.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
callback = function()
vim.highlight.on_yank()
end,
group = highlight_group,
pattern = '*',
})

Loading…
Cancel
Save