From 290247d424e6a91fa04b69a1c17ace583bd92290 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Wed, 25 Jan 2023 10:47:00 -0700 Subject: update some vim stuff mostly --- bash/.bash/04-other.bash | 2 ++ bash/.bash_profile | 3 +-- bash/.bashrc | 1 - update.sh | 1 + vim/.vimrc | 23 +++++++++++++++++------ vim/after/ftplugin/markdown.vim | 1 + vim/coc-settings.json | 21 ++++++++++++--------- x/.Xmodmap | 2 +- x/.xinitrc-not-docked | 4 ++-- 9 files changed, 37 insertions(+), 21 deletions(-) create mode 100644 vim/after/ftplugin/markdown.vim diff --git a/bash/.bash/04-other.bash b/bash/.bash/04-other.bash index ec258e1..63271b5 100644 --- a/bash/.bash/04-other.bash +++ b/bash/.bash/04-other.bash @@ -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" diff --git a/bash/.bash_profile b/bash/.bash_profile index 6539cd9..d006e75 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -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 diff --git a/bash/.bashrc b/bash/.bashrc index 3187d52..821a3fb 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -13,4 +13,3 @@ fi DEVKITPRO=/opt/devkitpro DEVKITARM=/opt/devkitpro/devkitARM DEVKITPPC=/opt/devkitpro/devkitPPC -export PATH=$PATH:/home/bryson/.spicetify diff --git a/update.sh b/update.sh index bb6401e..fa6060b 100755 --- a/update.sh +++ b/update.sh @@ -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 diff --git a/vim/.vimrc b/vim/.vimrc index e81cf09..cd27085 100644 --- a/vim/.vimrc +++ b/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 - \ pumvisible() ? "\" : - \ check_back_space() ? "\" : + \ coc#pum#visible() ? coc#pum#next(1) : + \ CheckBackspace() ? "\" : \ coc#refresh() -inoremap pumvisible() ? "\" : "\" +inoremap coc#pum#visible() ? coc#pum#prev(1) : "\" -function! s:check_back_space() abort +" Make to accept selected completion item or notify coc.nvim to format +" u breaks current undo, please make your own choice +inoremap coc#pum#visible() ? coc#pum#confirm() + \: "\u\\=coc#on_enter()\" + +function! CheckBackspace() abort let col = col('.') - 1 return !col || getline('.')[col - 1] =~# '\s' endfunction diff --git a/vim/after/ftplugin/markdown.vim b/vim/after/ftplugin/markdown.vim new file mode 100644 index 0000000..beb1402 --- /dev/null +++ b/vim/after/ftplugin/markdown.vim @@ -0,0 +1 @@ +set tabstop=2 softtabstop=2 shiftwidth=2 expandtab diff --git a/vim/coc-settings.json b/vim/coc-settings.json index 0c93cc3..3fb81bc 100644 --- a/vim/coc-settings.json +++ b/vim/coc-settings.json @@ -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 } diff --git a/x/.Xmodmap b/x/.Xmodmap index 2aeb810..86145a0 100644 --- a/x/.Xmodmap +++ b/x/.Xmodmap @@ -1,4 +1,4 @@ clear Lock remove Lock = Caps_Lock keycode 66 = Escape -keycode 9 = Caps_Lock +keycode 9 = Escape diff --git a/x/.xinitrc-not-docked b/x/.xinitrc-not-docked index b18ab1c..fef3ae5 100644 --- a/x/.xinitrc-not-docked +++ b/x/.xinitrc-not-docked @@ -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 -- cgit v1.2.3