diff options
author | Squibid <me@zacharyscheiman.com> | 2025-01-24 13:56:11 -0600 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2025-01-24 13:56:11 -0600 |
commit | 8eaa615596be321a3be12378c5e7d65cc7e482b6 (patch) | |
tree | 53fe601048ea302962420de4feff465e4c7d9317 /lua/conf/plugins/glance.lua | |
parent | a0ebc39b59a98a69fbb6abf150f86dc4e19987a3 (diff) | |
download | nvim-8eaa615596be321a3be12378c5e7d65cc7e482b6.tar.gz nvim-8eaa615596be321a3be12378c5e7d65cc7e482b6.tar.bz2 nvim-8eaa615596be321a3be12378c5e7d65cc7e482b6.zip |
Diffstat (limited to '')
-rw-r--r-- | lua/conf/plugins/glance.lua | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/lua/conf/plugins/glance.lua b/lua/conf/plugins/glance.lua deleted file mode 100644 index c5a4d41..0000000 --- a/lua/conf/plugins/glance.lua +++ /dev/null @@ -1,44 +0,0 @@ -local misc = require('core.misc') -local map = misc.map - -return { 'dnlhc/glance.nvim', - disable = vim.version().minor < 7, - function() - require('glance').setup { - border = { - enable = true, - top_char = '', - bottom_char = '─', - }, - folds = { - fold_closed = '+', - fold_open = '-', - folded = true - }, - theme = { - enable = false - }, - hooks = { - before_open = function(results, open, jump, method) - local uri = vim.uri_from_bufnr(0) - if #results == 1 then - local target_uri = results[1].uri or results[1].targetUri - - if target_uri == uri then - jump() - misc.timeout_highlight() - return - end - end - - open() - end - } - } - - map('n', 'gd', '<cmd>Glance definitions<CR>') - map('n', 'gr', '<cmd>Glance references<CR>') - map('n', 'gy', '<cmd>Glance type_definitions<CR>') - map('n', 'gi', '<cmd>Glance implementations<CR>') - end -} |