feat: add more configuration options for modes.nvim

This commit is contained in:
NotAShelf 2023-06-06 02:33:18 +03:00
commit b8d2c23eaf
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 31 additions and 3 deletions

View file

@ -1,5 +1,4 @@
{
pkgs,
config,
lib,
...
@ -15,7 +14,13 @@ in {
vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere ''
require('modes').setup({
set_cursorline = ${boolToString cfg.setCursorline}, -- looks ugly
set_cursorline = ${boolToString cfg.setCursorline},
colors = {
copy = "${toString cfg.colors.copy}",
delete = "${toString cfg.colors.delete}",
insert = "${toString cfg.colors.insert}",
visual = "${toString cfg.colors.visual}",
},
})
'';
};