We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0214d09 commit bcf9934Copy full SHA for bcf9934
lua/strive/init.lua
@@ -846,12 +846,8 @@ function Plugin:ft(filetypes)
846
end
847
if item:find(self.plugin_name, 1, true) then
848
local data = _split(item, '%s')
849
- if data[1] == '*' or data[1] == vim.bo[args.buf].filetype then
850
- local au_id = data[3]:match('(%d+):')
851
- if not au_id then
852
- return
853
- end
854
- local g = res[group_start]:match('^(.-)%s+FileType$')
+ local g = res[group_start]:match('^(.-)%s+FileType$')
+ if g and (data[1] == '*' or data[1] == vim.bo[args.buf].filetype) then
855
api.nvim_exec_autocmds('FileType', {
856
group = g,
857
modeline = false,
0 commit comments