NotebookNavigator.nvim
NotebookNavigator.nvim copied to clipboard
Getting "Empty filetype" message when using hydra and mini.hipatterns
Hi,
Thanks for the plugin!
I just set it up with hydra, mini.ai and hydra following the docs. Everything works great, but when I open neovim without any file, I get the message [NotebookNavigator] utils.lua: Empty filetype. I noticed this only happens when I have both hydra and mini.hipatterns enabled. Hydra itself does not seem to matter that much. It really depends on whether config is set at all for NotebookNavigator. And the highlights don't seem to show up when config is not set (even when mini.hipatterns is configured as below).
The message itself is not a bug, but I was wondering if you knew how I could turn it off.
Thanks!
Here is my config for the relevant plugins:
return {
{
"GCBallesteros/NotebookNavigator.nvim",
dependencies = {
"anuvyklack/hydra.nvim"
},
keys = {
{ "]j", function() require("notebook-navigator").move_cell "d" end },
{ "[j", function() require("notebook-navigator").move_cell "u" end },
},
event = "VeryLazy",
config = function()
local nn = require "notebook-navigator"
nn.setup({activate_hydra_keys = "<leader>h"})
end
},
{
"echasnovski/mini.hipatterns", dependencies = { "GCBallesteros/NotebookNavigator.nvim" },
event = "VeryLazy",
opts = function()
local nn = require "notebook-navigator"
local opts = { highlighters = { cells = nn.minihipatterns_spec } }
return opts
end,
}
}