diff options
| author | Elijah Potter <elijah.sirius@protonmail.com> | 2024-02-08 19:24:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-09 10:24:42 +0800 |
| commit | 765314548e828e664147eff9c1e20843b04fbf7e (patch) | |
| tree | f13a4c5a99f61ae9861aff4e1fa06f60cb578f67 /lua | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.tar nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.tar.gz nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.tar.bz2 nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.tar.lz nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.tar.xz nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.tar.zst nvim-lspconfig-765314548e828e664147eff9c1e20843b04fbf7e.zip | |
feat: add harper_ls support (#3001)
* feat: added `harper_ls` support
* fix(unused parameter): removed settings parameter from `harper_ls` config
Co-authored-by: Raphael <glephunter@gmail.com>
---------
Co-authored-by: Raphael <glephunter@gmail.com>
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/harper_ls.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/harper_ls.lua b/lua/lspconfig/server_configurations/harper_ls.lua new file mode 100644 index 00000000..261a12fc --- /dev/null +++ b/lua/lspconfig/server_configurations/harper_ls.lua @@ -0,0 +1,36 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'harper-ls', '--stdio' }, + filetypes = { + 'markdown', + 'rust', + 'typescript', + 'typescriptreact', + 'javascript', + 'python', + 'go', + 'c', + 'cpp', + 'ruby', + 'swift', + 'csharp', + 'toml', + 'lua', + }, + root_dir = util.find_git_ancestor, + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/chilipepperhott/harper_ls + +The language server for Harper, the slim, clean language checker for developers. +As of right now, there are no settings to be configured for `harper_ls`. + ]], + default_config = { + root_dir = [[bufdir]], + }, + }, +} |
