fix: Remove yank highlighting function as that is now provided by
plugin.
This commit is contained in:
parent
209007083c
commit
362558f16c
1 changed files with 0 additions and 18 deletions
|
|
@ -1,18 +1,3 @@
|
|||
local function setup_yank_highlight()
|
||||
vim.api.nvim_set_hl(0, "YankHighlight", { bg = "#e0af68" })
|
||||
local yank_autocommand = vim.api.nvim_create_augroup("YankHighlightAutocommand", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function()
|
||||
vim.highlight.on_yank({
|
||||
timeout = 250,
|
||||
higroup = "YankHighlight",
|
||||
})
|
||||
end,
|
||||
group = yank_autocommand,
|
||||
})
|
||||
end
|
||||
|
||||
-- Load keymaps before loading any plugins
|
||||
require("keymaps")
|
||||
|
||||
|
|
@ -37,9 +22,6 @@ require("lspsetup")
|
|||
-- Set configs for nvim-dap so we can debug
|
||||
require("dapsetup")
|
||||
|
||||
-- See ":help vim.highlight.on_yank()"
|
||||
setup_yank_highlight()
|
||||
|
||||
-- Change built in settings related to diagnostics
|
||||
require("diagnostics")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue