update some vim stuff mostly
This commit is contained in:
parent
17569393a5
commit
290247d424
9 changed files with 37 additions and 21 deletions
|
@ -3,3 +3,5 @@
|
|||
# if [[ -z $TMUX ]] && [[ -n $SSH_TTY ]]; then
|
||||
# exec tmux new-session -A -s ssh
|
||||
# fi
|
||||
#
|
||||
export DOTNET_CLI_TELEMETRY_OPTOUT="true"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
# .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
|
||||
if [ -f ~/.bashrc ]; then
|
||||
|
@ -14,7 +14,6 @@ export TERMINAL=/usr/bin/alacritty
|
|||
export BROWSER=/usr/bin/librewolf-bin
|
||||
|
||||
export PATH
|
||||
export PATH=$PATH:/home/bryson/.spicetify
|
||||
complete -cf doas
|
||||
source /usr/share/autojump/autojump.bash
|
||||
source /usr/share/bash-completion/completions/fzf
|
||||
|
|
|
@ -13,4 +13,3 @@ fi
|
|||
DEVKITPRO=/opt/devkitpro
|
||||
DEVKITARM=/opt/devkitpro/devkitARM
|
||||
DEVKITPPC=/opt/devkitpro/devkitPPC
|
||||
export PATH=$PATH:/home/bryson/.spicetify
|
||||
|
|
|
@ -8,6 +8,7 @@ cp ~/.bashrc ./bash
|
|||
cp ~/.config/tmux/tmux.conf ./tmux
|
||||
cp ~/.vimrc ./vim
|
||||
cp ~/.vim/coc-settings.json ./vim
|
||||
cp -r ~/.vim/after ./vim
|
||||
cp ~/.xinitrc* ./x
|
||||
cp ~/.Xresources ./x
|
||||
cp ~/.Xmodmap ./x
|
||||
|
|
23
vim/.vimrc
23
vim/.vimrc
|
@ -15,6 +15,8 @@ call plug#begin()
|
|||
Plug 'preservim/nerdtree'
|
||||
Plug 'itchyny/vim-gitbranch'
|
||||
Plug 'tpope/vim-commentary'
|
||||
Plug 'godlygeek/tabular'
|
||||
Plug 'preservim/vim-markdown'
|
||||
|
||||
call plug#end()
|
||||
|
||||
|
@ -51,6 +53,9 @@ let g:python_recommended_style = 0
|
|||
let g:NERDTreeFileExtensionHighlightFullName = 1
|
||||
let g:NERDTreeExactMatchHighlightFullName = 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 gruvbox
|
||||
|
@ -90,10 +95,11 @@ autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTa
|
|||
" Open the existing NERDTree on each new tab.
|
||||
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 org setlocal spell
|
||||
hi clear SpellBad
|
||||
hi SpellBad cterm=underline
|
||||
hi SpellBad cterm=underline ctermbg=DARKRED
|
||||
hi clear SpellRare
|
||||
hi SpellRare cterm=underline
|
||||
hi clear SpellCap
|
||||
|
@ -103,12 +109,17 @@ hi SpellLocal cterm=underline
|
|||
|
||||
" Coc remaps
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
\ 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
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
endfunction
|
||||
|
|
1
vim/after/ftplugin/markdown.vim
Normal file
1
vim/after/ftplugin/markdown.vim
Normal file
|
@ -0,0 +1 @@
|
|||
set tabstop=2 softtabstop=2 shiftwidth=2 expandtab
|
|
@ -5,17 +5,12 @@
|
|||
"method": "m",
|
||||
"function": ""
|
||||
},
|
||||
"java.home": "/usr/java/jdk-17.0.1",
|
||||
"java.home": "/usr/local/java/jdk-18.0.1.1",
|
||||
"java.configuration.runtimes": [
|
||||
{
|
||||
"name": "JavaSE-12",
|
||||
"path": "/usr/java/jdk-12.0.2",
|
||||
"name": "JavaSE-18",
|
||||
"path": "/usr/local/java/jdk-18.0.1.1",
|
||||
"default": true
|
||||
},
|
||||
|
||||
{
|
||||
"name": "JavaSE-16",
|
||||
"path": "/usr/java/jdk-17.0.1"
|
||||
}
|
||||
],
|
||||
"java.referencesCodeLens.enabled": true,
|
||||
|
@ -26,5 +21,13 @@
|
|||
"debugAdapterPort": "13604",
|
||||
"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
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
clear Lock
|
||||
remove Lock = Caps_Lock
|
||||
keycode 66 = Escape
|
||||
keycode 9 = Caps_Lock
|
||||
keycode 9 = Escape
|
||||
|
|
|
@ -49,7 +49,7 @@ fi
|
|||
slstatus-not-docked &
|
||||
|
||||
# reset backlight
|
||||
light -S 25 &
|
||||
light -S 50 &
|
||||
|
||||
# set default audio device to be laptop speakers
|
||||
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
|
||||
redshift &
|
||||
xset r rate 300 50
|
||||
xset r rate 200 80
|
||||
exec /home/bryson/bin/startdwm.sh
|
||||
|
|
Loading…
Add table
Reference in a new issue