From 41a8601bd0ac8fe8d3b1b480b85d5d02c711b3bf Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 18 May 2022 14:16:48 +0200 Subject: Added previous vim config autocommand to neovim, Updated lua-snip and argwrap plugins configurations --- config/nvim/lua/mappings.lua | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'config/nvim/lua/mappings.lua') diff --git a/config/nvim/lua/mappings.lua b/config/nvim/lua/mappings.lua index 50c57e2..5373a4e 100644 --- a/config/nvim/lua/mappings.lua +++ b/config/nvim/lua/mappings.lua @@ -26,25 +26,6 @@ map('n', ' ?', '?\v', {}) map('c', '', '', {}) map('c', '', '', {}) --- -- hook --- -- remove trailing white space on save --- autocmd vimrc BufWritePre * %s/\s\+$//e --- -- dirty hack to disable this feature on markdown (autocmd! wouldn't work) --- autocmd vimrc BufReadPre *.md autocmd! BufWritePre - - --- augroup vimrc_files --- autocmd! --- -- school c --- autocmd Filetype c setlocal noexpandtab --- autocmd Filetype c setlocal comments=s:/**,m:**,e:*/,s:/*,m:**,e:*/ --- -- std::cout << ... << std::endl; shortcut --- autocmd Filetype cpp nnoremap cout istd::cout << << std::endl;2Fbd mq:g/^\s*breakpoint()$/d`q ]] vim.cmd [[ autocmd FileType python nmap ba mqobreakpoint()`q ]] -- cgit