feat(ansible): paths setting for files and templates

This commit is contained in:
Ruslan
2026-06-27 12:28:23 +03:00
parent fd4c38e01b
commit ef6c8dca4f
+10
View File
@@ -13,3 +13,13 @@ surround.buffer_setup({
}
})
local ansible_paths = {}
local fname = vim.api.nvim_buf_get_name(0)
if fname:find('tasks/') then
ansible_paths = {
vim.fs.dirname(fname:gsub('tasks', 'files')),
vim.fs.dirname(fname:gsub('tasks', 'templates'))
}
end
vim.bo.path = table.concat(ansible_paths, ',')