feat: auto-close brackets
This commit is contained in:
parent
9007d425b3
commit
32433cf27f
2 changed files with 16 additions and 2 deletions
|
@ -39,8 +39,14 @@ vim.opt.smartcase = true
|
|||
-- preview commands
|
||||
vim.opt.inccommand = "split"
|
||||
|
||||
-- enable cursorline
|
||||
vim.opt.cursorline = true
|
||||
-- set cursorline in active window
|
||||
vim.cmd([[
|
||||
augroup CursorLine
|
||||
autocmd!
|
||||
autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline
|
||||
autocmd WinLeave * setlocal nocursorline
|
||||
augroup END
|
||||
]])
|
||||
|
||||
-- coq.nvim
|
||||
vim.g.coq_settings = { auto_start = "shut-up" }
|
||||
|
|
|
@ -133,6 +133,14 @@ return require('packer').startup(function(use)
|
|||
end,
|
||||
})
|
||||
|
||||
-- auto-close brackets
|
||||
use({
|
||||
"windwp/nvim-autopairs",
|
||||
config = function ()
|
||||
require("nvim-autopairs").setup({})
|
||||
end,
|
||||
})
|
||||
|
||||
if packer_bootstrap then
|
||||
require('packer').sync()
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue