From dbc0cb5ce909a7a3372e6e51665041851ef55db5 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 23 Mar 2020 23:30:36 +0100 Subject: Something about clojure --- .config/nvim/init.vim | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index a6b8033..dec53ec 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -27,6 +27,7 @@ Plug 'tpope/vim-dispatch' Plug 'tpope/vim-salve' Plug 'tpope/vim-fireplace' Plug 'kien/rainbow_parentheses.vim' +Plug 'venantius/vim-cljfmt' Plug 'w0rp/ale' Plug 'majutsushi/tagbar' " Plug 'ananagame/vimsence' @@ -117,15 +118,6 @@ autocmd VimResized * :wincmd = let g:auto_save=0 let g:auto_save_silent=1 -" Custom actions for different filetypes -augroup ft_files - au! - au FileType c let b:auto_save=1 - au FileType cpp let b:auto_save=1 - au FileType clojure let b:auto_save=1 - au FileType clojure RainbowParenthesesToggle -augroup END - " Tagbar nmap T :TagbarToggle let g:tagbar_compact=1 @@ -190,10 +182,23 @@ let g:ale_pattern_options = { \ '\.c$': {'ale_linters': ['clangtidy'], 'ale_fixers': ['clang-format']}, \ '\.h$': {'ale_linters': ['clangtidy'], 'ale_fixers': ['clang-format']}, \ '\.asm$': {'ale_linters': [], 'ale_fixers': ['trim_whitespace']}, -\ '\.clj$': {'ale_linters': ['joker'], 'ale_fixers': ['joker']}, +\ '\.clj$': {'ale_linters': ['joker'], 'ale_fixers': []}, \} let g:ale_pattern_options_enabled = 1 +" Something about clojure +let g:clj_fmt_autosave=0 + +" Custom actions for different filetypes +augroup ft_files + au! + au FileType c let b:auto_save=1 + au FileType cpp let b:auto_save=1 + au FileType clojure let b:auto_save=1 + au FileType clojure nmap F :Cljfmt + au FileType clojure RainbowParenthesesToggle +augroup END + " File explorer nnoremap n :NERDTreeToggle nnoremap f :NERDTreeFind -- cgit v1.2.3