diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 44 |
1 files changed, 31 insertions, 13 deletions
@@ -1,5 +1,5 @@ -set nocompatible " be iMproved, required -filetype on " required +set nocompatible " be iMproved, required +filetype on " required set timeoutlen=1000 set ttimeoutlen=5 @@ -13,7 +13,7 @@ Plugin 'VundleVim/Vundle.vim' " Keep Plugin commands between vundle#begin/end. " Coding Plugin 'dense-analysis/ale' -Plugin 'jiangmiao/auto-pairs' +" Plugin 'jiangmiao/auto-pairs' Plugin 'Shougo/deoplete.nvim' Plugin 'preservim/nerdcommenter' Plugin 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} @@ -21,6 +21,7 @@ Plugin 'nvim-lua/plenary.nvim' Plugin 'nvim-telescope/telescope.nvim' Plugin 'tpope/vim-surround' " File types +Plugin 'neovimhaskell/haskell-vim' Plugin 'peterhoeg/vim-qml' Plugin 'lervag/vimtex' " Utilities @@ -33,10 +34,12 @@ Plugin 'vim-airline/vim-airline' Plugin 'vim-airline/vim-airline-themes' " Music Plugin 'azadkuh/vim-cmus' +" Fun +Plugin 'Eandrju/cellular-automaton.nvim' " All of your Plugins must be added before the following line -call vundle#end() " required -filetype plugin indent on " required +call vundle#end() " required +filetype plugin indent on " required " Brief help " :PluginList - lists configured plugins @@ -50,6 +53,7 @@ filetype plugin indent on " required syntax on set encoding=utf-8 fileformat=unix set number +set mouse=nvi set splitright splitbelow @@ -57,10 +61,16 @@ set foldmethod=indent foldlevel=99 autocmd BufRead,BufNewFile *.qml setfiletype qml -set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab -autocmd FileType json,toml,yaml,html set ts=2 sw=2 sts=2 noexpandtab -autocmd FileType python set ts=4 sw=4 sts=4 expandtab -autocmd FileType c,cpp,asm set ts=8 sw=8 sts=8 noexpandtab +set tabstop=8 softtabstop=8 shiftwidth=8 noexpandtab +autocmd FileType json,toml,yaml set ts=2 sw=2 sts=2 expandtab +autocmd FileType html,htmldjango set ts=2 sw=2 sts=2 expandtab +autocmd FileType css set ts=2 sw=2 sts=2 expandtab +autocmd FileType ocaml set ts=2 sw=2 sts=2 expandtab +autocmd FileType python set ts=4 sw=4 sts=4 expandtab +autocmd FileType markdown set ts=4 sw=4 sts=4 expandtab +autocmd FileType tex set ts=4 sw=4 sts=4 expandtab +autocmd FileType haskell set ts=4 sw=4 sts=4 expandtab +autocmd FileType c,cpp,asm set ts=8 sw=8 sts=8 noexpandtab set autoindent smartindent set background=dark @@ -75,9 +85,14 @@ highlight PmenuSel guibg=#61AFEF inoremap <C-s> <esc>:w<CR>i<right> nnoremap <leader>\ :noh<CR> autocmd FileType python nnoremap <leader>b :!black %<CR>:e<CR> +autocmd FileType c,cpp nnoremap <leader>b :pyf /usr/share/clang/clang-format.py<CR> " ale nnoremap <leader>a :ALEToggle<CR> +nnoremap <F12> :ALEGoToDefinition<CR> +let g:ale_lint_on_text_changed = 'normal' +let g:ale_lint_on_insert_leave = 1 +let g:ale_virtualtext_cursor = 'disabled' " telescope nnoremap <leader>f :Telescope find_files<CR> @@ -102,9 +117,12 @@ let g:NERDToggleCheckAllLines = 1 let g:vimtex_view_general_viewer = 'okular' let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex' let g:vimtex_compiler_method = 'latexmk' +let g:vimtex_compiler_latexmk = { + \'options': ['-shell-escape'] +\} " nvim-tree -nnoremap <C-e> :NvimTreeToggle<CR> +nnoremap <leader>e :NvimTreeToggle<CR> nnoremap <leader>t :NvimTreeFocus<CR> nnoremap <leader>r :NvimTreeRefresh<CR> " a list of groups can be found at `:help nvim_tree_highlight` @@ -115,9 +133,9 @@ nnoremap <leader>p :PencilToggle<CR> let g:pencil#map#suspend_af = 'K' let g:pencil#textwidth = 74 augroup pencil - autocmd! - autocmd FileType markdown,mkd call pencil#init() - autocmd FileType text call pencil#init() + autocmd! + " autocmd FileType markdown,mkd call pencil#init() + autocmd FileType text call pencil#init() augroup END " vim-workspace |