C# support and slight tmux modifications
This commit is contained in:
parent
995273399b
commit
00f2b4fd3c
|
@ -82,6 +82,9 @@ onoremap <silent> ]L :call NextIndent(1, 1, 1, 1)<CR>
|
|||
" run make with leader,m
|
||||
nnoremap <leader>m :call RunMake()<CR>
|
||||
|
||||
" show project viewer with leader,n
|
||||
nnoremap <leader>n :call OpenProjectViewer()<CR>
|
||||
|
||||
" change buffers with leader,tab
|
||||
nnoremap <leader><Tab> :bnext<CR>
|
||||
nnoremap <leader><S-Tab> :bprevious<CR>
|
||||
|
|
|
@ -68,6 +68,11 @@ endfun
|
|||
" kill the terminal buffer when the process exits
|
||||
autocmd TermClose * call feedkeys('<cr>')
|
||||
|
||||
fun! OpenProjectViewer()
|
||||
let path = system("git rev-parse --show-toplevel | tr -d '\\n'")
|
||||
execute 'NERDTree' path
|
||||
endfun
|
||||
|
||||
" a toggle-able minimalistic distraction-free text editing mode
|
||||
let s:distractionFreeMode = 0
|
||||
fun! DistractionFreeModeFunc()
|
||||
|
|
|
@ -51,5 +51,7 @@ Plug 'junegunn/goyo.vim' " better distraction-free editing
|
|||
Plug 'editorconfig/editorconfig-vim' " loads project-specific editor settings
|
||||
Plug 'sheerun/vim-polyglot' " vim plugin loader for many languages
|
||||
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']}
|
||||
Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']}
|
||||
Plug 'junegunn/vim-peekaboo'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'tpope/vim-eunuch'
|
||||
|
|
|
@ -39,6 +39,8 @@ highlight clear ALEWarningSign
|
|||
|
||||
let g:fzf_layout = { 'window': 'enew' }
|
||||
|
||||
let g:OmniSharp_server_use_mono = 1
|
||||
|
||||
set completeopt=noinsert,menuone,noselect
|
||||
|
||||
" fix neovim cursor
|
||||
|
|
4
scripts/bin/cdp
Executable file
4
scripts/bin/cdp
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[ -f "$HOME/.fzf.bash" ] && source "$HOME/.fzf.bash"
|
||||
$(__fzf_cd__)
|
|
@ -29,9 +29,6 @@ alias cd..="cd .."
|
|||
alias cdd="cd \"\$DOTFILES_PATH\"" # go to dotfiles
|
||||
alias cdc="cd \"\$XDG_CONFIG_HOME\"" # go to
|
||||
alias cdn="cd \"\$NOTES_PATH\""
|
||||
function cdp() {
|
||||
cd "$(dirname "$(fzf)")" || return
|
||||
}
|
||||
|
||||
# quick parent-directory aliases
|
||||
alias ..="cd .."
|
||||
|
|
|
@ -41,7 +41,7 @@ set -g message-bg colour0
|
|||
set -g message-fg colour7
|
||||
|
||||
# status bar configuration
|
||||
set-option -g status-position top
|
||||
set-option -g status-position bottom
|
||||
# set -g status-utf8 on
|
||||
# set -g status-justify right
|
||||
|
||||
|
@ -55,10 +55,10 @@ setw -g window-status-current-bg colour2
|
|||
setw -g window-status-current-format ''
|
||||
|
||||
set -g status-interval 5
|
||||
set -g status-left-length 80
|
||||
set -g status-left "#[fg=colour4]#W#[fg=default]#[bg=default]"
|
||||
set -g status-right-length 200
|
||||
set -g status-right "#[fg=colour7] #(~/.config/dotfiles/scripts/bin/tmux-session-list #S)"
|
||||
set -g status-right-length 80
|
||||
set -g status-right "#[fg=colour4]#W#[fg=default]#[bg=default]"
|
||||
set -g status-left-length 200
|
||||
set -g status-left "#[fg=colour7]#(~/.config/dotfiles/scripts/bin/tmux-session-list #S)"
|
||||
|
||||
# vim copying
|
||||
setw -g mode-keys vi
|
||||
|
|
Reference in a new issue