From 3cda9522caae9f321c472e23d39a23e95b19f723 Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 9 Aug 2023 16:10:44 -0400 Subject: [PATCH] fix(ansible): use public API for getting buffer lines (#514) --- lua/astrocommunity/pack/ansible/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/ansible/init.lua b/lua/astrocommunity/pack/ansible/init.lua index 18a96552d..378673240 100644 --- a/lua/astrocommunity/pack/ansible/init.lua +++ b/lua/astrocommunity/pack/ansible/init.lua @@ -22,7 +22,7 @@ return { init = function() local function yaml_ft(path, bufnr) -- get content of buffer as string - local content = vim.filetype.getlines(bufnr) + local content = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false) if type(content) == "table" then content = table.concat(content, "\n") end -- check if file is in roles, tasks, or handlers folder