From 553530387aaf6a442a33eba3f7b43b8911fc4bb8 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 7 Mar 2021 22:40:28 +0100 Subject: Add new arch configs, messed up color theme --- .config/nvim/general/settings.vim | 9 +++++++++ .config/nvim/init.vim | 4 ++-- .config/nvim/lua/statusline.lua | 7 ++----- .config/nvim/vim-plug/plugins.vim | 7 ++++++- 4 files changed, 19 insertions(+), 8 deletions(-) (limited to '.config/nvim') diff --git a/.config/nvim/general/settings.vim b/.config/nvim/general/settings.vim index 47066ef..b348267 100644 --- a/.config/nvim/general/settings.vim +++ b/.config/nvim/general/settings.vim @@ -45,3 +45,12 @@ au CursorHold * checktime " You can't stop me cmap w!! w !sudo tee % + +" Relative line numbers +:set number relativenumber + +:augroup numbertoggle +: autocmd! +: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber +: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber +:augroup END diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index bd6f82e..ed7a0b6 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -33,9 +33,9 @@ source $HOME/.config/nvim/plug-config/telescope.vim luafile $HOME/.config/nvim/lua/statusline.lua source $HOME/.config/nvim/plug-config/vim-bbye.vim source $HOME/.config/nvim/plug-config/vim-commentary.vim +source $HOME/.config/nvim/plug-config/vim-pydocstring.vim source $HOME/.config/nvim/plug-config/vimwiki.vim " Theme source $HOME/.config/nvim/themes/githubsy.vim -" source $HOME/.config/nvim/themes/spaceway.vim - +" source $HOME/.config/nvim/themes/nord.vim diff --git a/.config/nvim/lua/statusline.lua b/.config/nvim/lua/statusline.lua index 99904d9..5e88ec0 100644 --- a/.config/nvim/lua/statusline.lua +++ b/.config/nvim/lua/statusline.lua @@ -22,9 +22,9 @@ local one_dark_colors = { } local nord_colors = { - bg = "0x03050c", # "#2E3440", + bg = "#2E3440", fg = "#81A1C1", - line_bg = "0x03050c", # "#2E3440", + line_bg = "#2E3440", fg_green = "#8FBCBB", yellow = "#EBCB8B", cyan = "#A3BE8C", @@ -247,6 +247,3 @@ section.short_line_right[1] = { highlight = {nord_colors.fg,nord_colors.bg} } } - - - diff --git a/.config/nvim/vim-plug/plugins.vim b/.config/nvim/vim-plug/plugins.vim index 5e306f9..6a05ad7 100644 --- a/.config/nvim/vim-plug/plugins.vim +++ b/.config/nvim/vim-plug/plugins.vim @@ -39,7 +39,10 @@ call plug#begin('~/.config/nvim/autoload/plugged') " FZF "Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } "Plug 'junegunn/fzf.vim' - + + " Skim fuzzy finder + Plug 'lotabout/skim', { 'dir': '~/.skim', 'do': './install' } + " Rooter changes the working directory to the project root when you open a file or directory. "Plug 'airblade/vim-rooter' @@ -103,6 +106,8 @@ call plug#begin('~/.config/nvim/autoload/plugged') " Intuitive buffer closing Plug 'moll/vim-bbye' + " Pydocstring + Plug 'heavenshell/vim-pydocstring', { 'do': 'make install' } " Vim wiki for notes Plug 'vimwiki/vimwiki' -- cgit v1.2.3-70-g09d2