dotfiles/home/config/nvim/plugins/cmp_tabnine.fnl
2023-11-27 10:34:41 +01:00

18 lines
778 B
Fennel

(let [tabnine (require :cmp_tabnine)
tabnine-config (require :cmp_tabnine.config)
augroup (vim.api.nvim_create_augroup :NifocTabNine {:clear true})
aucmd vim.api.nvim_create_autocmd]
(tabnine-config:setup {:ignored_file_types {:markdown true :text true}})
(aucmd :BufRead {:callback #(tabnine:prefetch (vim.fn.expand "%:p"))
:pattern [:*.css
:*.html
:*.java
:*.js
:*.jsx
:*.kt
:*.php
:*.py
:*.rb
:*.ts
:*.tsx]
:group augroup}))