diff options
Diffstat (limited to 'lua/config')
| -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 + }, } |
