Skip to content

Commit

Permalink
nvim: switch to actions-preview.nvim
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Aug 25, 2024
1 parent 2257db5 commit 5d4e8fa
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion home/develop/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
nvim-lightbulb
FixCursorHold-nvim
trouble-nvim
nvim-code-action-menu
actions-preview-nvim
lspkind-nvim
lsp_signature-nvim
lsp-status-nvim
Expand Down
2 changes: 0 additions & 2 deletions home/develop/neovim/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ require('fidget').setup({
})
require('config.nvim-tree')

vim.g.code_action_menu_show_diff = false

local lsp_status = require('lsp-status')
lsp_status.register_progress()
lsp_status.config({
Expand Down
3 changes: 1 addition & 2 deletions home/develop/neovim/nvim/lua/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,10 @@ function M.lsp_keybinding(bufnr)
buf_set_keymap('n', '<leader>c', '<cmd>lua vim.lsp.codelens.run()<CR>', opts)

if vim.bo.filetype == "rust" then
-- buf_set_keymap('n', 'ga', '<cmd>RustCodeAction<CR>', opts)
buf_set_keymap('n', 'J', '<cmd>RustJoinLines<CR>', opts)
end
buf_set_keymap('n', 'ga', '<cmd>CodeActionMenu<CR>', opts)

vim.keymap.set({ "v", "n" }, "ga", require("actions-preview").code_actions, { buffer = bufnr})
end

return M

0 comments on commit 5d4e8fa

Please sign in to comment.