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
|
-- preview commands
|
||||||
vim.opt.inccommand = "split"
|
vim.opt.inccommand = "split"
|
||||||
|
|
||||||
-- enable cursorline
|
-- set cursorline in active window
|
||||||
vim.opt.cursorline = true
|
vim.cmd([[
|
||||||
|
augroup CursorLine
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline
|
||||||
|
autocmd WinLeave * setlocal nocursorline
|
||||||
|
augroup END
|
||||||
|
]])
|
||||||
|
|
||||||
-- coq.nvim
|
-- coq.nvim
|
||||||
vim.g.coq_settings = { auto_start = "shut-up" }
|
vim.g.coq_settings = { auto_start = "shut-up" }
|
||||||
|
|
|
@ -133,6 +133,14 @@ return require('packer').startup(function(use)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- auto-close brackets
|
||||||
|
use({
|
||||||
|
"windwp/nvim-autopairs",
|
||||||
|
config = function ()
|
||||||
|
require("nvim-autopairs").setup({})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
if packer_bootstrap then
|
if packer_bootstrap then
|
||||||
require('packer').sync()
|
require('packer').sync()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue