harper-ls 0.7.0

The language checker for developers.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;

use dirs::config_dir;

#[derive(Debug, Clone)]
pub struct Config {
    pub user_dict_path: PathBuf,
}

impl Default for Config {
    fn default() -> Self {
        Self {
            user_dict_path: config_dir().unwrap().join("harper-ls/dictionary.txt"),
        }
    }
}