mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-30 21:46:32 +00:00
Nvim restart (#9)
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
This commit is contained in:
24
config/nvim/lua/plugins/twilight.lua
Normal file
24
config/nvim/lua/plugins/twilight.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
-- Dim
|
||||
return {
|
||||
"folke/twilight.nvim",
|
||||
config = {
|
||||
dimming = {
|
||||
alpha = 0.5, -- amount of dimming
|
||||
inactive = false, -- when true, other windows will be fully dimmed (unless they contain the same buffer)
|
||||
},
|
||||
context = 3, -- amount of lines we will try to show around the current line
|
||||
treesitter = true, -- use treesitter when available for the filetype
|
||||
-- treesitter is used to automatically expand the visible text,
|
||||
-- but you can further control the types of nodes that should always be fully expanded
|
||||
expand = { -- for treesitter, we we always try to expand to the top-most ancestor with these types
|
||||
"function",
|
||||
"while_statement",
|
||||
"for_statement",
|
||||
"switch_statement",
|
||||
"method",
|
||||
"table",
|
||||
"if_statement",
|
||||
},
|
||||
exclude = {}, -- exclude these filetypes
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user