From baa1a6e0532da2f70cb7197ff0355867f8cdb98b Mon Sep 17 00:00:00 2001 From: aleidk Date: Wed, 11 Dec 2024 09:03:31 -0300 Subject: [PATCH] add support for ansible yaml syntax --- config/nvim/lua/aleidk/plugins-ide/ai.lua | 1 + config/nvim/lua/aleidk/plugins-ide/lsp.lua | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/aleidk/plugins-ide/ai.lua b/config/nvim/lua/aleidk/plugins-ide/ai.lua index a4f2f00..fefdb2d 100644 --- a/config/nvim/lua/aleidk/plugins-ide/ai.lua +++ b/config/nvim/lua/aleidk/plugins-ide/ai.lua @@ -83,6 +83,7 @@ return { }, question_header = " " .. vim.env.USER or "User" .. " ", answer_header = " Copilot ", + auto_follow_cursor = false, window = { layout = 'float', -- 'vertical', 'horizontal', 'float', 'replace' width = 0.8, -- fractional width of parent, or absolute width in columns when > 1 diff --git a/config/nvim/lua/aleidk/plugins-ide/lsp.lua b/config/nvim/lua/aleidk/plugins-ide/lsp.lua index fd35eea..0569701 100644 --- a/config/nvim/lua/aleidk/plugins-ide/lsp.lua +++ b/config/nvim/lua/aleidk/plugins-ide/lsp.lua @@ -69,7 +69,7 @@ return { end -- Enable the following language servers - -- To see options and cofigurations: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md + -- To see options and cofigurations `:help lspconfig-all` local servers = { astro = {}, bashls = {}, @@ -132,7 +132,16 @@ return { }, }, sqlls = {}, - yamlls = {}, + yamlls = { + settings = { + yaml = { + schemas = {}, + customTags = { + "!vault" -- ansible encrypted vars support + } + } + }, + }, lua_ls = { settings = { Lua = {