From 7b25fe41d3f7c3ba665aec7db086b39adf98cbd1 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sat, 13 Apr 2024 14:21:22 +0200 Subject: Add peek with treesitter --- fnl/plugins/treesitter.fnl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'fnl') diff --git a/fnl/plugins/treesitter.fnl b/fnl/plugins/treesitter.fnl index 546abc7..e3b9145 100644 --- a/fnl/plugins/treesitter.fnl +++ b/fnl/plugins/treesitter.fnl @@ -77,7 +77,12 @@ :goto_previous_end {"[M" "@function.outer" "[]" "@class.outer"} :goto_next {"]i" "@conditional.outer"} - :goto_previous {"[i" "@conditional.outer"}}}}) + :goto_previous {"[i" "@conditional.outer"}} + :lsp_interop {:enable true + :border :single + :floating_preview_opts {} + :peek_definition_code {:df "@function.outer" + :dF "@class.outer"}}}}) (fn config [] (let [treesitter (require :nvim-treesitter.configs)] -- cgit v1.2.3-70-g09d2