nvim: add folds alacritty: add tweaks
la-ninpre leobrekalini@gmail.com
Thu, 17 Jun 2021 18:20:35 +0300
2 files changed,
25 insertions(+),
14 deletions(-)
M
.config/alacritty/alacritty.yml
→
.config/alacritty/alacritty.yml
@@ -47,7 +47,7 @@ x: 7
y: 7 # Spread additional padding evenly around the terminal content. - #dynamic_padding: false + dynamic_padding: true # Window decorations #@@ -58,7 +58,7 @@ #
# 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) #
M
.config/nvim/init.vim
→
.config/nvim/init.vim
@@ -1,5 +1,7 @@
" la-ninpre init.vim " +" misc: {{{ + " use space as leader key let mapleader=" "@@ -51,13 +53,13 @@
" 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 = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8b = "\<Esc>[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 <C-H> <C-W><C-H>@@ -127,9 +134,8 @@
" alias for capturing group in command mode (for use with regexps) cmap ;( \(\)<Left><Left> -" -" autocommands -" +" }}} +" autocommands: {{{ " limelight on when goyo autocmd! User GoyoEnter Limelight@@ -138,8 +144,13 @@
" 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: