Added the yaml-language-server
This commit is contained in:
parent
c1da970a67
commit
18fa9e7bb2
@ -187,7 +187,7 @@ local handlers = {
|
||||
|
||||
-- Use a loop to conveniently call 'setup' on multiple servers and
|
||||
-- map buffer local keybindings when the language server attaches
|
||||
local servers = { 'pyright', 'bashls', 'ansiblels', 'gopls', 'solargraph', 'terraformls'}
|
||||
local servers = { 'pyright', 'bashls', 'yamlls', 'ansiblels', 'gopls', 'solargraph', 'terraformls'}
|
||||
for _, lsp in pairs(servers) do
|
||||
require('lspconfig')[lsp].setup {
|
||||
on_attach = on_attach,
|
||||
|
@ -36,11 +36,6 @@ function install_yaml-language-server() {
|
||||
sudo npm -g i yaml-language-server --force
|
||||
}
|
||||
|
||||
function install_ansible-language-server() {
|
||||
# Install ansible-language-server
|
||||
sudo npm -g i @ansible/ansible-language-server --force
|
||||
}
|
||||
|
||||
function install_shfmt() {
|
||||
# Install shfmt
|
||||
GO111MODULE=on go install mvdan.cc/sh/v3/cmd/shfmt@latest
|
||||
@ -61,6 +56,12 @@ function install_ansible() {
|
||||
pip3 install --pre --user ansible ansible-lint ansible-core
|
||||
}
|
||||
|
||||
function install_ansible-language-server() {
|
||||
# Install ansible-language-server
|
||||
sudo npm -g i @ansible/ansible-language-server --force
|
||||
sudo npm -g i yaml-language-server --force
|
||||
}
|
||||
|
||||
function main() {
|
||||
command_start update_pip
|
||||
command_start install_pyright
|
||||
|
Loading…
Reference in New Issue
Block a user