Skip to content

Commit

Permalink
feat(editorconfig): Add editorconfig ls
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilja authored and Lilja-at-funnel committed Jan 18, 2023
1 parent a59ba78 commit f6b5949
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lua/lspconfig/server_configurations/editorconfig.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
local util = require 'lspconfig.util'

local root_files = { '.editorconfig', '.git' }
return {
default_config = {
cmd = { 'ecls', '--stdio' },
filetypes = { 'editorconfig' },
root_dir = function(fname)
return util.root_pattern(unpack(root_files))(fname)
end,
init_options = {
buildDirectory = 'build',
},
},
docs = {
description = [[
https://github.com/Lilja/ecls
Editorconfig language server
]],
default_config = {
root_dir = [[root_pattern('.editorconfig')]],
},
},
}

0 comments on commit f6b5949

Please sign in to comment.