vim-quickui icon indicating copy to clipboard operation
vim-quickui copied to clipboard

Docs: provide lua examples for heretics like myself.

Open airtonix opened this issue 2 years ago • 2 comments

Hey there fellow mouse user, glad to know I'm not the only heretic.

Since you mention this should work with Neovim 0.4+, how would we configure this in the context of using the lazy.nvim plugin manager?

{
  'skywind3000/vim-quickui',
  config = function ()
     require('quickui').setup({}) -- ????? 
  end
}

airtonix avatar Mar 25 '23 01:03 airtonix

This plugin uses an old-fashioned vimscript config style, so you have to do something like:

{
  'skywind3000/vim-quickui',
  init = function ()
     -- Add some config to run BEFORE plugin/quickui.vim loads
     vim.g.quickui_border_style = 2
  end,
  config = function ()
     -- Add some config AFTER plugin/quickui.vim has been loaded
     vim.cmd [[ hi! QuickPreview guibg=#262d2d ]]
  end,
}

wookayin avatar May 12 '23 23:05 wookayin

Would you be open to a PR that enhances the README?

airtonix avatar May 13 '23 04:05 airtonix