From a3801f47ea28f4862a69729b02f3d59d6ad300bc Mon Sep 17 00:00:00 2001 From: Elijah Potter Date: Wed, 7 Feb 2024 19:30:43 -0700 Subject: [PATCH] feat: added `harper_ls` support --- .../server_configurations/harper_ls.lua | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lua/lspconfig/server_configurations/harper_ls.lua diff --git a/lua/lspconfig/server_configurations/harper_ls.lua b/lua/lspconfig/server_configurations/harper_ls.lua new file mode 100644 index 0000000000..a6ece0ede4 --- /dev/null +++ b/lua/lspconfig/server_configurations/harper_ls.lua @@ -0,0 +1,22 @@ +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, + settings = {}, + }, + 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]], + }, + }, +}