summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc25
1 files changed, 15 insertions, 10 deletions
diff --git a/.vimrc b/.vimrc
index 248be87..14bd21d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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
@@ -20,6 +20,7 @@ Plugin 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plugin 'nvim-lua/plenary.nvim'
Plugin 'nvim-telescope/telescope.nvim'
Plugin 'tpope/vim-surround'
+Plugin 'puremourning/vimspector'
" File types
Plugin 'neovimhaskell/haskell-vim'
Plugin 'peterhoeg/vim-qml'
@@ -36,10 +37,11 @@ Plugin 'vim-airline/vim-airline-themes'
Plugin 'azadkuh/vim-cmus'
" Fun
Plugin 'Eandrju/cellular-automaton.nvim'
+Plugin 'tamton-aquib/duck.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
@@ -70,6 +72,7 @@ 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 qml set ts=4 sw=4 sts=4 expandtab
autocmd FileType c,cpp,asm set ts=8 sw=8 sts=8 noexpandtab
set autoindent smartindent
@@ -82,7 +85,7 @@ highlight Pmenu guibg=#282C34
highlight PmenuSel guibg=#61AFEF
" Generic shortcuts
-inoremap <C-s> <esc>:w<CR>i<right>
+inoremap <C-s> <esc>:w<CR>a
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>
@@ -117,9 +120,7 @@ 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']
-\}
+let g:vimtex_compiler_latexmk = {'options': ['-shell-escape']}
" nvim-tree
nnoremap <leader>e :NvimTreeToggle<CR>
@@ -134,8 +135,8 @@ 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 FileType markdown,mkd call pencil#init()
+ autocmd FileType text call pencil#init()
augroup END
" vim-workspace
@@ -146,3 +147,7 @@ let g:workspace_autosave = 0
" vim-cmus
nnoremap <leader>c :Cmus<CR>
+
+" duck.nvim
+nnoremap <leader>dd :lua require("duck").hatch()<CR>
+nnoremap <leader>dk :lua require("duck").cook()<CR>