diff options
author | tsxv478 <atvx717@infraredcombat.xyz> | 2024-10-18 00:30:11 +0300 |
---|---|---|
committer | tsxv478 <atvx717@infraredcombat.xyz> | 2024-10-18 00:30:11 +0300 |
commit | dbea221e60de042389641a0dbeb73db8d75c5195 (patch) | |
tree | 537adb04a8b5d2bbb62ff704b5677f80787bec0a | |
parent | f7423dddddc3ddd7c443561b750d78aa40c873cb (diff) |
Update nvim config
-rw-r--r-- | .config/nvim/init.vim | 5 | ||||
-rw-r--r-- | .config/nvim/lua/init.lua | 25 |
2 files changed, 28 insertions, 2 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 42e76be..b4a2305 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -18,9 +18,8 @@ Plug 'ap/vim-css-color' " Plug 'neovim/nvim-lspconfig' call plug#end() -let g:gruvbox_termcolors = 16 -let g:gruvbox_italic = 1 let g:onedark_config = { 'style': 'dark', 'term_colors': 'true', 'transparent': 'true' } +let g:c_syntax_for_h = 1 " let g:SuperTabDefaultCompletionType = "context" " let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>" @@ -86,3 +85,5 @@ autocmd FileType python map <buffer> <leader>e :w<CR>:exec '!python' shellescape autocmd FileType sh map <buffer> <leader>e :w<CR>:exec '!sh' shellescape(@%, 1)<CR> " autocmd VimEnter * hi Normal guibg=NONE ctermbg=NONE autocmd VimLeave,VimSuspend * set guicursor=a:block-blinkon250 + +lua require('init') diff --git a/.config/nvim/lua/init.lua b/.config/nvim/lua/init.lua new file mode 100644 index 0000000..226543e --- /dev/null +++ b/.config/nvim/lua/init.lua @@ -0,0 +1,25 @@ +require("gruvbox").setup({ + terminal_colors = true, -- add neovim terminal colors + undercurl = true, + underline = true, + bold = true, + italic = { + strings = false, + emphasis = true, + comments = true, + operators = false, + folds = 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 = "", -- can be "hard", "soft" or empty string + palette_overrides = {}, + overrides = {}, + dim_inactive = false, + transparent_mode = true, +}) +vim.cmd("colorscheme gruvbox") |