WIP on new config

This commit is contained in:
RingOfStorms (Joshua Bell) 2024-05-01 01:14:46 -05:00
parent c86f67f0f7
commit c42f197307
13 changed files with 354 additions and 85 deletions

View file

@ -1,3 +1,14 @@
-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()`
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("config-highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank({ timeout = 300 })
end,
})
--function isEmpty()
--return vim.api.nvim_buf_get_name(0) == ""
--or vim.fn.filereadable(vim.api.nvim_buf_get_name(0)) == 0