1
0
Fork 0
dotfiles/home/config/nvim/plugins/otter.fnl
Daniel Kempkens 60eec41447
All checks were successful
Build / build-amd64-linux (push) Successful in 34s
Build / build-arm64-linux (push) Successful in 1m34s
nvim: use otter
2024-06-25 09:28:39 +02:00

14 lines
569 B
Fennel

(let [otter (require :otter)
languages [:bash :lua]
completion true
diagnostics true
tsquery nil
enabled-filetypes [:elixir :nix]
augroup (vim.api.nvim_create_augroup :NifocOtter {:clear true})
aucmd vim.api.nvim_create_autocmd]
(each [_ ft (pairs enabled-filetypes)]
(aucmd :FileType {:pattern ft
:callback #(otter.activate languages completion
diagnostics tsquery)
:group augroup
:desc "Setup Otter"})))