From ad0af01eb910cb8909dfa0d09b88da6489fe857e Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 29 Mar 2023 22:12:59 -0500 Subject: [PATCH] changes --- .config/aliasrc | 1 + .config/nvim/init.vim | 16 +++++++++++++++- .config/sway/config | 3 ++- .config/zsh/.zshrc | 2 ++ 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.config/aliasrc b/.config/aliasrc index e36eabb..8b97177 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -24,6 +24,7 @@ alias sfe='$EDITOR ~/.config/sfeed/sfeedrc' #programs alias trc="tremc -c @$TRNS_IP:9091" alias pm='pulsemixer' +alias vimw='nvim -c VimwikiIndex' #Youtube alias yv='pipe-viewer --resolution=480p' diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 42dd3db..f16ddf6 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -9,16 +9,26 @@ call plug#begin('~/.local/share/nvim/plugged') Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' + Plug 'tpope/vim-fugitive' Plug 'dense-analysis/ale' Plug 'chriskempson/base16-vim' - Plug 'ziglang/zig.vim' + Plug 'vimwiki/vimwiki' "language support Plug 'tbastos/vim-lua' + Plug 'ziglang/zig.vim' + + + call plug#end() +"vimwiki +set nocompatible +filetype plugin on +syntax on + "enable ale completion let g:ale_completion_enabled = 1 @@ -44,6 +54,10 @@ let g:ale_completion_enabled = 1 nnoremap :if &modifiable && !&readonly && &modified :write :endif:bnext nnoremap :if &modifiable && !&readonly && &modified :write :endif:bprevious + nnoremap :ALEGoToDefinition + + + "make vim use system clipboard by default. ONLY FOR NEOVIM set clipboard+=unnamedplus diff --git a/.config/sway/config b/.config/sway/config index 952bb5c..f209633 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -7,7 +7,7 @@ ### Variables # # Logo key. Use Mod1 for Alt. -set $mod Mod1 +set $mod Mod4 # Home row direction keys, like vim set $left h set $down j @@ -296,6 +296,7 @@ default_border pixel 2 #set windows to float by default for_window [class="Matplotlib"] floating enable +for_window [class="Steam"] floating enable #input config input type:pointer accel_profile flat diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 11a7531..3c0c38f 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -90,6 +90,8 @@ fi #fi #export TERM='xterm-256color' +[ -f "/home/alex/.ghcup/env" ] && source "/home/alex/.ghcup/env" # ghcup-env # Load zsh-syntax-highlighting; should be last. source $HOME/.local/share/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null +