Browse Source
* Add coc lua extension to allow us to install plugins during NukeVim install * Update docs to reflect that coc extension installation makes the install process look broken. * Migrate one of the holdover autocmds from vimscript to lua extension so it doesn't cause errors when coc is disabledmaster
Adam Pippin
2 years ago
5 changed files with 37 additions and 4 deletions
@ -0,0 +1,4 @@ |
|||
{ |
|||
"html.autoClosingTags": false, |
|||
"html.autoCreateQuotes": false |
|||
} |
@ -0,0 +1,18 @@ |
|||
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 |
Loading…
Reference in new issue