mirror of
https://github.com/neovim/neovim.git
synced 2026-05-24 05:40:08 +00:00
docs: misc, custom text-object #39877
text-object-define is a pattern I found in tpope's plugins (e.g. https://github.com/tpope/vim-jdaddy) which shows an elegant way to define a text-object. (Any mistakes in the example are my fault.)
This commit is contained in:
@@ -82,7 +82,7 @@ vim.api.nvim_create_autocmd('BufReadCmd', {
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_exec_autocmds('BufRead', { group = 'filetypedetect', buffer = ev.buf })
|
||||
vim.api.nvim_exec_autocmds('BufRead', { group = 'filetypedetect', buf = ev.buf })
|
||||
vim.bo[ev.buf].modified = false
|
||||
vim.notify(('Loaded %s'):format(url), vim.log.levels.INFO)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user