update some vim stuff mostly

This commit is contained in:
Bryson Steck 2023-01-25 10:47:00 -07:00
parent 17569393a5
commit 290247d424
9 changed files with 37 additions and 21 deletions

View file

@ -3,3 +3,5 @@
# if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then # if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
# exec tmux new-session -A -s ssh # exec tmux new-session -A -s ssh
# fi # fi
#
export DOTNET_CLI_TELEMETRY_OPTOUT="true"

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# .bash_profile # .bash_profile
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/.cargo/bin PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools
# Get the aliases and functions # Get the aliases and functions
if [ -f ~/.bashrc ]; then if [ -f ~/.bashrc ]; then
@ -14,7 +14,6 @@ export TERMINAL=/usr/bin/alacritty
export BROWSER=/usr/bin/librewolf-bin export BROWSER=/usr/bin/librewolf-bin
export PATH export PATH
export PATH=$PATH:/home/bryson/.spicetify
complete -cf doas complete -cf doas
source /usr/share/autojump/autojump.bash source /usr/share/autojump/autojump.bash
source /usr/share/bash-completion/completions/fzf source /usr/share/bash-completion/completions/fzf

View file

@ -13,4 +13,3 @@ fi
DEVKITPRO=/opt/devkitpro DEVKITPRO=/opt/devkitpro
DEVKITARM=/opt/devkitpro/devkitARM DEVKITARM=/opt/devkitpro/devkitARM
DEVKITPPC=/opt/devkitpro/devkitPPC DEVKITPPC=/opt/devkitpro/devkitPPC
export PATH=$PATH:/home/bryson/.spicetify

View file

@ -8,6 +8,7 @@ cp ~/.bashrc ./bash
cp ~/.config/tmux/tmux.conf ./tmux cp ~/.config/tmux/tmux.conf ./tmux
cp ~/.vimrc ./vim cp ~/.vimrc ./vim
cp ~/.vim/coc-settings.json ./vim cp ~/.vim/coc-settings.json ./vim
cp -r ~/.vim/after ./vim
cp ~/.xinitrc* ./x cp ~/.xinitrc* ./x
cp ~/.Xresources ./x cp ~/.Xresources ./x
cp ~/.Xmodmap ./x cp ~/.Xmodmap ./x

View file

@ -15,6 +15,8 @@ call plug#begin()
Plug 'preservim/nerdtree' Plug 'preservim/nerdtree'
Plug 'itchyny/vim-gitbranch' Plug 'itchyny/vim-gitbranch'
Plug 'tpope/vim-commentary' Plug 'tpope/vim-commentary'
Plug 'godlygeek/tabular'
Plug 'preservim/vim-markdown'
call plug#end() call plug#end()
@ -51,6 +53,9 @@ let g:python_recommended_style = 0
let g:NERDTreeFileExtensionHighlightFullName = 1 let g:NERDTreeFileExtensionHighlightFullName = 1
let g:NERDTreeExactMatchHighlightFullName = 1 let g:NERDTreeExactMatchHighlightFullName = 1
let g:NERDTreePatternMatchHighlightFullName = 1 let g:NERDTreePatternMatchHighlightFullName = 1
let g:org_heading_shade_leading_stars = 0
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_new_list_item_indent = 2
" colorscheme stuff " colorscheme stuff
colorscheme gruvbox colorscheme gruvbox
@ -90,10 +95,11 @@ autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTa
" Open the existing NERDTree on each new tab. " Open the existing NERDTree on each new tab.
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
" turn on spell checker for all markdown files " turn on spell checker for certain files
autocmd FileType markdown setlocal spell autocmd FileType markdown setlocal spell
autocmd FileType org setlocal spell
hi clear SpellBad hi clear SpellBad
hi SpellBad cterm=underline hi SpellBad cterm=underline ctermbg=DARKRED
hi clear SpellRare hi clear SpellRare
hi SpellRare cterm=underline hi SpellRare cterm=underline
hi clear SpellCap hi clear SpellCap
@ -103,12 +109,17 @@ hi SpellLocal cterm=underline
" Coc remaps " Coc remaps
inoremap <silent><expr> <TAB> inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" : \ coc#pum#visible() ? coc#pum#next(1) :
\ <SID>check_back_space() ? "\<TAB>" : \ CheckBackspace() ? "\<Tab>" :
\ coc#refresh() \ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>" inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
function! s:check_back_space() abort " Make <CR> to accept selected completion item or notify coc.nvim to format
" <C-g>u breaks current undo, please make your own choice
inoremap <silent><expr> <CR> coc#pum#visible() ? coc#pum#confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
function! CheckBackspace() abort
let col = col('.') - 1 let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s' return !col || getline('.')[col - 1] =~# '\s'
endfunction endfunction

View file

@ -0,0 +1 @@
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab

View file

@ -5,17 +5,12 @@
"method": "m", "method": "m",
"function": "" "function": ""
}, },
"java.home": "/usr/java/jdk-17.0.1", "java.home": "/usr/local/java/jdk-18.0.1.1",
"java.configuration.runtimes": [ "java.configuration.runtimes": [
{ {
"name": "JavaSE-12", "name": "JavaSE-18",
"path": "/usr/java/jdk-12.0.2", "path": "/usr/local/java/jdk-18.0.1.1",
"default": true "default": true
},
{
"name": "JavaSE-16",
"path": "/usr/java/jdk-17.0.1"
} }
], ],
"java.referencesCodeLens.enabled": true, "java.referencesCodeLens.enabled": true,
@ -26,5 +21,13 @@
"debugAdapterPort": "13604", "debugAdapterPort": "13604",
"logLevel": 1 "logLevel": 1
}, },
"java.jdt.ls.vmargs": "-noverify -Xmx6G -XX:+UseG1GC -XX:+UseStringDeduplication" "java.jdt.ls.vmargs": "-noverify -Xmx6G -XX:+UseG1GC -XX:+UseStringDeduplication",
"languageserver": {
"csharp-ls": {
"command": "csharp-ls",
"filetypes": ["cs"],
"rootPatterns": ["*.csproj", ".vim/", ".git/", ".hg/"]
}
},
"suggest.noselect": true
} }

View file

@ -1,4 +1,4 @@
clear Lock clear Lock
remove Lock = Caps_Lock remove Lock = Caps_Lock
keycode 66 = Escape keycode 66 = Escape
keycode 9 = Caps_Lock keycode 9 = Escape

View file

@ -49,7 +49,7 @@ fi
slstatus-not-docked & slstatus-not-docked &
# reset backlight # reset backlight
light -S 25 & light -S 50 &
# set default audio device to be laptop speakers # set default audio device to be laptop speakers
pacmd set-default-sink alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink & pacmd set-default-sink alsa_output.pci-0000_03_00.6.HiFi__hw_Generic_1__sink &
@ -75,5 +75,5 @@ keepassxc ~/.passwords/Passwords.kdbx &
# start dwm # start dwm
redshift & redshift &
xset r rate 300 50 xset r rate 200 80
exec /home/bryson/bin/startdwm.sh exec /home/bryson/bin/startdwm.sh