4 export * from './stuff'
5 export * from './otherStuff'
6 export * from './moreStuff'
7 export * from './etc'
8 export * from './mocks'
9 export * from './reducers'
I get the error
Error detected while processing CursorMoved Autocommands for "<buffer=25>":
Error executing lua callback: ...site/pack/packer/start/nvim-navic/lua/nvim-navic/lib.lua:325: attempt to index field 'children
' (a nil value)
stack traceback:
...site/pack/packer/start/nvim-navic/lua/nvim-navic/lib.lua:325: in function 'update_context'
...ite/pack/packer/start/nvim-navic/lua/nvim-navic/init.lua:254: in function <...ite/pack/packer/start/nvim-navic/lua/n
vim-navic/init.lua:252>
Press ENTER or type command to continue
my setup
local function navic_info()
return require("nvim-navic").get_location()
end
local function navic_ok()
return require("nvim-navic").is_available()
end
require('lualine').setup{
options = {
theme = 'onedark',
},
sections = {
lualine_x = {{
navic_info,
cond = navic_ok
}},
},
tabline = {
lualine_a = {
{'buffers',hide_filename_extension = true, max_length = vim.o.columns },
},
},
}
local navic = require("nvim-navic")
local navbuddy = require("nvim-navbuddy")
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
-- Enable completion triggered by <c-x><c-o>
if client.server_capabilities.documentSymbolProvider then
navic.attach(client, bufnr)
navbuddy.attach(client, bufnr)
end
// stuff
end
I get the error
my setup