finalized nvim setup

This commit is contained in:
tomit4 2021-09-27 11:12:11 -07:00
parent fef503562a
commit 2517c87bb1
3 changed files with 71 additions and 32 deletions

View file

@ -339,7 +339,7 @@ window:
# #
# Window opacity as a floating point number from `0.0` to `1.0`. # Window opacity as a floating point number from `0.0` to `1.0`.
# The value `0.0` is completely transparent and `1.0` is opaque. # The value `0.0` is completely transparent and `1.0` is opaque.
background_opacity: 0.93 background_opacity: 0.90
#selection: #selection:
# This string contains all characters that are used as separators for # This string contains all characters that are used as separators for
@ -812,33 +812,61 @@ background_opacity: 0.93
#print_events: false #print_events: false
# Colors (Monokai Dark) # Colors (Monokai Dark)
#colors:
# Default colors
# primary:
# background: '#272822'
# foreground: '#F8F8F2'
# Normal colors
# normal:
# black: '#272822'
# red: '#F92672'
# green: '#A6E22E'
# yellow: '#F4BF75'
# blue: '#66D9EF'
# magenta: '#AE81FF'
# cyan: '#A1EFE4'
# white: '#F8F8F2'
# Bright colors
# bright:
# black: '#75715E'
# red: '#F92672'
# green: '#A6E22E'
# yellow: '#F4BF75'
# blue: '#66D9EF'
# magenta: '#AE81FF'
# cyan: '#A1EFE4'
# white: '#F9F8F5'
# Colors (Nord)
colors: colors:
# Default colors # Default colors
primary: primary:
background: '#272822' background: '0x2E3440'
foreground: '#F8F8F2' foreground: '0xD8DEE9'
# Normal colors # Normal colors
normal: normal:
black: '#272822' black: '0x3B4252'
red: '#F92672' red: '0xBF616A'
green: '#A6E22E' green: '0xA3BE8C'
yellow: '#F4BF75' yellow: '0xEBCB8B'
blue: '#66D9EF' blue: '0x81A1C1'
magenta: '#AE81FF' magenta: '0xB48EAD'
cyan: '#A1EFE4' cyan: '0x88C0D0'
white: '#F8F8F2' white: '0xE5E9F0'
# Bright colors # Bright colors
bright: bright:
black: '#75715E' black: '0x4C566A'
red: '#F92672' red: '0xBF616A'
green: '#A6E22E' green: '0xA3BE8C'
yellow: '#F4BF75' yellow: '0xEBCB8B'
blue: '#66D9EF' blue: '0x81A1C1'
magenta: '#AE81FF' magenta: '0xB48EAD'
cyan: '#A1EFE4' cyan: '0x8FBCBB'
white: '#F9F8F5' white: '0xECEFF4'

View file

@ -155,9 +155,13 @@ alias config="cd ~/.config"
alias Code="cd ~/Documents/Code" alias Code="cd ~/Documents/Code"
alias js="cd ~/Documents/Code/javascript" alias js="cd ~/Documents/Code/javascript"
alias ls="ls -lah --color=auto" alias ls="ls -lah --color=auto"
alias firefox="firefox-developer-edition" alias {top,htop,btop}="xfce4-terminal --geometry=127x51+0+0 -x btop"
alias thinkorswim="/home/brian/thinkorswim/thinkorswim" alias {firefox,ff}="firefox-developer-edition"
alias vim="nvim" alias {sq,sql,sqlite}="sqlite3"
alias {nvi,vim,vi}="nvim"
alias {mi,mic,nano}="micro"
alias {mysql,maria,mdb}="mariadb"
alias thinkorswim="~/thinkorswim/thinkorswim"
alias shutdown="shutdown -h now" alias shutdown="shutdown -h now"
alias logout="xfce4-session-logout --logout" alias logout="xfce4-session-logout --logout"
alias curltime="curl -w \"@$HOME/Documents/notes/curl-format.txt\" -o /dev/null -s" alias curltime="curl -w \"@$HOME/Documents/notes/curl-format.txt\" -o /dev/null -s"
@ -166,4 +170,6 @@ alias rmorphans="sudo pacman -Rs $(pacman -Qdtq)"
alias rmcache="paccache -rvk3" alias rmcache="paccache -rvk3"
alias rm="rm -i" alias rm="rm -i"
alias sudo="doas" alias sudo="doas"
alias doasedit="doas rnano" alias {doasedit,sudoedit}="doas rnano"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

View file

@ -11,7 +11,8 @@ Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons' Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter' Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files Plug 'ctrlpvim/ctrlp.vim' " fuzzy find files
Plug 'scrooloose/nerdcommenter' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'preservim/nerdcommenter'
Plug 'luochen1990/rainbow' Plug 'luochen1990/rainbow'
Plug 'yaegassy/coc-volar' Plug 'yaegassy/coc-volar'
"Plug 'prettier/vim-prettier', { 'do': 'yarn install' } "Plug 'prettier/vim-prettier', { 'do': 'yarn install' }
@ -25,12 +26,12 @@ call plug#end()
inoremap jk <ESC> inoremap jk <ESC>
nmap <C-n> :NERDTreeToggle<CR> nmap <C-n> :NERDTreeToggle<CR>
vmap ++ plug>NERDCommenterToggle
nmap ++ plug>NERDCommenterToggle
" open NERDTree automatically " open NERDTree automatically
autocmd StdinReadPre * let s:std_in=1 autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * NERDTree autocmd VimEnter * NERDTree
" Exit Vim if NERDTree is the only window remaining in the only tab.
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
"set colored brackets via rainbow" "set colored brackets via rainbow"
let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle" let g:rainbow_active = 1 "set to 0 if you want to enable it later via :RainbowToggle"
@ -53,7 +54,7 @@ let g:NERDTreeGitStatusWithFlags = 1
"\ } "\ }
let g:NERDTreeIgnore = ['^node_modules$'] "let g:NERDTreeIgnore = ['^node_modules$']
" vim-prettier " vim-prettier
"let g:prettier#quickfix_enabled = 0 "let g:prettier#quickfix_enabled = 0
@ -89,9 +90,9 @@ if(has("termguicolors"))
endif endif
syntax enable syntax enable
colorscheme gruvbox "colorscheme gruvbox
"colorscheme menguless "wish this had syntax highlighting..." "colorscheme menguless
"colorscheme nord colorscheme nord
"colorscheme molokai "colorscheme molokai
"Enable transparency "Enable transparency
@ -227,6 +228,10 @@ command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organize
" Add status line support, for integration with other plugin, checkout `:h coc-status` " Add status line support, for integration with other plugin, checkout `:h coc-status`
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
" Shortcut mappings for FZF
nnoremap <silent> <leader>f :FZF<cr>
nnoremap <silent> <leader>F :FZF<cr>
" Using CocList " Using CocList
" Show all diagnostics " Show all diagnostics
nnoremap <silent> <space>a :<C-u>CocList diagnostics<cr> nnoremap <silent> <space>a :<C-u>CocList diagnostics<cr>