diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-13 14:21:22 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-04-13 14:21:22 +0200 |
commit | 7b25fe41d3f7c3ba665aec7db086b39adf98cbd1 (patch) | |
tree | c5d0b2a892cdda8e879c1c9ba9361e3e49890825 /fnl/plugins | |
parent | 4485bb3927c03064bea77b9e70227753a2178614 (diff) |
Add peek with treesitter
Diffstat (limited to 'fnl/plugins')
-rw-r--r-- | fnl/plugins/treesitter.fnl | 7 |
1 files changed, 6 insertions, 1 deletions
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 {:<leader>df "@function.outer" + :<leader>dF "@class.outer"}}}}) (fn config [] (let [treesitter (require :nvim-treesitter.configs)] |