Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lua/esqueleto/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ M.inserttemplate = function(opts)
local filename = vim.fn.expand("%:t")
local filetype = vim.bo.filetype

--- not ideal... but stops the confusing behavior
local ignore_this_buffer = filepath:find("^fugitive://") ~= nil
if ignore_this_buffer then return nil end

-- Identify if pattern matches user configuration
local pattern = nil
if not _G.esqueleto_inserted[filepath] then
Expand Down