Skip to content

Instantly share code, notes, and snippets.

View echo-64's full-sized avatar
🏠
Working from home

π–Šπ–ˆπ–π–” echo-64

🏠
Working from home
  • Somewhere between here & there
  • 03:52 (UTC -12:00)
  • Npm echo-64
View GitHub Profile
@echo-64
echo-64 / manage_coc_extensions.vim
Created March 2, 2024 22:35
automatically activate/deactivate coc.nvim extensions ber filetype
function! ManageCocExtensions(extensionsToEnable)
let installed = ['coc-html', 'coc-css', 'coc-tsserver', 'coc-html-css-support','coc-json', 'coc-emmet', 'coc-sh']
for extension in installed
call CocActionAsync('deactivateExtension', extension)
endfor
for extension in a:extensionsToEnable
call CocActionAsync('activeExtension', extension)
endfor