Add twilight-nvim

This commit is contained in:
Dave Gallant
2021-07-18 10:56:31 -04:00
parent 68a6282cc9
commit 46dfd4b9c3
2 changed files with 19 additions and 0 deletions

View File

@@ -308,6 +308,7 @@ in
syntastic
tabular
telescope-nvim
twilight-nvim
typescript-vim
vim-commentary
vim-fugitive

View File

@@ -34,6 +34,24 @@ require('nvim-treesitter.configs').setup({
},
})
-- twilight
require("twilight").setup {
dimming = {
alpha = 0.50, -- amount of dimming
-- we try to get the foreground from the highlight groups or fallback color
color = { "Normal", "#cccccc" },
},
context = 10, -- amount of lines we will try to show around the current line
expand = { -- for treesitter, we we always try to expand to the top-most ancestor with these types
"function",
"method",
"table",
"if_statement",
},
exclude = {}, -- exclude these filetypes
}
vim.api.nvim_exec([[
set foldmethod=expr
set foldlevel=20