From ace8f98428954902b28b9057605c02d67a030629 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Fri, 25 Feb 2022 09:10:04 -0800 Subject: [PATCH] Fix gomod filetype detection --- neovim/lua/plugins.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index ca1d39d..f4e57fb 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -303,10 +303,11 @@ return require("packer").startup({ "sheerun/vim-polyglot", config = function() vim.cmd([[ - augroup ansible_playbook + augroup polyglot_fts au BufRead,BufNewFile */playbooks/*.yml,*/playbooks/*.yaml set filetype=yaml.ansible + au BufRead,BufNewFile go.mod,go.sum set filetype=gomod augroup end - ]]) + ]]) end, })