Skip to content

Commit

Permalink
fix: change some things that broke the plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cvigilv committed Mar 25, 2024
1 parent 6243ece commit 011a210
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion lua/esqueleto/autocmd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ M.createautocmd = function(opts)
end
end

vim.api.nvim_create_autocmd({ "BufWinEnter", "BufReadPost", "BufNewFile" }, {
vim.api.nvim_create_autocmd({ "BufNewFile", "BufReadPost", "FileType" }, {
group = group,
desc = "esqueleto.nvim :: Insert template",
pattern = getpatterns(),
Expand Down
1 change: 0 additions & 1 deletion lua/esqueleto/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ M.inserttemplate = function(opts)
elseif vim.tbl_contains(opts.patterns, filetype) then
pattern = filetype
end
print(pattern)

-- Get templates for selected pattern
local templates = M.gettemplates(pattern, opts)
Expand Down

0 comments on commit 011a210

Please sign in to comment.