|
24 | 24 | # Recommended by upstream, so enabled here. |
25 | 25 | visuals.nvim-web-devicons.enable = true; |
26 | 26 |
|
| 27 | + # See `:help bufferline-hover-events` |
| 28 | + options = mkIf cfg.setupOpts.options.hover.enabled { |
| 29 | + mousemoveevent = true; |
| 30 | + }; |
| 31 | + |
27 | 32 | maps.normal = mkMerge [ |
28 | | - (mkLuaBinding cfg.mappings.closeCurrent "require(\"bufdelete\").bufdelete" mappings.closeCurrent.description) |
| 33 | + ( |
| 34 | + mkLuaBinding cfg.mappings.closeCurrent "require(\"bufdelete\").bufdelete" |
| 35 | + mappings.closeCurrent.description |
| 36 | + ) |
29 | 37 | (mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext<CR>" mappings.cycleNext.description) |
30 | 38 | (mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext<CR>" mappings.cycleNext.description) |
31 | 39 | (mkBinding cfg.mappings.cyclePrevious ":BufferLineCyclePrev<CR>" mappings.cyclePrevious.description) |
32 | 40 | (mkBinding cfg.mappings.pick ":BufferLinePick<CR>" mappings.pick.description) |
33 | | - (mkBinding cfg.mappings.sortByExtension ":BufferLineSortByExtension<CR>" mappings.sortByExtension.description) |
34 | | - (mkBinding cfg.mappings.sortByDirectory ":BufferLineSortByDirectory<CR>" mappings.sortByDirectory.description) |
35 | | - (mkLuaBinding cfg.mappings.sortById "function() require(\"bufferline\").sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end) end" mappings.sortById.description) |
| 41 | + ( |
| 42 | + mkBinding cfg.mappings.sortByExtension ":BufferLineSortByExtension<CR>" |
| 43 | + mappings.sortByExtension.description |
| 44 | + ) |
| 45 | + ( |
| 46 | + mkBinding cfg.mappings.sortByDirectory ":BufferLineSortByDirectory<CR>" |
| 47 | + mappings.sortByDirectory.description |
| 48 | + ) |
| 49 | + ( |
| 50 | + mkLuaBinding cfg.mappings.sortById |
| 51 | + "function() require(\"bufferline\").sort_buffers_by(function (buf_a, buf_b) return buf_a.id < buf_b.id end) end" |
| 52 | + mappings.sortById.description |
| 53 | + ) |
36 | 54 | (mkBinding cfg.mappings.moveNext ":BufferLineMoveNext<CR>" mappings.moveNext.description) |
37 | 55 | (mkBinding cfg.mappings.movePrevious ":BufferLineMovePrev<CR>" mappings.movePrevious.description) |
38 | 56 | ]; |
|
0 commit comments