]> Git — Sourcephile - julm/julm-nix.git/blob - home-manager/profiles/nvim/lua/plugins/modes.lua
neovim: configure, using ghostty and tmux
[julm/julm-nix.git] / home-manager / profiles / nvim / lua / plugins / modes.lua
1 -- Prismatic line decorations for the adventurous vim user
2 -- https://github.com/mvllow/modes.nvim
3 return {
4 "modes.nvim",
5 lazy = false,
6 after = function()
7 require("modes").setup({
8 colors = {
9 bg = "", -- Optional bg param, defaults to Normal hl group
10 copy = "#9745be",
11 delete = "#c75c6a",
12 change = "#c75c6a", -- Optional param, defaults to delete
13 format = "#c79585",
14 insert = "#859900",
15 replace = "#245361",
16 select = "#f5c359", -- Optional param, defaults to visual
17 visual = "#f5c359",
18 },
19
20 -- Set opacity for cursorline and number background
21 line_opacity = 0.25,
22
23 -- Enable cursor highlights
24 set_cursor = true,
25
26 -- Enable cursorline initially, and disable cursorline for inactive windows
27 -- or ignored filetypes
28 -- WorkaroundNote: set to false
29 -- because it is incompatible with neo-tree handling of its cursorline
30 -- https://github.com/mvllow/modes.nvim/issues/28
31 set_cursorline = false,
32
33 -- Enable line number highlights to match cursorline
34 set_number = true,
35
36 -- Enable sign column highlights to match cursorline
37 set_signcolumn = true,
38
39 -- Disable modes highlights for specified filetypes
40 -- or enable with prefix "!" if otherwise disabled (please PR common patterns)
41 -- Can also be a function fun():boolean that disables modes highlights when true
42 ignore = {
43 "NvimTree",
44 "neo-tree",
45 "neo-tree-popup",
46 "TelescopePrompt",
47 "TelescopePrompt",
48 "!minifiles",
49 },
50 })
51 end,
52 }