Snippets in neovim terminal #951
Replies: 1 comment 1 reply
-
someone made a PR in the nvim-cmp repo for this. very interesting idea...
on another note you can use the full-fat flag in the command name, so the command would be more explicit and you wouldn't need to remember tons of single letter flags. probably feasable workaround would be to have a keybind to show a command-bar like buffer that you can type your command into with normal snippet completion. Then just send the buftext as a command to a new/existing terminal |
Beta Was this translation helpful? Give feedback.
-
I'd love to use luasnippets in the neovim terminal. It would be awesome to have some superfast shell snippets for bash and powershell. There are some tools that help you run commands you've already run, but that is not enough.
With snippets in a neovim shell it would open the door to crazy fast terminal input.
I know there are likely to be several complications with shell readline features, new lines, and more.
I'm not even sure how to get started enabling this? I can see that the filetype of the new terminal (
tabnew | term
) is empty (no filetype is set). I can change the filetype like any other file, and the highlighting does change, but I don't get luasnip, cmp to start working.Anybody have an idea about how to get started on this endeavor?
Beta Was this translation helpful? Give feedback.
All reactions