Minor config changes that I forgot to add earlier

This commit is contained in:
Random936 2023-09-09 09:47:08 -07:00
parent 3eba80bf09
commit f5fc29f3ef
4 changed files with 16 additions and 20 deletions

View File

@ -1,5 +1,3 @@
{ {
"suggest.noselect": true,
"suggest.enablePreselect": false,
"diagnostic.checkCurrentLine": true "diagnostic.checkCurrentLine": true
} }

View File

@ -11,7 +11,7 @@ set nohlsearch
set hidden set hidden
set incsearch set incsearch
set scrolloff=8 set scrolloff=8
set colorcolumn=100 set colorcolumn=80
set signcolumn=yes set signcolumn=yes
" Remove arrow keys to train my fingers " Remove arrow keys to train my fingers
@ -45,7 +45,7 @@ colorscheme gruvbox
set background=dark set background=dark
hi Normal guibg=NONE ctermbg=NONE hi Normal guibg=NONE ctermbg=NONE
" Setup yara syntax highlighting " Yara syntax highlighting
autocmd BufNewFile,BufRead *.yar,*.yara setlocal filetype=yara autocmd BufNewFile,BufRead *.yar,*.yara setlocal filetype=yara
" FZF key bindings " FZF key bindings
@ -54,15 +54,12 @@ nnoremap <leader>fg <cmd>Rg<cr>
nnoremap <leader>fb <cmd>Buffers<cr> nnoremap <leader>fb <cmd>Buffers<cr>
" use <tab> for trigger completion and navigate to the next complete item " use <tab> for trigger completion and navigate to the next complete item
function! CheckBackspace() abort function! s:check_back_space() abort
let col = col('.') - 1 let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s' return !col || getline('.')[col - 1] =~ '\s'
endfunction endfunction
inoremap <silent><expr> <Tab> inoremap <silent><expr> <Tab>
\ coc#pum#visible() ? coc#pum#next(1) : \ pumvisible() ? "\<C-n>" :
\ CheckBackspace() ? "\<Tab>" : \ <SID>check_back_space() ? "\<Tab>" :
\ coc#refresh() \ coc#refresh()
inoremap <expr> <Tab> coc#pum#visible() ? coc#pum#next(1) : "\<Tab>"
inoremap <expr> <S-Tab> coc#pum#visible() ? coc#pum#prev(1) : "\<S-Tab>"

View File

@ -878,7 +878,8 @@ When using zsh with powerlevel10k, the ~MesloLGS NF~ font is required to make th
This is the section to include imports from other files. This is the section to include imports from other files.
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; Uncomment this to use EXWM. I currently don't use this.
(let ((exwm-org-file "~/.emacs.d/exwm.org")) (let ((exwm-org-file "~/.emacs.d/exwm.org"))
(when (file-exists-p exwm-org-file) ;(when (file-exists-p exwm-org-file)
(org-babel-load-file exwm-org-file))) ; (org-babel-load-file exwm-org-file)))
#+end_src #+end_src

14
.zshrc
View File

@ -215,8 +215,8 @@ if [ -f "/usr/share/doc/fzf/examples/completion.zsh" ]; then
source /usr/share/doc/fzf/examples/completion.zsh source /usr/share/doc/fzf/examples/completion.zsh
elif [ -f "/usr/share/fzf/completion.zsh" ]; then elif [ -f "/usr/share/fzf/completion.zsh" ]; then
source /usr/share/fzf/completion.zsh source /usr/share/fzf/completion.zsh
elif [ -f "/opt/homebrew/Cellar/fzf/0.39.0/shell/completion.zsh" ]; then elif [ -f /opt/homebrew/Cellar/fzf/*/shell/completion.zsh ]; then
source /opt/homebrew/Cellar/fzf/0.39.0/shell/completion.zsh source /opt/homebrew/Cellar/fzf/*/shell/completion.zsh
else else
echo "completion.zsh not installed" echo "completion.zsh not installed"
fi fi
@ -225,8 +225,8 @@ if [ -f "/usr/share/doc/fzf/examples/key-bindings.zsh" ]; then
source /usr/share/doc/fzf/examples/key-bindings.zsh source /usr/share/doc/fzf/examples/key-bindings.zsh
elif [ -f "/usr/share/fzf/key-bindings.zsh" ]; then elif [ -f "/usr/share/fzf/key-bindings.zsh" ]; then
source /usr/share/fzf/key-bindings.zsh source /usr/share/fzf/key-bindings.zsh
elif [ -f "/opt/homebrew/Cellar/fzf/0.39.0/shell/key-bindings.zsh" ]; then elif [ -f /opt/homebrew/Cellar/fzf/*/shell/key-bindings.zsh ]; then
source /opt/homebrew/Cellar/fzf/0.39.0/shell/key-bindings.zsh source /opt/homebrew/Cellar/fzf/*/shell/key-bindings.zsh
else else
echo "key-bidings.zsh not installed" echo "key-bidings.zsh not installed"
fi fi
@ -249,7 +249,7 @@ fi
[[ $(uname -r) == *"arch"* ]] && export DEBUGINFOD_URLS="https://debuginfod.archlinux.org" [[ $(uname -r) == *"arch"* ]] && export DEBUGINFOD_URLS="https://debuginfod.archlinux.org"
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh
# CUSTOM ALIASES & FUNCTIONS # CUSTOM ALIASES & FUNCTIONS
@ -261,7 +261,7 @@ function ..... () {cd ../../../../}
function ...... () {cd ../../../../../} function ...... () {cd ../../../../../}
function up() { function up() {
for ip in $(ip addr | awk "/inet .*$1/ {print \$2}" | cut -d / -f 1) for ip in $(ifconfig | awk "/inet .*$1/ {print \$2}" | cut -d / -f 1)
do do
for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' -printf '%f\n') for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' -printf '%f\n')
do do
@ -279,4 +279,4 @@ export fasttrack="/usr/share/seclists/Passwords/fasttrack.txt"
alias open='xdg-open' alias open='xdg-open'
alias tryhackme="sudo openvpn ~/.tryhackme.ovpn" alias tryhackme="sudo openvpn ~/.tryhackme.ovpn"
alias listen="rlwrap nc -lnvp" alias listen="rlwrap nc -lnvp"
alias emacs="emacsclient -c" alias reload="source ~/.zshrc"