r/lunarvim • u/pljusak • Feb 20 '23
Copilot behaviour
Hi
I am really liking LunarVim but there are a few things I'd like to customize for github copilot and I'm not an expert with Lua.
Currently Copilot gives me suggestions for single lines. It also only autocompletes when I've started the line of code already.
In vanilla nvim it autocompletes entire functions from a comment on the previous line and will autocomplete starting from a blank line. Is it possible to get this behaviour? Ideally I would like to use this with a key binding so I can still use tab on a blank line.
Thanks
9
Upvotes
1
u/[deleted] Mar 03 '23
It sounds like you enabled cmp completion for it as described in the docs. What you're describing you did in neovim is virtual text which can be enabled by passing it in the config to copilot setup exactly like you did for neovim. The docs do need updating, this is the superior setup imo.