You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

18 lines
484 B

local M = require('module'):new()
function M:boot()
-- if you leave the cursor on a variable/etc for a moment, this will cause
-- all other occurrences to be subtly highlighted.
vim.api.nvim_create_autocmd('CursorHold', {
pattern = { '*' },
command = "silent call CocActionAsync('highlight')"
})
end
function M:install()
if (self.config.extensions == nil) then return end
exts = table.concat(self.config.extensions, ' ')
vim.cmd(':CocInstall -sync '..exts)
end
return M