hx-lsp 0.2.11

One LSP server support snippets and actions for helix editor.
Documentation
1
2
3
4
5
6
7
8
9
use std::ffi::OsStr;

pub fn env_var_is_set(env_var_name: &str) -> bool {
    std::env::var_os(env_var_name).is_some()
}

pub fn binary_exists<T: AsRef<OsStr>>(binary_name: T) -> bool {
    which::which(binary_name).is_ok()
}