From 2f935efc33c43673df0f20817ec40689eb69d315 Mon Sep 17 00:00:00 2001 From: Gregory Leeman Date: Tue, 4 Jun 2024 11:33:12 +0100 Subject: [PATCH] lazygit --- after/ftplugin/python.vim | 2 ++ lua/solarized/themes/default/editor.lua | 2 +- vimrc | 14 ++++++-------- 3 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 after/ftplugin/python.vim diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim new file mode 100644 index 0000000..4b56a40 --- /dev/null +++ b/after/ftplugin/python.vim @@ -0,0 +1,2 @@ +set foldmethod=expr +set foldexpr=nvim_treesitter#foldexpr() diff --git a/lua/solarized/themes/default/editor.lua b/lua/solarized/themes/default/editor.lua index 02a31d6..5789201 100644 --- a/lua/solarized/themes/default/editor.lua +++ b/lua/solarized/themes/default/editor.lua @@ -24,7 +24,7 @@ return function(c, config) { fg = c.base00, bg = c.base02 }, { transparent = config.transparent } ) -- Separators between window splits - set_hl('Folded',{ fg = c.base0, bg = c.base02, underline = true, bold = true }) -- Line used for closed folds + set_hl('Folded',{ fg = c.base3, bg = c.base02, bold = true }) -- Line used for closed folds set_hl('FoldColumn', { fg = c.base0, bg = c.base02, bold = true }) -- 'foldcolumn' set_hl( 'SignColumn', diff --git a/vimrc b/vimrc index 8fad14a..acf48ee 100644 --- a/vimrc +++ b/vimrc @@ -13,11 +13,11 @@ vim.o.background = 'dark' require('solarized').setup { -- theme = 'neo'; theme = 'default'; - highlights = function (colors, colorhelper) - return { - Folded = { underline = false, fg = colors.base3, bg = colors.base03 } - } - end + -- highlights = function (colors, colorhelper) + -- return { + -- " Folded = { underline = false, fg = colors.base3, bg = colors.base03 } + -- } + -- end } vim.cmd("colorscheme solarized") EOF @@ -50,9 +50,7 @@ set completeopt=noinsert,menuone,noselect " options for Insert mode completion set cursorline " highlight the screen line of the cursor set foldenable " set to display all folds open set foldopen-=block " for which commands a fold will be opened -set foldmethod=expr " folding type -" set foldmethod=marker -set foldexpr=nvim_treesitter#foldexpr() +set foldmethod=marker set nofoldenable " disable folding at startup. set foldtext=FoldText() " expression used to display for a closed fold set formatoptions-=cro " how automatic formatting is to be done