mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim/lua/user/utils/misc.lua: minor style fix
This commit is contained in:
parent
330d1a0ad6
commit
514ce5fefc
1 changed files with 5 additions and 8 deletions
|
|
@ -8,14 +8,11 @@ local M = {}
|
|||
|
||||
---@param opts HighlightYankConfig
|
||||
M.highlight_yank = function(opts)
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
||||
desc = "Hightlight selection on yank",
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
vim.highlight.on_yank(opts)
|
||||
end,
|
||||
})
|
||||
local tbl_string = function (table)
|
||||
return vim.inspect(table, {newline = '', indents = ''})
|
||||
end
|
||||
vim.cmd.autocmd { 'TextYankPost', '*', 'silent!',
|
||||
'lua', 'vim.hl.on_yank', tbl_string(opts) }
|
||||
end
|
||||
|
||||
local gutter_settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue