mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 03:50:03 +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
|
---@param opts HighlightYankConfig
|
||||||
M.highlight_yank = function(opts)
|
M.highlight_yank = function(opts)
|
||||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
local tbl_string = function (table)
|
||||||
group = vim.api.nvim_create_augroup("highlight_yank", {}),
|
return vim.inspect(table, {newline = '', indents = ''})
|
||||||
desc = "Hightlight selection on yank",
|
end
|
||||||
pattern = "*",
|
vim.cmd.autocmd { 'TextYankPost', '*', 'silent!',
|
||||||
callback = function()
|
'lua', 'vim.hl.on_yank', tbl_string(opts) }
|
||||||
vim.highlight.on_yank(opts)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local gutter_settings = {
|
local gutter_settings = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue