Closed Jint-lzxy closed 2 months ago
In fact, I'm trying to use vim.region()
in https://github.com/neovim/neovim/pull/13896#issuecomment-1621702052 to get selected text but failed. And I also see a relevant PR about it: https://github.com/neovim/neovim/pull/27578 and seem this api will be changed.
IMO current impl is enough for 0.9.
https://github.com/ayamir/nvimdots/pull/1217/commits/65d580ee62a573ad7ff25bfd1d1c3ab905366e7b further simplified the venv
detection logic in dap/clients/python.lua
.
In fact, I'm trying to use
vim.region()
in ... to get selected text but failed. And I also see a relevant PR about it: ... and seem this api will be changed. IMO current impl is enough for 0.9.
Agreed. The new vim.getregion()
is indeed more "reliable" due to its use of internal calls. Will update the to-do comment accordingly.
UPDATE: See https://github.com/ayamir/nvimdots/pull/1217/commits/354ed808636810f03a4a716b6f4bf465b3aa8fc7.
This commit mainly tackled several minor touch-ups and syntax improvements:
luacheck
issues from previous commits._buf_vtext
.clone_by_https_or_ssh
->clone_repo
dotstutor
to make it more readable.