mirror of
https://github.com/davegallant/nix-config
synced 2025-08-06 07:13:40 +00:00
Add twilight-nvim
This commit is contained in:
@@ -308,6 +308,7 @@ in
|
|||||||
syntastic
|
syntastic
|
||||||
tabular
|
tabular
|
||||||
telescope-nvim
|
telescope-nvim
|
||||||
|
twilight-nvim
|
||||||
typescript-vim
|
typescript-vim
|
||||||
vim-commentary
|
vim-commentary
|
||||||
vim-fugitive
|
vim-fugitive
|
||||||
|
@@ -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([[
|
vim.api.nvim_exec([[
|
||||||
set foldmethod=expr
|
set foldmethod=expr
|
||||||
set foldlevel=20
|
set foldlevel=20
|
||||||
|
Reference in New Issue
Block a user