aznhe21 / actions-preview.nvim

Fully customizable previewer for LSP code actions.
GNU General Public License v3.0
365 stars 9 forks source link

Don't override default telescope theme #39

Closed TheNeikos closed 4 months ago

TheNeikos commented 4 months ago

Currently when using the telescope backend the theme is overriden unless specified. However, I use a global theme on my telescope install which is thus ignored.

https://github.com/aznhe21/actions-preview.nvim/blob/5072b1b1065a6b22bdd46b5c21780a91d6a08071/lua/actions-preview/backend/telescope.lua#L57

A simple fix would be to simply just put in {} if no config exists, which is also the current work around:

require("actions-preview").setup {
  telescope = {}
}

This way users can still specify what they want, but if they have global defaults they don't get removed.

TheNeikos commented 4 months ago

Nevermind, I misunderstood the docs and hallucinated that this fixed something!

Sorry for the noise