2023-11-27 09:34:41 +00:00
|
|
|
(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
|
2024-08-01 20:51:42 +00:00
|
|
|
:*.lua
|
2023-11-27 09:34:41 +00:00
|
|
|
:*.php
|
|
|
|
:*.py
|
|
|
|
:*.rb
|
|
|
|
:*.ts
|
2024-08-01 20:51:42 +00:00
|
|
|
:*.tsx
|
|
|
|
:*.yaml
|
|
|
|
:*.yml]
|
2023-11-27 09:34:41 +00:00
|
|
|
:group augroup}))
|