At opening a file I'm having this error #1198
-
I don't think it's a bug, that's why I post it here. When I open a file neovim shows me the following error: I don't really know why. Can someone give me a hand? here is my lspsaga config file: local status, saga = pcall(require, "lspsaga")
if (not status) then return end
saga.setup({
ui = {
winblend = 10,
border = 'rounded',
colors = {
normal_bg = '#002b36'
}
}
})
local diagnostic = require("lspsaga.diagnostic")
local opts = { noremap = true, silent = true }
vim.keymap.set('n', '<C-j>', '<Cmd>Lspsaga diagnostic_jump_next<CR>', opts)
vim.keymap.set('n', 'gl', '<Cmd>Lspsaga show_diagnostic<CR>', opts)
vim.keymap.set('n', 'K', '<Cmd>Lspsaga hover_doc<CR>', opts)
vim.keymap.set('n', 'gd', '<Cmd>Lspsaga lsp_finder<CR>', opts)
-- vim.keymap.set('i', '<C-k>', '<Cmd>Lspsaga signature_help<CR>', opts)
vim.keymap.set('i', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
vim.keymap.set('n', 'gp', '<Cmd>Lspsaga peek_definition<CR>', opts)
vim.keymap.set('n', 'gr', '<Cmd>Lspsaga rename<CR>', opts)
-- code action
local codeaction = require("lspsaga.codeaction")
vim.keymap.set("n", "<leader>ca", function() codeaction:code_action() end, { silent = true })
vim.keymap.set("v", "<leader>ca", function()
vim.fn.feedkeys(vim.api.nvim_replace_termcodes("<C-U>", true, false, true))
codeaction:range_code_action()
end, { silent = true })
here a error that's giving me when I do gp over a function: Error executing vim.schedule lua callback: BufReadPost Autocommands for "*": Vim(append):Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:21: Error executin
g lua: /usr/share/nvim/runtime/filetype.lua:22: BufReadPost Autocommands for "*"..FileType Autocommands for "python"..LspAttach Autocommands for "*": Vim(append):Error execut
ing lua callback: ...ck/packer/start/lspsaga.nvim/lua/lspsaga/symbol/head.lua:25: unexpected event
stack traceback:
[C]: in function 'nvim_create_autocmd'
...ck/packer/start/lspsaga.nvim/lua/lspsaga/symbol/head.lua:25: in function 'buf_watcher'
...ck/packer/start/lspsaga.nvim/lua/lspsaga/symbol/head.lua:180: in function <...ck/packer/start/lspsaga.nvim/lua/lspsaga/symbol/head.lua:165>
[C]: in function 'resume'
...ck/packer/start/nvim-lspconfig/lua/lspconfig/configs.lua:18: in function 'async_run'
...ck/packer/start/nvim-lspconfig/lua/lspconfig/configs.lua:290: in function 'try_add'
...ck/packer/start/nvim-lspconfig/lua/lspconfig/configs.lua:107: in function <...ck/packer/start/nvim-lspconfig/lua/lspconfig/configs.lua:106>
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:22: in function </usr/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:21: in function </usr/share/nvim/runtime/filetype.lua:10>
[C]: in function 'bufload'
...ack/packer/start/lspsaga.nvim/lua/lspsaga/definition.lua:217: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1394: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:22: in function </usr/share/nvim/runtime/filetype.lua:21>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:21: in function </usr/share/nvim/runtime/filetype.lua:10>
[C]: in function 'bufload'
...ack/packer/start/lspsaga.nvim/lua/lspsaga/definition.lua:217: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1394: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:21: in function </usr/share/nvim/runtime/filetype.lua:10>
[C]: in function 'bufload'
...ack/packer/start/lspsaga.nvim/lua/lspsaga/definition.lua:217: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1394: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
stack traceback:
[C]: in function 'bufload'
...ack/packer/start/lspsaga.nvim/lua/lspsaga/definition.lua:217: in function 'handler'
/usr/share/nvim/runtime/lua/vim/lsp.lua:1394: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
of course if I'm not giving enough information to solve it feel free to ask. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
build neovim with recently commit |
Beta Was this translation helpful? Give feedback.
build neovim with recently commit