moar configs

This commit is contained in:
Christoph J. Scherr 2023-02-17 19:46:58 +01:00
parent 962e7238b7
commit a9a0300337
6 changed files with 21 additions and 4 deletions

View File

@ -0,0 +1,4 @@
{
"rust-analyzer.server.path": "/usr/bin/rust-analyzer",
"suggest.acceptSuggestionOnCommitCharacter": true
}

View File

@ -20,7 +20,7 @@ set ttyfast " Speed up scrolling in Vim
set fdm=syntax " foldingmethod syntax set fdm=syntax " foldingmethod syntax
set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. 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 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" " Avoid showing message extra message when using completion"
set shortmess+=c set shortmess+=c
@ -56,6 +56,9 @@ nnoremap <leader>Y "+Y
nnoremap <leader>y "+y nnoremap <leader>y "+y
nnoremap <leader>yy "+yy nnoremap <leader>yy "+yy
" dont write the pastet upon stuff in visual mode into the register
vnoremap p pgvy
" open terminal with F12 " open terminal with F12
nnoremap <F12> :terminal<CR> nnoremap <F12> :terminal<CR>
@ -105,6 +108,7 @@ Plug 'goolord/alpha-nvim'
Plug 'nvim-tree/nvim-web-devicons' Plug 'nvim-tree/nvim-web-devicons'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim' Plug 'junegunn/fzf.vim'
Plug 'jiangmiao/auto-pairs'
call plug#end() call plug#end()

View File

@ -20,7 +20,7 @@ set ttyfast " Speed up scrolling in Vim
set fdm=syntax " foldingmethod syntax set fdm=syntax " foldingmethod syntax
set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. 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 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" " Avoid showing message extra message when using completion"
set shortmess+=c set shortmess+=c
@ -56,6 +56,9 @@ nnoremap <leader>Y "+Y
nnoremap <leader>y "+y nnoremap <leader>y "+y
nnoremap <leader>yy "+yy nnoremap <leader>yy "+yy
" dont write the pastet upon stuff in visual mode into the register
vnoremap p pgvy
" open terminal with F12 " open terminal with F12
nnoremap <F12> :terminal<CR> nnoremap <F12> :terminal<CR>

View File

@ -20,7 +20,7 @@ set ttyfast " Speed up scrolling in Vim
set fdm=syntax " foldingmethod syntax set fdm=syntax " foldingmethod syntax
set foldlevel=10 " only fold when a certain complexity is reached by default. This applies only at startup. 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 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" " Avoid showing message extra message when using completion"
set shortmess+=c set shortmess+=c
@ -48,6 +48,9 @@ nnoremap <leader>Y "+Y
nnoremap <leader>y "+y nnoremap <leader>y "+y
nnoremap <leader>yy "+yy nnoremap <leader>yy "+yy
" dont write the pastet upon stuff in visual mode into the register
vnoremap p pgvy
" open terminal with F12 " open terminal with F12
nnoremap <F12> :terminal<CR> nnoremap <F12> :terminal<CR>

View File

@ -1,5 +1,6 @@
### ENVVARS ### 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 export EDITOR=vim
### Aliases ### Aliases

View File

@ -7,6 +7,7 @@ fi
### ENVVARS ### 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 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 export EDITOR=nvim
### Aliases ### Aliases
@ -23,6 +24,7 @@ alias lgrep="find | grep"
alias psgrep="ps axu | grep" alias psgrep="ps axu | grep"
alias plasmarestart="killall plasmashell; kstart plasma-desktop" alias plasmarestart="killall plasmashell; kstart plasma-desktop"
alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"' alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
alias gg=lazygit
### Functions ### Functions
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" } function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }