diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-08-06 09:01:38 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2020-08-17 17:45:46 +0200 |
| commit | 32271b26ef64433b2d9cc41392594db614449a4c (patch) | |
| tree | b6ff88d64eb449ae0aca6401d9e635a722645f43 /lua/nvim-treesitter/refactor/navigation.lua | |
| parent | f3ed370643dee45a3ea253a780cd30e74361d2bd (diff) | |
Textobjects: set jump before going to adjacent_textobject
Diffstat (limited to 'lua/nvim-treesitter/refactor/navigation.lua')
| -rw-r--r-- | lua/nvim-treesitter/refactor/navigation.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/refactor/navigation.lua b/lua/nvim-treesitter/refactor/navigation.lua index a3fee20e..5f5eebd5 100644 --- a/lua/nvim-treesitter/refactor/navigation.lua +++ b/lua/nvim-treesitter/refactor/navigation.lua @@ -1,6 +1,7 @@ -- Definition based navigation module local ts_utils = require'nvim-treesitter.ts_utils' +local utils = require'nvim-treesitter.utils' local locals = require'nvim-treesitter.locals' local configs = require'nvim-treesitter.configs' local api = vim.api @@ -11,8 +12,7 @@ function M.goto_definition(bufnr) local bufnr = bufnr or api.nvim_get_current_buf() local node_at_point = ts_utils.get_node_at_cursor() - -- Set the item in jump list - vim.cmd "normal! m'" + utils.set_jump() if not node_at_point then return end |
