Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify buffer handling using builtin functions
Replace manual buffer search and creation logic with built-in Neovim functions bufadd() and bufload(). This change makes the code more concise and reliable by leveraging Neovim's native buffer management APIs. The new implementation: - Removes redundant buffer search loop - Uses bufadd() to add new buffer - Uses bufload() to ensure buffer is loaded Signed-off-by: Tomas Slusny <[email protected]>
- Loading branch information