Skip to content

Commit

Permalink
feat: use selabel instead of actions-preview
Browse files Browse the repository at this point in the history
  • Loading branch information
TarunDaCoder committed Jul 24, 2024
1 parent 05b243c commit b0d4199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
16 changes: 1 addition & 15 deletions lua/tarun/plugins/lspconf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,4 @@ vim.api.nvim_create_autocmd('LspAttach', {
end,
})

require('actions-preview').setup({
telescope = {
sorting_strategy = 'ascending',
layout_strategy = 'vertical',
layout_config = {
width = 0.8,
height = 0.9,
prompt_position = 'top',
preview_cutoff = 20,
preview_height = function(_, _, max_lines)
return max_lines - 15
end,
},
},
})
require('selabel').setup()
2 changes: 1 addition & 1 deletion lua/tarun/plugins/whichkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ wk.add({
wk.add({
{ '<leader>l', group = ' LSP', icon = '' },
{ '<leader>lD', vim.lsp.buf.declaration, desc = 'Go to declaration', icon = '' },
{ '<leader>la', require('actions-preview').code_actions, desc = 'Code Action' },
{ '<leader>la', vim.lsp.buf.code_action, desc = 'Code Action' },
{ '<leader>le', vim.diagnostic.open_float, desc = 'Show diagnostics' },
{ '<leader>lh', vim.lsp.buf.hover, desc = 'Hover', icon = '󰉪 ' },
{ '<leader>li', vim.lsp.buf.implementation, desc = 'Goto implementation', icon = '' },
Expand Down

0 comments on commit b0d4199

Please sign in to comment.