Skip to content

Commit

Permalink
feat: add harper_ls support (#3001)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
elijah-potter and glepnir authored Feb 9, 2024
1 parent 1bc8341 commit 7653145
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lua/lspconfig/server_configurations/harper_ls.lua
Original file line number Diff line number Diff line change
@@ -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]],
},
},
}

0 comments on commit 7653145

Please sign in to comment.