Closed arnaupv closed 1 year ago
Hello, It seems it doesn't find navic.lib maybe your version is too old ? What is the commit for nvim-navic in your lazy-lock.json ?
If it is the last version you should have 27124a773d362628b114cd12016e743dab4ccf3e
If not, try to do an Update with lazy :Lazy => Update (U)
Hi, thanks a lot for the hint, indeed I was not using the last nvim-navic version. This part has been fixed now, but I'm still facing problems that I do not know how to tackle. I've checked and I'm currently using the last version of navbuddy - a0e36447f39442436dfbd371d7daea5c2dc9ec58
Seems like its still not able to find the lib. Can you once try by removing both nvim-navic and nvim-navbuddy both and reinstall again.
try event='LspAttach'
in your lazy config
Hi guys! First, thanks a lot to @Jxstxs for adding the extra doc https://github.com/SmiteshP/nvim-navbuddy/commit/e476bd9c49c3f2d9b09cd9366a894c92c42a70e4
It ended up working for me with the following config:
{
"neovim/nvim-lspconfig",
---@class PluginLspOpts
opts = {
---@type lspconfig.options
servers = {
-- pyright will be automatically installed with mason and loaded with lspconfig
-- https://alpha2phi.medium.com/modern-neovim-debugging-and-testing-8deda1da1411
--
clangd = {},
pyright = {
settings = {
python = {
analysis = {
typeCheckingMode = "off",
autoSearchPaths = true,
useLibraryCodeForTypes = true,
diagnosticMode = "workspace",
},
},
},
},
},
},
},
{
"SmiteshP/nvim-navbuddy",
dependencies = {
{ "neovim/nvim-lspconfig" },
{ "SmiteshP/nvim-navic" },
{ "MunifTanjim/nui.nvim" },
{ "numToStr/Comment.nvim" },
},
opts = {
lsp = { auto_attach = true },
},
},
I'm having problems loading the nvim-navic
That's my current configuration using LazyVim instead of Packer Plugin manager:
and this is the error:
I've tried to remove the .lib from line https://github.com/SmiteshP/nvim-navbuddy/blob/master/lua/nvim-navbuddy/init.lua#L1 getting instead
but then I get this, looks like I'm having problems loading the nvim-navic plugin
Is this a problem with the Lazy plugin manager or with navic plugin itself?