lspsaga.nvim icon indicating copy to clipboard operation
lspsaga.nvim copied to clipboard

Error executing vim.schedule lua callback: ...l/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/window.lua:123: attempt to index loca l 'config' (a nil value)

Open roccho-dev opened this issue 3 years ago • 5 comments

`Error executing vim.schedule lua callback: ...l/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/window.lua:123: attempt to index loca l 'config' (a nil value)

stack traceback: ...l/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/window.lua:123: in function 'create_win_with_border' ...al/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/hover.lua:84: in function 'open_floating_preview' ...al/share/nvim/plugged/lspsaga.nvim/lua/lspsaga/hover.lua:174: in function 'handler' ...ion/nvim/nvim-linux64/share/nvim/runtime/lua/vim/lsp.lua:1383: in function '' vim/_editor.lua: in function <vim/_editor.lua:0>`

Hi. When I try hover function ( default keybind as "K" ) , I've got this error. Anyone know to fix?

By the way, nvim-lspconfig's hover function is working

roccho-dev avatar Jan 20 '23 14:01 roccho-dev

My lspsaga's setting is here:

` require('lazy').setup({ 'glepnir/lspsaga.nvim', event = 'BufRead', config = function() require('lspsaga').setup({}) end })

local keymap = vim.keymap.set -- Lsp finder find the symbol definition implement reference -- if there is no implement it will hide -- when you use action in finder like open vsplit then you can -- use to jump back keymap("n", "gh", "Lspsaga lsp_finder")

-- Code action keymap({"n","v"}, "ca", "Lspsaga code_action")

-- Rename keymap("n", "gr", "Lspsaga rename")

-- Peek Definition -- you can edit the definition file in this float window -- also support open/vsplit/etc operation check definition_action_keys -- support tagstack C-t jump back keymap("n", "gd", "Lspsaga peek_definition")

-- Go to Definition keymap("n","gd", "Lspsaga goto_definition")

-- Show line diagnostics you can pass argument ++unfocus to make -- show_line_diagnostics float window unfocus keymap("n", "sl", "Lspsaga show_line_diagnostics")

-- Show cursor diagnostic -- also like show_line_diagnostics support pass ++unfocus keymap("n", "sc", "Lspsaga show_cursor_diagnostics")

-- Show buffer diagnostic keymap("n", "sb", "Lspsaga show_buf_diagnostics")

-- Diagnostic jump can use <c-o> to jump back keymap("n", "[e", "Lspsaga diagnostic_jump_prev") keymap("n", "]e", "Lspsaga diagnostic_jump_next")

-- Diagnostic jump with filter like Only jump to error keymap("n", "[E", function() require("lspsaga.diagnostic").goto_prev({ severity = vim.diagnostic.severity.ERROR }) end) keymap("n", "]E", function() require("lspsaga.diagnostic").goto_next({ severity = vim.diagnostic.severity.ERROR }) end)

-- Toggle Outline keymap("n","o", "Lspsaga outline")

-- Hover Doc -- if there has no hover will have a notify no information available -- to disable it just Lspsaga hover_doc ++quiet -- press twice it will jump into hover window keymap("n", "K", "Lspsaga hover_doc") -- if you want keep hover window in right top you can use ++keep arg -- notice if you use hover with ++keep you press this keymap it will -- close the hover window .if you want jump to hover window must use -- wincmd command w keymap("n", "K", "Lspsaga hover_doc ++keep")

-- Callhierarchy keymap("n", "ci", "Lspsaga incoming_calls") keymap("n", "co", "Lspsaga outgoing_calls")

-- Float terminal keymap({"n", "t"}, "", "Lspsaga term_toggle") `

roccho-dev avatar Jan 20 '23 14:01 roccho-dev

your env is dirty lazy not use plugged folder

glepnir avatar Jan 20 '23 14:01 glepnir

@PorcoRosso85 did you end up fixing this?

pablopunk avatar Feb 10 '23 18:02 pablopunk

I'm also seeing something similar after updating.

adamyonk avatar Feb 10 '23 22:02 adamyonk

maybe we were dirty.

to fix it, configure your setting as same as owners once. I'm working it now

On Sat, Feb 11, 2023, 07:26 Adam Jahnke @.***> wrote:

I'm also seeing something similar after updating.

— Reply to this email directly, view it on GitHub https://github.com/glepnir/lspsaga.nvim/issues/745#issuecomment-1426420147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJT5NWYOOQ3J7WZOAWRYZHLWW26BZANCNFSM6AAAAAAUBSOD6M . You are receiving this because you were mentioned.Message ID: @.***>

roccho-dev avatar Feb 11 '23 00:02 roccho-dev