1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 23:40:05 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/puppet.lua

39 lines
865 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
2021-10-05 15:13:10 +08:00
local root_files = {
'manifests',
'.puppet-lint.rc',
'hiera.yaml',
'.git',
}
return {
2021-10-05 15:13:10 +08:00
default_config = {
cmd = { 'puppet-languageserver', '--stdio' },
2021-10-05 15:13:10 +08:00
filetypes = { 'puppet' },
root_dir = util.root_pattern(unpack(root_files)),
single_file_support = true,
2021-10-05 15:13:10 +08:00
},
docs = {
description = [[
LSP server for Puppet.
Installation:
- Clone the editor-services repository:
https://github.com/puppetlabs/puppet-editor-services
- Navigate into that directory and run: `bundle install`
- Install the 'puppet-lint' gem: `gem install puppet-lint`
- Add that repository to $PATH.
- Ensure you can run `puppet-languageserver` from outside the editor-services directory.
]],
default_config = {
root_dir = [[root_pattern("manifests", ".puppet-lint.rc", "hiera.yaml", ".git")]],
},
},
}