summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Idziorek <michal.idziorek@citi.com>2021-06-01 21:05:03 +0200
committerMichal Idziorek <michal.idziorek@citi.com>2021-06-01 21:05:03 +0200
commita33518b312930ff1103e2c54ffba80526d28c873 (patch)
treec95870b45d0fda7a52e584226098c557add7650f
parent7528c1bd5a432d85021c5b2b03f167ceff9eb090 (diff)
vim haskelling
-rw-r--r--vim-new/vimrc42
1 files changed, 35 insertions, 7 deletions
diff --git a/vim-new/vimrc b/vim-new/vimrc
index 5280230..5316f48 100644
--- a/vim-new/vimrc
+++ b/vim-new/vimrc
@@ -1,18 +1,22 @@
" Miguel's Fresh Vimrc "
" Started from scratch on 29th Apr 2021
+" {{{ vim-plug
call plug#begin('~/.vim/plugged')
-Plug 'autozimu/LanguageClient-neovim', {
- \ 'branch': 'next',
- \ 'do': 'bash install.sh'
- \ }
+Plug 'vim-airline/vim-airline'
+Plug 'vim-airline/vim-airline-themes'
-call plug#end()
+Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
+Plug 'junegunn/fzf.vim'
-nnoremap <F5> :call LanguageClient_contextMenu()<CR>
+Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
-let g:LanguageClient_serverCommands = { 'haskell': ['haskell-language-server-wrapper', '--lsp'] }
+Plug 'neovimhaskell/haskell-vim'
+Plug 'alx741/vim-stylishask'
+
+call plug#end()
+" }}}
" {{{ misc
colorscheme desert
@@ -26,6 +30,22 @@ set colorcolumn=73
set backspace=2
" }}}
+syntax on
+filetype plugin indent on
+
+let g:airline_powerline_fonts = 1
+
+nnoremap <F5> :call LanguageClient_contextMenu()<CR>
+let g:LanguageClient_serverCommands = { 'haskell': ['haskell-language-server-wrapper', '--lsp'] }
+
+let g:haskell_enable_quantification = 1 " to enable highlighting of `forall`
+let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec`
+let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc`
+let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern`
+let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
+let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
+let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
+
" {{{ tabs
set listchars=tab:>.
set tabstop=8
@@ -93,4 +113,12 @@ nnoremap <C-]> g<C-]>
" ctrl-space auto complete in insert mode
inoremap <C-Space> <C-N>
+
+" FZF settings
+nmap <leader>f :Files<cr>| " fuzzy find files in the working directory (where you launched Vim from)
+nmap <leader>/ :BLines<cr>| " fuzzy find lines in the current file
+nmap <leader>b :Buffers<cr>| " fuzzy find an open buffer
+nmap <leader>r :Rg | " fuzzy find text in the working directory
+nmap <leader>c :Commands<cr>| " fuzzy find Vim commands (like Ctrl-Shift-P in Sublime/Atom/VSC)
+nmap <leader>t :Tags<cr>| " fuzzy find tags
" }}}