simple tailwindcss class completion in Vim using a 'completefunc'
Using vim-plug:
Plug 'mrdotb/vim-tailwindcss'
" Set the completefunc you can do this per file basis or with a mapping
set completefunc=tailwind#complete
" The mapping I use
nnoremap <leader>tt :set completefunc=tailwind#complete<cr>
" Add this autocmd to your vimrc to close the preview window after the completion is done
autocmd CompleteDone * pclose