diff options
author | Squibid <me@zacharyscheiman.com> | 2023-06-26 11:28:27 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-06-26 11:28:27 -0400 |
commit | b19167a1ab1e6d3c21d67788d404c159aeaaf306 (patch) | |
tree | 55a68f9f3693ca0db70b32fd808dafb0060f3e1f /lua | |
parent | a3c9d258ec3a7cd74a615b49234950f7eff2c158 (diff) | |
download | nvim-b19167a1ab1e6d3c21d67788d404c159aeaaf306.tar.gz nvim-b19167a1ab1e6d3c21d67788d404c159aeaaf306.tar.bz2 nvim-b19167a1ab1e6d3c21d67788d404c159aeaaf306.zip |
replace gd and the likes with glance
Diffstat (limited to 'lua')
-rw-r--r-- | lua/core/binds.lua | 10 | ||||
-rw-r--r-- | lua/core/plugins.lua | 1 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lua/core/binds.lua b/lua/core/binds.lua index 7a7fce0..66a2af5 100644 --- a/lua/core/binds.lua +++ b/lua/core/binds.lua @@ -59,8 +59,14 @@ a.nvim_create_autocmd('FileType', { }) -- plugin binds --------------------------------------------------------------- --- treesj -local treesj = require('treesj') + +-- pretty lsp view +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>') + +local treesj = require('treesj') -- treesj map('n', '<leader>j', treesj.toggle) -- telescope diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua index 40ca880..5ad5474 100644 --- a/lua/core/plugins.lua +++ b/lua/core/plugins.lua @@ -90,6 +90,7 @@ require 'dep' { -- lsp ---------------------------------------------------------------------- { 'neovim/nvim-lspconfig' }, { 'j-hui/fidget.nvim' }, -- shows lsp progress + { 'dnlhc/glance.nvim' }, -- diagnostic info at a glance { 'folke/trouble.nvim' }, -- optional language specific lsp's |