From b4a4c71eaba1c2fd1b5cb7da192c7ce63b7bd46e Mon Sep 17 00:00:00 2001 From: miguel Date: Thu, 1 Jul 2021 19:08:11 +0200 Subject: update tmux/neovim/zshrc configs --- tmux/tmux.conf | 1 + vim-new/init.vim | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- zsh/zshrc | 5 +++-- 3 files changed, 54 insertions(+), 4 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 3cbca92..d3abcb9 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -13,6 +13,7 @@ set-option -g status-keys vi set-option -g status-left ' ' set-option -g status-position bottom set-option -g status-right ' #h #[fg=black]#[bg=#556677]#[bg=black]#[fg=#556677]#(uptime | sed "s/,[^:]*//")#[default]' +set-option -g status-right-length 100 set-option -g status-style fg='#ffffff',bg='#556677' set-option -g window-status-style fg='#ffffff',bg='#333333' diff --git a/vim-new/init.vim b/vim-new/init.vim index a35f680..49e895b 100644 --- a/vim-new/init.vim +++ b/vim-new/init.vim @@ -1,11 +1,14 @@ " Miguel's Fresh Neovim Config -" 29th Apr 2021 - 14th June 2021 +" 29th Apr 2021 - 01st July 2021 " " link from ~/.config/nvim/init.vim " 1. install vim-plug " 2. run :PlugUpdate " 3. run :checkhealth +" TODO +" explore nvim 0.5+ native lsp-client + " {{{ vim-plug call plug#begin('~/.vim/plugged') @@ -65,7 +68,7 @@ set backspace=2 set completeopt-=preview set updatetime=300 -set signcolumn=yes +set signcolumn=yes:3 set mouse=a @@ -191,6 +194,8 @@ augroup filetype_haskell autocmd! autocmd Filetype haskell nnoremap :call LanguageClient#textDocument_definition() autocmd Filetype haskell nnoremap i :call LanguageClient#textDocument_hover() + autocmd Filetype haskell set softtabstop=2 + autocmd Filetype haskell set shiftwidth=2 augroup END " ctrl-space auto complete in insert mode @@ -206,3 +211,46 @@ nmap t :Tags| " fuzzy find tags " }}} let g:fzf_layout = { 'down': '~40%' } + +let g:tagbar_type_haskell = { + \ 'ctagsbin' : 'hasktags', + \ 'ctagsargs' : '-x -c -o-', + \ 'kinds' : [ + \ 'm:modules:0:1', + \ 'd:data:0:1', + \ 'd_gadt:data gadt:0:1', + \ 'nt:newtype:0:1', + \ 'c:classes:0:1', + \ 'i:instances:0:1', + \ 'cons:constructors:0:1', + \ 'c_gadt:constructor gadt:0:1', + \ 'c_a:constructor accessors:1:1', + \ 't:type names:0:1', + \ 'pt:pattern types:0:1', + \ 'pi:pattern implementations:0:1', + \ 'ft:function types:0:1', + \ 'fi:function implementations:0:1', + \ 'o:others:0:1' + \ ], + \ 'sro' : '.', + \ 'kind2scope' : { + \ 'm' : 'module', + \ 'd' : 'data', + \ 'd_gadt' : 'd_gadt', + \ 'c_gadt' : 'c_gadt', + \ 'nt' : 'newtype', + \ 'cons' : 'cons', + \ 'c_a' : 'accessor', + \ 'c' : 'class', + \ 'i' : 'instance' + \ }, + \ 'scope2kind' : { + \ 'module' : 'm', + \ 'data' : 'd', + \ 'newtype' : 'nt', + \ 'cons' : 'c_a', + \ 'd_gadt' : 'c_gadt', + \ 'class' : 'ft', + \ 'instance' : 'ft' + \ } +\ } diff --git a/zsh/zshrc b/zsh/zshrc index bd7e42e..66d6a57 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -129,8 +129,9 @@ bindkey -M vicmd 'j' history-substring-search-down ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#aaaaff,underline" -alias vi=nvim -EDITOR=nvim +alias vi=/home/miguel/nvim.appimage +alias bell='echo "\a"' +EDITOR=/home/miguel/nvim.appimage [ -f "/home/miguel/.ghcup/env" ] && source "/home/miguel/.ghcup/env" # ghcup-env -- cgit v1.2.3