ftplugin in fennel? #41
Answered
by
rktjmp
ajayvigneshk
asked this question in
Q&A
-
Hey! Just curious, is it possible to write ftplugin configs in fennel and have hotpot compile it into lua? |
Beta Was this translation helpful? Give feedback.
Answered by
rktjmp
Jun 29, 2022
Replies: 2 comments 5 replies
-
I don't think it's feasible with Hotpot at the moment. You can use Fennel binary file to compile it manually though. |
Beta Was this translation helpful? Give feedback.
5 replies
-
;; in your config
(let [{: nvim_create_autocmd : nvim_create_augroup} vim.api
au-group (nvim_create_augroup :hotpot-ft {})
cb #(pcall require (.. :ftplugin. (vim.fn.expand "<amatch>")))]
(nvim_create_autocmd :FileType {:callback cb :group au-group})) ;; ~/.config/nvim/ftplugin/wow.fnl
(print :wow!) "in vim
:set ft=wow
" wow! Repost for selectable answer as the comment ends up in a loading break. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rktjmp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repost for selectable answer as the comment ends up in a loading break.
#41 (reply in thread)