From 5671f954ddff3fb60ee6fda3fac664375be1a425 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 26 Nov 2024 14:40:35 +0100 Subject: nvim: autocmds.lua --- .config/nvim/after/plugin/autocmds.vim | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to '.config/nvim/after/plugin/autocmds.vim') diff --git a/.config/nvim/after/plugin/autocmds.vim b/.config/nvim/after/plugin/autocmds.vim index 0e7935b..ae55046 100644 --- a/.config/nvim/after/plugin/autocmds.vim +++ b/.config/nvim/after/plugin/autocmds.vim @@ -1,24 +1,2 @@ " I don't know how to port this yet autocmd BufRead,BufWrite * if ! &bin | silent! %s/\s\+$//ge | endif - -autocmd BufNewFile,BufRead /tmp/neomutt* set noautoindent filetype=mail wm=0 tw=80 - -augroup bukugroup - au! BufRead,BufNewFile,BufEnter buku-edit-* set filetype=buku -augroup END - -" Restore last position -autocmd BufReadPost * - \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' - \ | exe "normal! g`\"" - \ | endif - -augroup pkgbuild - autocmd! - autocmd BufRead,BufNewFile PKGBUILD set filetype=PKGBUILD -augroup END - -augroup vimwiki - autocmd! - autocmd BufRead,BufNewFile *.wiki set filetype=vimwiki -augroup END -- cgit v1.2.3-70-g09d2