Skip to content

Commit

Permalink
[fix] Fixed refer file_pattern instead of file_patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
huantrinh1802 committed Oct 1, 2024
1 parent 2caf51a commit 6016973
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/m_taskwarrior_d/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ function M.setup(opts)
local conceal_group = vim.api.nvim_create_augroup("TWConceal", { clear = true })
vim.api.nvim_create_autocmd({ "BufEnter" }, {
group = conceal_group,
pattern = M._config.file_pattern,
pattern = M._config.file_patterns,
callback = function()
-- Get the file type of the current buffer
vim.opt.conceallevel = 2
Expand All @@ -695,7 +695,7 @@ function M.setup(opts)

vim.api.nvim_create_autocmd({ "BufLeave" }, {
group = conceal_group,
pattern = M._config.file_pattern,
pattern = M._config.file_patterns,
callback = function()
-- Get the file type of the current buffer
vim.opt.conceallevel = 2
Expand Down

0 comments on commit 6016973

Please sign in to comment.