feat: auto-close brackets

main
mandlm 2022-02-21 17:32:12 +01:00
parent 9007d425b3
commit 32433cf27f
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
2 changed files with 16 additions and 2 deletions

View File

@ -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" }

View File

@ -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