diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -38,6 +38,8 @@ autocmd Filetype nix setlocal ts=2 sw=2 sts=0 expandtab autocmd Filetype terraform setlocal ts=2 sw=2 sts=0 expandtab autocmd Filetype hcl setlocal ts=2 sw=2 sts=0 expandtab autocmd BufNewFile,BufRead *.nomad setfiletype hcl +autocmd BufNewFile,BufRead *.yaml setfiletype yaml.ansible +autocmd BufNewFile,BufRead *.yml setfiletype yaml.ansible ]] vim.o.relativenumber = true -- Distable word wrap @@ -223,7 +225,7 @@ end -- Use a loop to conveniently call 'setup' on multiple servers and -- map buffer local keybindings when the language server attaches -- local servers = { 'pyls', 'rust_analyzer', 'tsserver' } -local servers = { 'jedi_language_server', 'bashls', 'terraformls' } +local servers = { 'jedi_language_server', 'bashls', 'terraformls', 'ansiblels' } -- Add additional capabilities supported by nvim-cmp local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities) @@ -355,6 +357,7 @@ vim.g.ale_linters = { terraform = { "terraform_ls" }, markdown = { "vale" }, nix = { "nix" }, + ansible = { "ansible-lint" }, } vim.g.ale_fixers = { sh = { "shfmt", }, |