diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-07-04 18:28:17 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-07-05 19:21:06 +0200 |
| commit | 5642507f6a35d2e25b1588a36d8ddfc525f1464d (patch) | |
| tree | d95ae24b0220deb9ce8674fea83fa6aba0747240 /lua/nvim-treesitter/refactor/navigation.lua | |
| parent | 1ce1c73249cf5620726f9b00fd58cac1747b1e70 (diff) | |
Make luacheck happy
Diffstat (limited to 'lua/nvim-treesitter/refactor/navigation.lua')
| -rw-r--r-- | lua/nvim-treesitter/refactor/navigation.lua | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/lua/nvim-treesitter/refactor/navigation.lua b/lua/nvim-treesitter/refactor/navigation.lua index 5fd25e47..f2eda367 100644 --- a/lua/nvim-treesitter/refactor/navigation.lua +++ b/lua/nvim-treesitter/refactor/navigation.lua @@ -7,18 +7,6 @@ local api = vim.api local M = {} -local function node_to_qf(node, kind) - local lnum, col, _ = def.node:start() - - return { - bufnr = bufnr, - lnum = lnum + 1, - col = col + 1, - text = ts_utils.get_node_text(def.node)[1] or '', - kind = kind - } -end - function M.goto_definition(bufnr) local bufnr = bufnr or api.nvim_get_current_buf() local node_at_point = ts_utils.get_node_at_cursor() @@ -70,10 +58,9 @@ function M.attach(bufnr) end function M.detach(bufnr) - local buf = bufnr or api.nvim_get_current_buf() local config = configs.get_module('refactor.navigation') - for fn_name, mapping in pairs(config.keymaps) do + for _, mapping in pairs(config.keymaps) do api.nvim_buf_del_keymap(bufnr, 'n', mapping) end end |
