diff options
| author | Marcelo <setanta@gmail.com> | 2025-04-10 17:57:31 -0300 |
|---|---|---|
| committer | Marcelo <setanta@gmail.com> | 2025-04-10 17:57:31 -0300 |
| commit | 7a3e57d08656a0fb64025983d5463d2305ef0543 (patch) | |
| tree | cc1af5803d7c5534e15498c246acf150b366aaba /lua | |
| parent | b86954ad293a7b8328ca0738955db10035acc05a (diff) | |
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/config/plugins/code-editing.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/config/plugins/code-editing.lua b/lua/config/plugins/code-editing.lua index b63320c..a1dd8c4 100644 --- a/lua/config/plugins/code-editing.lua +++ b/lua/config/plugins/code-editing.lua @@ -18,4 +18,28 @@ return { event = "InsertEnter", config = true, }, + + -- Twilight dims inactive portions of the code you"re editing using TreeSitter. + { + "folke/twilight.nvim", + config = function() + local twilight = require("twilight") + twilight.setup({ + dimming = { alpha = 0.1, }, + expand = { + "function", + "method", + }, + }) + vim.keymap.set("n", "<Leader><Leader>", twilight.toggle, { desc = "Dims inactive portions of the code" }) + end + }, + + -- Hex editing. + { + "RaafatTurki/hex.nvim", + config = function() + require("hex").setup() + end + }, } |
