WIP on new config
This commit is contained in:
parent
c86f67f0f7
commit
c42f197307
13 changed files with 354 additions and 85 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue