diff options
| author | Kiyan Yazdani <yazdani.kiyan@protonmail.com> | 2020-05-07 14:09:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-07 14:09:50 +0200 |
| commit | e9bcc844d47c18f6279e55208bd1d8aab0be1ab6 (patch) | |
| tree | 8fe07f3adbf29af508d24c0291677d6ac4dff9d2 /lua/nvim-treesitter/locals.lua | |
| parent | 096ca6b0689fe04400ed65420f15794d3e88bfa9 (diff) | |
| parent | c6b0a62bd6e8874925e9c3b368df4e5e12e5eaef (diff) | |
Merge pull request #40 from vigoux/contributing
Add CONTRIBUTING.md
Diffstat (limited to 'lua/nvim-treesitter/locals.lua')
| -rw-r--r-- | lua/nvim-treesitter/locals.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/nvim-treesitter/locals.lua b/lua/nvim-treesitter/locals.lua index 3e517454..b16408ac 100644 --- a/lua/nvim-treesitter/locals.lua +++ b/lua/nvim-treesitter/locals.lua @@ -52,8 +52,8 @@ function M.get_definitions(bufnr) local defs = {} for _, loc in ipairs(locals) do - if loc.definition and loc.definition.node then - table.insert(defs, {node=loc.definition.node, kind=loc.kind}) + if loc.definition then + table.insert(defs, loc.definition) end end |
