mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-12-20 08:10:09 +01:00
bufferline.nvim: fix hover behavior (#1297)
Enable `mousemoveevent` vim option if `setupOpts.options.hover` is enabled, as required by the plugin.
This commit is contained in:
parent
cd81bbb904
commit
4b95ae106c
3 changed files with 31 additions and 4 deletions
|
|
@ -12,4 +12,5 @@ release-notes/rl-0.5.md
|
||||||
release-notes/rl-0.6.md
|
release-notes/rl-0.6.md
|
||||||
release-notes/rl-0.7.md
|
release-notes/rl-0.7.md
|
||||||
release-notes/rl-0.8.md
|
release-notes/rl-0.8.md
|
||||||
|
release-notes/rl-0.9.md
|
||||||
```
|
```
|
||||||
|
|
|
||||||
8
docs/manual/release-notes/rl-0.9.md
Normal file
8
docs/manual/release-notes/rl-0.9.md
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# Release 0.9 {#sec-release-0-9}
|
||||||
|
|
||||||
|
## Changelog {#sec-release-0-9-changelog}
|
||||||
|
|
||||||
|
|
||||||
|
[suimong](https://github.com/suimong):
|
||||||
|
|
||||||
|
- Fix `vim.tabline.nvimBufferline` where `setupOpts.options.hover` requires `vim.opt.mousemoveevent` to be set.
|
||||||
|
|
@ -24,15 +24,33 @@ in {
|
||||||
# Recommended by upstream, so enabled here.
|
# Recommended by upstream, so enabled here.
|
||||||
visuals.nvim-web-devicons.enable = true;
|
visuals.nvim-web-devicons.enable = true;
|
||||||
|
|
||||||
|
# See `:help bufferline-hover-events`
|
||||||
|
options = mkIf cfg.setupOpts.options.hover.enabled {
|
||||||
|
mousemoveevent = true;
|
||||||
|
};
|
||||||
|
|
||||||
maps.normal = mkMerge [
|
maps.normal = mkMerge [
|
||||||
(mkLuaBinding cfg.mappings.closeCurrent "require(\"bufdelete\").bufdelete" mappings.closeCurrent.description)
|
(
|
||||||
|
mkLuaBinding cfg.mappings.closeCurrent "require(\"bufdelete\").bufdelete"
|
||||||
|
mappings.closeCurrent.description
|
||||||
|
)
|
||||||
(mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext<CR>" mappings.cycleNext.description)
|
(mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext<CR>" mappings.cycleNext.description)
|
||||||
(mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext<CR>" mappings.cycleNext.description)
|
(mkBinding cfg.mappings.cycleNext ":BufferLineCycleNext<CR>" mappings.cycleNext.description)
|
||||||
(mkBinding cfg.mappings.cyclePrevious ":BufferLineCyclePrev<CR>" mappings.cyclePrevious.description)
|
(mkBinding cfg.mappings.cyclePrevious ":BufferLineCyclePrev<CR>" mappings.cyclePrevious.description)
|
||||||
(mkBinding cfg.mappings.pick ":BufferLinePick<CR>" mappings.pick.description)
|
(mkBinding cfg.mappings.pick ":BufferLinePick<CR>" mappings.pick.description)
|
||||||
(mkBinding cfg.mappings.sortByExtension ":BufferLineSortByExtension<CR>" mappings.sortByExtension.description)
|
(
|
||||||
(mkBinding cfg.mappings.sortByDirectory ":BufferLineSortByDirectory<CR>" mappings.sortByDirectory.description)
|
mkBinding cfg.mappings.sortByExtension ":BufferLineSortByExtension<CR>"
|
||||||
(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)
|
mappings.sortByExtension.description
|
||||||
|
)
|
||||||
|
(
|
||||||
|
mkBinding cfg.mappings.sortByDirectory ":BufferLineSortByDirectory<CR>"
|
||||||
|
mappings.sortByDirectory.description
|
||||||
|
)
|
||||||
|
(
|
||||||
|
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
|
||||||
|
)
|
||||||
(mkBinding cfg.mappings.moveNext ":BufferLineMoveNext<CR>" mappings.moveNext.description)
|
(mkBinding cfg.mappings.moveNext ":BufferLineMoveNext<CR>" mappings.moveNext.description)
|
||||||
(mkBinding cfg.mappings.movePrevious ":BufferLineMovePrev<CR>" mappings.movePrevious.description)
|
(mkBinding cfg.mappings.movePrevious ":BufferLineMovePrev<CR>" mappings.movePrevious.description)
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue