aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mouse.h
diff options
context:
space:
mode:
authorluukvbaal <31730729+luukvbaal@users.noreply.github.com>2023-01-09 18:12:06 +0100
committerGitHub <noreply@github.com>2023-01-09 17:12:06 +0000
commit364b131f42509326c912c9b0fef5dfc94ed23b41 (patch)
tree654f24fde95819257002aa9b36990efd6a80535c /src/nvim/mouse.h
parent50f03773f4b9f4638489ccfd0503dc9e39e5de78 (diff)
downloadrneovim-364b131f42509326c912c9b0fef5dfc94ed23b41.tar.gz
rneovim-364b131f42509326c912c9b0fef5dfc94ed23b41.tar.bz2
rneovim-364b131f42509326c912c9b0fef5dfc94ed23b41.zip
feat(ui): add 'statuscolumn' option
Problem: Unable to customize the column next to a window ('gutter'). Solution: Add 'statuscolumn' option that follows the 'statusline' syntax, allowing to customize the status column. Also supporting the %@ click execute function label. Adds new items @C and @s which will print the fold and sign columns. Line numbers and signs can be clicked, highlighted, aligned, transformed, margined etc.
Diffstat (limited to 'src/nvim/mouse.h')
-rw-r--r--src/nvim/mouse.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/nvim/mouse.h b/src/nvim/mouse.h
index d493a479b1..8b2d7e0acd 100644
--- a/src/nvim/mouse.h
+++ b/src/nvim/mouse.h
@@ -9,17 +9,18 @@
#include "nvim/window.h"
/// jump_to_mouse() returns one of first five these values, possibly with
-/// some of the other four added.
+/// some of the other five added.
enum {
IN_UNKNOWN = 0,
IN_BUFFER = 1,
- IN_STATUS_LINE = 2, ///< on status or command line
- IN_SEP_LINE = 4, ///< on vertical separator line
- IN_OTHER_WIN = 8, ///< in other window but can't go there
+ IN_STATUS_LINE = 2, ///< on status or command line
+ IN_SEP_LINE = 4, ///< on vertical separator line
+ IN_OTHER_WIN = 8, ///< in other window but can't go there
CURSOR_MOVED = 0x100,
- MOUSE_FOLD_CLOSE = 0x200, ///< clicked on '-' in fold column
- MOUSE_FOLD_OPEN = 0x400, ///< clicked on '+' in fold column
- MOUSE_WINBAR = 0x800, ///< in window toolbar
+ MOUSE_FOLD_CLOSE = 0x200, ///< clicked on '-' in fold column
+ MOUSE_FOLD_OPEN = 0x400, ///< clicked on '+' in fold column
+ MOUSE_WINBAR = 0x800, ///< in window toolbar
+ MOUSE_STATUSCOL = 0x1000, ///< in 'statuscolumn'
};
/// flags for jump_to_mouse()