From a9a03003379797c3886731ff3f9ee40e99202d48 Mon Sep 17 00:00:00 2001 From: PlexSheep Date: Fri, 17 Feb 2023 19:46:58 +0100 Subject: [PATCH] moar configs --- home/.config/nvim/coc-settings.json | 4 ++++ home/.config/nvim/init.vim | 6 +++++- home/.config/nvim/noplug.vim | 5 ++++- home/.vimrc | 5 ++++- home/.zsh-server/zshrc | 3 ++- home/.zsh/zshrc | 2 ++ 6 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 home/.config/nvim/coc-settings.json diff --git a/home/.config/nvim/coc-settings.json b/home/.config/nvim/coc-settings.json new file mode 100644 index 0000000..e2bc1ae --- /dev/null +++ b/home/.config/nvim/coc-settings.json @@ -0,0 +1,4 @@ +{ + "rust-analyzer.server.path": "/usr/bin/rust-analyzer", + "suggest.acceptSuggestionOnCommitCharacter": true +} diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 902510c..fa8e8a2 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -20,7 +20,7 @@ set ttyfast " Speed up scrolling in Vim set fdm=syntax " foldingmethod syntax set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. "set spell " enable spell check (may need to download language package) -set timeout timeoutlen=400 +set timeout timeoutlen=200 " Avoid showing message extra message when using completion" set shortmess+=c @@ -56,6 +56,9 @@ nnoremap Y "+Y nnoremap y "+y nnoremap yy "+yy +" dont write the pastet upon stuff in visual mode into the register +vnoremap p pgvy + " open terminal with F12 nnoremap :terminal @@ -105,6 +108,7 @@ Plug 'goolord/alpha-nvim' Plug 'nvim-tree/nvim-web-devicons' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf.vim' +Plug 'jiangmiao/auto-pairs' call plug#end() diff --git a/home/.config/nvim/noplug.vim b/home/.config/nvim/noplug.vim index 35cbcb2..f416a46 100644 --- a/home/.config/nvim/noplug.vim +++ b/home/.config/nvim/noplug.vim @@ -20,7 +20,7 @@ set ttyfast " Speed up scrolling in Vim set fdm=syntax " foldingmethod syntax set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. "set spell " enable spell check (may need to download language package) -set timeout timeoutlen=400 +set timeout timeoutlen=200 " Avoid showing message extra message when using completion" set shortmess+=c @@ -56,6 +56,9 @@ nnoremap Y "+Y nnoremap y "+y nnoremap yy "+yy +" dont write the pastet upon stuff in visual mode into the register +vnoremap p pgvy + " open terminal with F12 nnoremap :terminal diff --git a/home/.vimrc b/home/.vimrc index f50d72f..043be91 100644 --- a/home/.vimrc +++ b/home/.vimrc @@ -20,7 +20,7 @@ set ttyfast " Speed up scrolling in Vim set fdm=syntax " foldingmethod syntax set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. "set spell " enable spell check (may need to download language package) -set timeout timeoutlen=400 +set timeout timeoutlen=200 " Avoid showing message extra message when using completion" set shortmess+=c @@ -48,6 +48,9 @@ nnoremap Y "+Y nnoremap y "+y nnoremap yy "+yy +" dont write the pastet upon stuff in visual mode into the register +vnoremap p pgvy + " open terminal with F12 nnoremap :terminal diff --git a/home/.zsh-server/zshrc b/home/.zsh-server/zshrc index 4d5c94b..068a2b6 100644 --- a/home/.zsh-server/zshrc +++ b/home/.zsh-server/zshrc @@ -1,5 +1,6 @@ ### ENVVARS -export PATH=/usr/local/sbin:/usr/sbin/:/usr/local/bin:/usr/bin:~/.local/bin +export PATH=/usr/local/sbin:/usr/sbin/:/usr/local/bin:/usr/bin:~/.local/bin:~/.cargo/bin +source ~/.path.zsh export EDITOR=vim ### Aliases diff --git a/home/.zsh/zshrc b/home/.zsh/zshrc index 399d09a..b700eea 100644 --- a/home/.zsh/zshrc +++ b/home/.zsh/zshrc @@ -7,6 +7,7 @@ fi ### ENVVARS export PATH=/usr/local/sbin:/usr/sbin/:/usr/local/bin:/usr/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:~/.local/bin:~/.cargo/bin +source ~/.path.zsh export EDITOR=nvim ### Aliases @@ -23,6 +24,7 @@ alias lgrep="find | grep" alias psgrep="ps axu | grep" alias plasmarestart="killall plasmashell; kstart plasma-desktop" alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' +alias gg=lazygit ### Functions function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }