nvimdev / lspsaga.nvim

improve neovim lsp experience
MIT License
3.44k stars 286 forks source link

Error when use command from actions-preview.nvim #1452

Closed NgKhacDuy closed 4 months ago

NgKhacDuy commented 4 months ago

Describe the bug

before i add plugins actions-preview.nvim, it works well, but when i follow the instructions when install actions-preview.nvim about the keymap, it say attemp to call a nill value in command.lua:80 when i try to press g + f Untitled

Steps to reproduce

i install actions-preview.nvim plugins set the keymap vim.keymap.set({ "v", "n" }, "gf", require("actions-preview").code_actions) when i press it, the error shows

this is my lspsaga config image

the keymap i set when install actions-preview.nvim using packer image

the config of actions-preview.nvim image image you can see my full config here

Expected behavior

it will show floating window like this image

Neovim version (nvim -v)

0.10.0

lspsaga commit

200256d

Terminal name/version

Powershell 7

NgKhacDuy commented 4 months ago

sorry, it was my mistake, i rebind the key and it work