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