comments(nvim): add tsserver variable annotation
This commit is contained in:
1 parent
3f062011c5
commit
3be72c24bc
7 files changed
+134
-78
No files matched your search
@@ -96,12 +96,14 @@ ac({ "BufNewFile", "BufRead" }, {
|
||||
ac("ModeChanged", {
|
||||
pattern = "*",
|
||||
callback = function()
|
||||
if
|
||||
((vim.v.event.old_mode == "s" and vim.v.event.new_mode == "n") or vim.v.event.old_mode == "i")
|
||||
and require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()]
|
||||
and not require("luasnip").session.jump_active
|
||||
then
|
||||
require("luasnip").unlink_current()
|
||||
if not vim.g.vscode then
|
||||
if
|
||||
((vim.v.event.old_mode == "s" and vim.v.event.new_mode == "n") or vim.v.event.old_mode == "i")
|
||||
and require("luasnip").session.current_nodes[vim.api.nvim_get_current_buf()]
|
||||
and not require("luasnip").session.jump_active
|
||||
then
|
||||
require("luasnip").unlink_current()
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user