Closed matu3ba closed 2 years ago
Thanks for your suggestions!
It would be nice to mention those things with their advantages + shortcomings, as they are going into the same direction of fast + simple editings. For example inc-rename is less appropriate for editings, which involve intentionally breaking things on changes.
To be honest, I think this is out of scope of this plugin. I am just providing a wrapper around vim.lsp.buf.rename
, not much more than that really. So this seems to be more of a question about a general Vim workflow (not sure where the best place to answer such questions would be actually).
Single word instances can be, although breaking for
::
delimiters, replaced (faster) withAdditional usage of
map('n', '<leader>sh', ':ClangdSwitchSourceHeader<CR>', opts) -- switch header_source
or harpoon/buffer navigation allows also to workaround many cases (though with lower editing speed):It would be nice to mention those things with their advantages + shortcomings, as they are going into the same direction of fast + simple editings. For example inc-rename is less appropriate for editings, which involve intentionally breaking things on changes.
Additional plus would be to mention the treesitter plugin one can use (with advantages + shortcomings).