Adds mouse features to neovim using nvim-orgmode.
Requires neovim 0.9.2+.
This plugin depends on nvim-orgmode/orgmode.
Code Example
{
"chipsenkbeil/org-mouse.nvim",
dependencies = { "nvim-orgmode/orgmode" },
config = function()
require("org-mouse").setup()
end
}Code Example
use {
"chipsenkbeil/org-mouse.nvim",
requires = { "nvim-orgmode/orgmode" },
config = function()
require("org-mouse"):setup()
end
}
If true, clicking on links will open them.
Takes a boolean. Defaults to true.
require("org-mouse"):setup({
click_open_links = false,
})If true, highlights links when mousing over them.
This will enable vim.opt.mouseoverevent if disabled!
Takes a boolean. Defaults to true.
require("org-mouse"):setup({
highlight_links = false,
})Highlight group to apply when highlighting links.
Takes a string. Defaults to WarningMsg.
require("org-mouse"):setup({
highlight_links_group = "Comment",
})Specifies filetypes where mouse events will be bound.
This is leveraged during setup to configure a FileType autocmd to attach
keybindings for <MouseMove> and <LeftRelease> to support mouse
interactions.
Takes a list of strings. Defaults to {"org", "org-*"}.
Notice that the strings are in pattern format, meaning you can use wildcards to support multiple filetypes.
require("org-mouse"):setup({
filetypes = { "org", "org-*", "org-custom-*" },
})