summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmux/tmux.conf1
-rw-r--r--vim-new/init.vim52
-rw-r--r--zsh/zshrc5
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 <C-]> :call LanguageClient#textDocument_definition()<CR>
autocmd Filetype haskell nnoremap <leader>i :call LanguageClient#textDocument_hover()<CR>
+ 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 <leader>t :Tags<cr>| " 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