diff options
| author | Steven Sojka <Steven.Sojka@tdameritrade.com> | 2020-06-29 09:58:51 -0500 |
|---|---|---|
| committer | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-06-30 08:21:01 +0200 |
| commit | d73500eaa6b25edf476d73d0d1a47c65043b6e88 (patch) | |
| tree | e44533f9c8ac12d91f841bc53423fde3d0119939 /lua/nvim-treesitter/refactor/navigation.lua | |
| parent | 6f8e4c97a4f99b1a04cca5c41c333ffb5337d84a (diff) | |
refactor(refactor): use higher local apis and some cleanup
Diffstat (limited to 'lua/nvim-treesitter/refactor/navigation.lua')
| -rw-r--r-- | lua/nvim-treesitter/refactor/navigation.lua | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lua/nvim-treesitter/refactor/navigation.lua b/lua/nvim-treesitter/refactor/navigation.lua index 9c439179..5fd25e47 100644 --- a/lua/nvim-treesitter/refactor/navigation.lua +++ b/lua/nvim-treesitter/refactor/navigation.lua @@ -26,12 +26,6 @@ function M.goto_definition(bufnr) if not node_at_point then return end local definition, _ = ts_utils.find_definition(node_at_point, bufnr) - - if not definition then - print('No definition found') - return - end - local start_row, start_col, _ = definition:start() api.nvim_win_set_cursor(0, { start_row + 1, start_col }) |
