RicardoRamirezR / blade-nav.nvim

Navigating Blade views within Laravel projects
MIT License
40 stars 4 forks source link

There is an extra closing single quote and parenthesis when complete and there are already ones in place #25

Open feryardiant opened 2 days ago

feryardiant commented 2 days ago

Just trying out this plugin based on this recommendation and immediately noticed that when I type @route(' and select one of the options it replace existing text with route('route.name')') including the closing single quote and parenthesis.

https://github.com/user-attachments/assets/14829473-3302-42f3-8e09-1b95cf148f2e

Is there any option to only inserting the route.name?

RicardoRamirezR commented 2 days ago

Hi @feryardiant the issue is your auto close feature that I do not use.

The issue can be solve by adding an option like close_tag_on_complete that you can turn off by setting it to false, that way the text is replaced but it wont include the closing ')

RicardoRamirezR commented 2 days ago

Check main.

The config:

  "ricardoramirezr/blade-nav.nvim",
  ft = { "blade", "php" },
  opts = {
    close_tag_on_complete = false,
  },
}

It will be in the next release.