mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2024-12-22 17:28:01 +00:00
[neovim] remove unnecessary autocommand and replace it with an option
This commit is contained in:
parent
2d91bee816
commit
c45cbb63a6
@ -1,12 +1,5 @@
|
|||||||
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
|
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
|
||||||
|
|
||||||
-- Fixes Autocomment
|
|
||||||
vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
|
|
||||||
callback = function()
|
|
||||||
vim.cmd("set formatoptions-=cro")
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Highlight Yanked Text
|
-- Highlight Yanked Text
|
||||||
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
|
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
|
||||||
callback = function()
|
callback = function()
|
||||||
|
@ -40,6 +40,7 @@ vim.opt.fillchars.eob = " "
|
|||||||
vim.opt.shortmess:append("c")
|
vim.opt.shortmess:append("c")
|
||||||
vim.opt.whichwrap:append("<,>,[,],h,l")
|
vim.opt.whichwrap:append("<,>,[,],h,l")
|
||||||
vim.opt.iskeyword:append("-")
|
vim.opt.iskeyword:append("-")
|
||||||
|
vim.opt.formatoptions:remove({ "c", "r", "o" })
|
||||||
|
|
||||||
-- experimental
|
-- experimental
|
||||||
vim.opt.cmdheight = 0 -- Number of screen lines to use for the command-line
|
vim.opt.cmdheight = 0 -- Number of screen lines to use for the command-line
|
||||||
|
Loading…
Reference in New Issue
Block a user