simrat39 / symbols-outline.nvim

A tree like view for symbols in Neovim using the Language Server Protocol. Supports all your favourite languages.
MIT License
1.85k stars 97 forks source link

Make close_outline idempotent #200

Open showermat opened 1 year ago

showermat commented 1 year ago

open_outline currently does nothing if the outline is already open, but close_outline raises an error if it's already closed. This makes it more difficult to ensure the outline is closed from scripts.

This makes the behavior of the two functions symmetrical.