+local ts_utils = require('nvim-treesitter.ts_utils') + local function map(lhs, rhs) vim.keymap.set('n', lhs, function() - -- TODO + local node = ts_utils.get_node_at_cursor() + if node == nil then + error('No Tree-Sitter parser found.') + end end, { buffer = true, noremap = true,