willothy / flatten.nvim

Open files and command output from wezterm, kitty, and neovim terminals in your current neovim instance
https://luarocks.org/modules/willothy/flatten.nvim
MIT License
473 stars 13 forks source link

fix: handle absolute paths on windows #90

Closed alex-tdrn closed 7 months ago

alex-tdrn commented 7 months ago

Hello, absolute paths on windows weren't being identified. Aside from that, everything works flawlessly on windows. Amazing plugin, thank you ✨

willothy commented 7 months ago

Thanks for the PR! Glad you like the plugin :)

kjuq commented 7 months ago

vim.fn.has() returns 0|1 but these are always treated as true in lua. So we should check that by vim.fn.has("win32") == 1. It's fixed at #92.

willothy commented 7 months ago

vim.fn.has() returns 0|1 but these are always treated as true in lua. So we should check that by vim.fn.has("win32") == 1.

It's fixed at #92.

Thank you!