You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey everybody,
I'm trying to create a really simply telescope extension and function that will lazy load Iron which is already good to go, except for the IronWatch functionality. I've been using nvim for the past 3-4 months so lua and the whole environment is pretty new to me, but how can I go about setting the :IronWatch [ft] dynamically? I can get the file path with vim.api.nvim_buf_get_name(0) and that works well, but even when inserting the vim.api.nvim_buf_get_name(0) response myself into the :IronWatch command I can't get it to work. I get a response similar to this every time:
E5108: Error executing lua ...rs/bigsexy/.config/nvim/lua/iron_repl_telescope/init.lua:56: Vim:Error executing Lua callback: ...re/nvim/site/pack/packer/opt/iron.nvim/lua/iron/core.lua:475: Not a valid ha ndler type stack traceback: [C]: in function 'error' ...re/nvim/site/pack/packer/opt/iron.nvim/lua/iron/core.lua:475: in function <...re/nvim/site/pack/packer/opt/iron.nvim/lua/iron/core.lua:466> [C]: in function 'cmd' ...rs/bigsexy/.config/nvim/lua/iron_repl_telescope/init.lua:56: in function 'run_replace_or_original' ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func' ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:352: in function 'execute_keymap' [string ":lua"]:1: in main chunk stack traceback: [C]: in function 'cmd' ...rs/bigsexy/.config/nvim/lua/iron_repl_telescope/init.lua:56: in function 'run_replace_or_original' ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func' ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:352: in function 'execute_keymap' [string ":lua"]:1: in main chunk
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey everybody,
I'm trying to create a really simply telescope extension and function that will lazy load Iron which is already good to go, except for the IronWatch functionality. I've been using nvim for the past 3-4 months so lua and the whole environment is pretty new to me, but how can I go about setting the
:IronWatch [ft]
dynamically? I can get the file path withvim.api.nvim_buf_get_name(0)
and that works well, but even when inserting thevim.api.nvim_buf_get_name(0)
response myself into the:IronWatch
command I can't get it to work. I get a response similar to this every time:E5108: Error executing lua ...rs/bigsexy/.config/nvim/lua/iron_repl_telescope/init.lua:56: Vim:Error executing Lua callback: ...re/nvim/site/pack/packer/opt/iron.nvim/lua/iron/core.lua:475: Not a valid ha ndler type stack traceback: [C]: in function 'error' ...re/nvim/site/pack/packer/opt/iron.nvim/lua/iron/core.lua:475: in function <...re/nvim/site/pack/packer/opt/iron.nvim/lua/iron/core.lua:466> [C]: in function 'cmd' ...rs/bigsexy/.config/nvim/lua/iron_repl_telescope/init.lua:56: in function 'run_replace_or_original' ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func' ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:352: in function 'execute_keymap' [string ":lua"]:1: in main chunk stack traceback: [C]: in function 'cmd' ...rs/bigsexy/.config/nvim/lua/iron_repl_telescope/init.lua:56: in function 'run_replace_or_original' ...packer/start/telescope.nvim/lua/telescope/actions/mt.lua:65: in function 'key_func' ...k/packer/start/telescope.nvim/lua/telescope/mappings.lua:352: in function 'execute_keymap' [string ":lua"]:1: in main chunk
Also... please don't make fun of my username. :)
Beta Was this translation helpful? Give feedback.
All reactions