mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 20:10:03 +02:00
nvim: utils.misc: Adding luadoc comment for opts table passed to highlight_yank()
This commit is contained in:
parent
a57f1ddae0
commit
388916ee13
1 changed files with 6 additions and 0 deletions
|
|
@ -1,6 +1,12 @@
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
---@class HighlightYankConfig
|
||||||
|
---@field enable boolean
|
||||||
|
---@field timeout number
|
||||||
|
---@field higroup string
|
||||||
|
|
||||||
|
---@param opts HighlightYankConfig
|
||||||
M.highlight_yank = function(opts)
|
M.highlight_yank = function(opts)
|
||||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||||
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue