From a5f8ce6c092320f91d30780e88a2608695515bc6 Mon Sep 17 00:00:00 2001 From: Szwendacz99 Date: Sun, 9 Oct 2022 12:14:32 +0200 Subject: [PATCH] Set default theme to gruvbox, leave others installed for now --- init.vim | 14 +++++++++++--- lua/general.lua | 21 +++++++++++++++++++++ 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/init.vim b/init.vim index 09ab991..7359938 100644 --- a/init.vim +++ b/init.vim @@ -5,7 +5,6 @@ Plug 'kyazdani42/nvim-web-devicons' " optional, for file icons Plug 'kyazdani42/nvim-tree.lua' Plug 'scrooloose/nerdtree' -Plug 'dracula/vim' Plug 'neoclide/coc.nvim', {'branch': 'release'} Plug 'preservim/nerdcommenter' Plug 'mhinz/vim-startify' @@ -17,6 +16,10 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'honza/vim-snippets' Plug 'itchyny/vim-cursorword' +Plug 'sheerun/vim-polyglot' +Plug 'olimorris/onedarkpro.nvim' +Plug 'ellisonleao/gruvbox.nvim' +Plug 'dracula/vim' "Fuzzy search by Telescope and its dependencies: Plug 'nvim-lua/plenary.nvim' @@ -29,6 +32,8 @@ call plug#end() " load lua file (empty for now) lua require("general") +"autocmd BufEnter *.sls :setlocal filetype=yaml + "inoremap: maps the key in insert mode "nnoremap: maps the key in normal mode "vnoremap: maps the key in visual mode @@ -47,9 +52,10 @@ vmap NERDCommenterToggle " show uncommited git changes in current part of the code nnoremap :CocCommand git.chunkInfo -"plugin configuration +"theme configuration syntax enable -colorscheme dracula +set termguicolors +colorscheme gruvbox let g:airline_theme='dark' set splitright @@ -137,6 +143,8 @@ else endif " general configs +set modeline +let g:sls_use_jinja_syntax = 1 set encoding=UTF-8 set showmatch " show matching set ignorecase " case insensitive diff --git a/lua/general.lua b/lua/general.lua index 00dc7a1..e14c161 100644 --- a/lua/general.lua +++ b/lua/general.lua @@ -15,3 +15,24 @@ require("nvim-tree").setup({ dotfiles = true, }, }) + +--Gruvbox theme settings +-- setup must be called before loading the colorscheme +require("gruvbox").setup({ + undercurl = true, + underline = true, + bold = true, + italic = false, -- default=true + strikethrough = true, + invert_selection = false, + invert_signs = false, + invert_tabline = false, + invert_intend_guides = false, + inverse = true, -- invert background for search, diffs, statuslines and errors + contrast = "hard", -- can be "hard", "soft" or empty string + palette_overrides = {}, + overrides = {}, + dim_inactive = true, -- default=false + transparent_mode = false, +}) +