diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-10 10:18:01 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-04-10 10:18:01 +0200 |
| commit | 08d5556ab2f104cc2daff59c078c12816b8c9acc (patch) | |
| tree | 2e72e8d8e555d92195ae7e1d9f34c732f5be7886 /lua/alpha/snips | |
| parent | 11fa125e9ed415021a2c5223e396c8f73fa05a13 (diff) | |
| download | nvim-conf-08d5556ab2f104cc2daff59c078c12816b8c9acc.tar.gz nvim-conf-08d5556ab2f104cc2daff59c078c12816b8c9acc.zip | |
feat(general): update keymaps
Diffstat (limited to 'lua/alpha/snips')
| -rw-r--r-- | lua/alpha/snips/ft/go.lua | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lua/alpha/snips/ft/go.lua b/lua/alpha/snips/ft/go.lua index 637f57d..9c3977f 100644 --- a/lua/alpha/snips/ft/go.lua +++ b/lua/alpha/snips/ft/go.lua @@ -13,11 +13,6 @@ local ts_utils = require "nvim-treesitter.ts_utils" local get_node_text = vim.treesitter.get_node_text -if vim.fn.has "nvim-0.9.0" ~= 1 then - vim.treesitter.query.get = vim.treesitter.get_query - vim.treesitter.query.set = vim.treesitter.set_query -end - vim.treesitter.query.set( "go", "LuaSnip_Result", @@ -88,7 +83,7 @@ local function go_result_type(info) end end - local query = vim.treesitter.query.get_query("go", "LuaSnip_Result") + local query = vim.treesitter.query.get("go", "LuaSnip_Result") for _, node in query:iter_captures(function_node, 0) do if handlers[node:type()] then return handlers[node:type()](node, info) |