diff options
Diffstat (limited to 'lua/lspconfig/server_configurations/ansiblels.lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/ansiblels.lua | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/ansiblels.lua b/lua/lspconfig/server_configurations/ansiblels.lua new file mode 100644 index 00000000..79b1e1b7 --- /dev/null +++ b/lua/lspconfig/server_configurations/ansiblels.lua @@ -0,0 +1,39 @@ +local util = require 'lspconfig/util' + +return { + default_config = { + cmd = { 'ansible-language-server', '--stdio' }, + settings = { + ansible = { + python = { + interpreterPath = 'python', + }, + ansibleLint = { + path = 'ansible-lint', + enabled = true, + }, + ansible = { + path = 'ansible', + }, + executionEnvironment = { + enabled = false, + }, + }, + }, + filetypes = { 'yaml', 'yaml.ansible' }, + root_dir = util.root_pattern('ansible.cfg', '.ansible-lint'), + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/ansible/ansible-language-server + +Language server for the ansible configuration management tool. + +`ansible-language-server` can be installed via `yarn`: +```sh +yarn global add ansible-language-server +``` +]], + }, +} |
