From ceac258332aebadb685df9ebecff59cd16370b5d Mon Sep 17 00:00:00 2001 From: Steven Proctor Date: Sun, 9 Oct 2022 19:57:38 -0500 Subject: [PATCH] Current filetype under cursor --- nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl b/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl index 2591f23..b5f288b 100644 --- a/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/plugin/treesitter.fnl @@ -25,3 +25,5 @@ ] ; table of hex strings } }) + +; lua print(require('nvim-treesitter.parsers').get_parser():language_for_range({ require('nvim-treesitter.ts_utils').get_node_at_cursor():range() }):lang())