From 342a51fe0216a2d2360a9cb040a1a2636ab787b1 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Thu, 17 Jun 2021 18:20:35 +0300 Subject: nvim: add folds alacritty: add tweaks --- .config/alacritty/alacritty.yml | 4 ++-- .config/nvim/init.vim | 35 +++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/.config/alacritty/alacritty.yml b/.config/alacritty/alacritty.yml index a3dfc9c..df98787 100644 --- a/.config/alacritty/alacritty.yml +++ b/.config/alacritty/alacritty.yml @@ -47,7 +47,7 @@ window: y: 7 # Spread additional padding evenly around the terminal content. - #dynamic_padding: false + dynamic_padding: true # Window decorations # @@ -58,7 +58,7 @@ window: # Values for `decorations` (macOS only): # - transparent: Title bar, transparent background and title bar buttons # - buttonless: Title bar, transparent background, but no title bar buttons - #decorations: full + decorations: none # Startup Mode (changes require restart) # diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index bb476e4..52d7176 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -1,5 +1,7 @@ " la-ninpre init.vim " +" misc: {{{ + " use space as leader key let mapleader=" " @@ -51,13 +53,13 @@ set updatetime=50 " remind yourself about 80 column rule set colorcolumn=81 -" enable insert mode when entering git commit message -autocmd VimEnter */COMMIT_EDITMSG startinsert - " this could be used to show unprintable characters set listchars=tab:>-,eol:$,space:•,trail:~ -" vim plug plugins +" }}} +" plugins: {{{ + +" pluggins are installed with vim plug call plug#begin('~/.local/share/nvim/plugged') Plug '~/.local/share/nvim/plugged/gruvbox', {'branch': 'la-ninpre/la-ninpre'} Plug 'junegunn/goyo.vim' @@ -75,19 +77,24 @@ Plug 'https://tildegit.org/sloum/gemini-vim-syntax' call plug#end() filetype plugin indent on +" }}} +" colorscheme: {{{ " colorscheme tweaks -let g:gruvbox_contrast_dark = 'hard' if exists('+termguicolors') let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" endif + +let g:gruvbox_contrast_dark='hard' +let g:gruvbox_italic=1 +let g:gruvbox_transparent_bg=1 let g:gruvbox_invert_selection='0' -colorscheme gruvbox + set background=dark +colorscheme gruvbox -" -" mappings -" +" }}} +" mappings: {{{ " easier navigation in splits map @@ -127,9 +134,8 @@ vnoremap K :m '<-2gv=gv " alias for capturing group in command mode (for use with regexps) cmap ;( \(\) -" -" autocommands -" +" }}} +" autocommands: {{{ " limelight on when goyo autocmd! User GoyoEnter Limelight @@ -138,8 +144,13 @@ autocmd! User GoyoLeave Limelight! " fix wrong nvim size when starting in alacritty autocmd VimEnter * :silent exec "!kill -s SIGWINCH $PPID" +" enable insert mode when entering git commit message +autocmd VimEnter */COMMIT_EDITMSG startinsert + " highlight yanked text (needs nvim 0.5.x) augroup highlight_yank autocmd! autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank({timeout = 40}) augroup END + +" vim: ft=vim fdm=marker: -- cgit v1.2.3