Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: provide lua examples for heretics like myself. #81

Open
airtonix opened this issue Mar 25, 2023 · 2 comments
Open

Docs: provide lua examples for heretics like myself. #81

airtonix opened this issue Mar 25, 2023 · 2 comments

Comments

@airtonix
Copy link

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
}
@wookayin
Copy link
Contributor

wookayin commented May 12, 2023

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,
}

@airtonix
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants