Skip to content

Commit

Permalink
fix(ansible): use public API for getting buffer lines (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter authored Aug 9, 2023
1 parent 3712618 commit 3cda952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/ansible/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cda952

Please sign in to comment.