diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index cd6f966..d9cbd22 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -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, diff --git a/.config/nvim/installer.sh b/.config/nvim/installer.sh index 92f6322..e72e38f 100755 --- a/.config/nvim/installer.sh +++ b/.config/nvim/installer.sh @@ -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