Minor config changes that I forgot to add earlier
This commit is contained in:
parent
3eba80bf09
commit
f5fc29f3ef
@ -1,5 +1,3 @@
|
||||
{
|
||||
"suggest.noselect": true,
|
||||
"suggest.enablePreselect": false,
|
||||
"diagnostic.checkCurrentLine": true
|
||||
}
|
||||
|
@ -11,7 +11,7 @@ set nohlsearch
|
||||
set hidden
|
||||
set incsearch
|
||||
set scrolloff=8
|
||||
set colorcolumn=100
|
||||
set colorcolumn=80
|
||||
set signcolumn=yes
|
||||
|
||||
" Remove arrow keys to train my fingers
|
||||
@ -45,7 +45,7 @@ colorscheme gruvbox
|
||||
set background=dark
|
||||
hi Normal guibg=NONE ctermbg=NONE
|
||||
|
||||
" Setup yara syntax highlighting
|
||||
" Yara syntax highlighting
|
||||
autocmd BufNewFile,BufRead *.yar,*.yara setlocal filetype=yara
|
||||
|
||||
" FZF key bindings
|
||||
@ -54,15 +54,12 @@ nnoremap <leader>fg <cmd>Rg<cr>
|
||||
nnoremap <leader>fb <cmd>Buffers<cr>
|
||||
|
||||
" 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
|
||||
return !col || getline('.')[col - 1] =~# '\s'
|
||||
return !col || getline('.')[col - 1] =~ '\s'
|
||||
endfunction
|
||||
|
||||
inoremap <silent><expr> <Tab>
|
||||
\ coc#pum#visible() ? coc#pum#next(1) :
|
||||
\ CheckBackspace() ? "\<Tab>" :
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<Tab>" :
|
||||
\ 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>"
|
||||
|
@ -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.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Uncomment this to use EXWM. I currently don't use this.
|
||||
(let ((exwm-org-file "~/.emacs.d/exwm.org"))
|
||||
(when (file-exists-p exwm-org-file)
|
||||
(org-babel-load-file exwm-org-file)))
|
||||
;(when (file-exists-p exwm-org-file)
|
||||
; (org-babel-load-file exwm-org-file)))
|
||||
#+end_src
|
||||
|
14
.zshrc
14
.zshrc
@ -215,8 +215,8 @@ if [ -f "/usr/share/doc/fzf/examples/completion.zsh" ]; then
|
||||
source /usr/share/doc/fzf/examples/completion.zsh
|
||||
elif [ -f "/usr/share/fzf/completion.zsh" ]; then
|
||||
source /usr/share/fzf/completion.zsh
|
||||
elif [ -f "/opt/homebrew/Cellar/fzf/0.39.0/shell/completion.zsh" ]; then
|
||||
source /opt/homebrew/Cellar/fzf/0.39.0/shell/completion.zsh
|
||||
elif [ -f /opt/homebrew/Cellar/fzf/*/shell/completion.zsh ]; then
|
||||
source /opt/homebrew/Cellar/fzf/*/shell/completion.zsh
|
||||
else
|
||||
echo "completion.zsh not installed"
|
||||
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
|
||||
elif [ -f "/usr/share/fzf/key-bindings.zsh" ]; then
|
||||
source /usr/share/fzf/key-bindings.zsh
|
||||
elif [ -f "/opt/homebrew/Cellar/fzf/0.39.0/shell/key-bindings.zsh" ]; then
|
||||
source /opt/homebrew/Cellar/fzf/0.39.0/shell/key-bindings.zsh
|
||||
elif [ -f /opt/homebrew/Cellar/fzf/*/shell/key-bindings.zsh ]; then
|
||||
source /opt/homebrew/Cellar/fzf/*/shell/key-bindings.zsh
|
||||
else
|
||||
echo "key-bidings.zsh not installed"
|
||||
fi
|
||||
@ -249,7 +249,7 @@ fi
|
||||
[[ $(uname -r) == *"arch"* ]] && export DEBUGINFOD_URLS="https://debuginfod.archlinux.org"
|
||||
|
||||
# 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
|
||||
|
||||
@ -261,7 +261,7 @@ function ..... () {cd ../../../../}
|
||||
function ...... () {cd ../../../../../}
|
||||
|
||||
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
|
||||
for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' -printf '%f\n')
|
||||
do
|
||||
@ -279,4 +279,4 @@ export fasttrack="/usr/share/seclists/Passwords/fasttrack.txt"
|
||||
alias open='xdg-open'
|
||||
alias tryhackme="sudo openvpn ~/.tryhackme.ovpn"
|
||||
alias listen="rlwrap nc -lnvp"
|
||||
alias emacs="emacsclient -c"
|
||||
alias reload="source ~/.zshrc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user