1
0
Fork 0
dotfiles/home/config/nvim/plugins/otter.fnl

16 lines
669 B
Text
Raw Normal View History

2024-06-25 07:24:27 +00:00
(let [otter (require :otter)
2024-06-25 14:57:10 +00:00
languages [:bash :markdown :lua]
2024-06-25 07:24:27 +00:00
completion true
diagnostics true
tsquery nil
2024-06-25 14:57:10 +00:00
enabled-filetypes [:elixir :markdown :nix]
2024-06-25 07:24:27 +00:00
augroup (vim.api.nvim_create_augroup :NifocOtter {:clear true})
aucmd vim.api.nvim_create_autocmd]
2024-06-25 14:57:10 +00:00
(otter.setup {:buffers {:set_filetype true} :handle_leading_whitespace true})
2024-06-25 07:24:27 +00:00
(each [_ ft (pairs enabled-filetypes)]
(aucmd :FileType {:pattern ft
:callback #(otter.activate languages completion
diagnostics tsquery)
:group augroup
:desc "Setup Otter"})))