orbitalquark / textadept-lsp

Language server protocol client module for Textadept.
MIT License
28 stars 9 forks source link

Suggestion: make `goto_*` jumps partake in `textadept.history` #3

Closed metaleap closed 2 years ago

metaleap commented 2 years ago

My current workaround for this looks like this, and works as expected:

keys['f12'] = function()
    textadept.history.record()
    lsp.goto_definition()
end

But would be for all your lsp.goto_* funcs a quite familiar default behavior I think for many users coming from the more mainstream editors... certainly vscode and sublime I can say for sure.

orbitalquark commented 2 years ago

This is a good idea, thanks.

orbitalquark commented 2 years ago

Added via https://github.com/orbitalquark/textadept-lsp/commit/8a30a089ec120cfa844f5bdb74630e6e34bd5070