config(nvim): support _generated.go

See https://github.com/tpope/vim-projectionist/issues/184
main
sudo pacman -Syu 2024-04-06 14:22:49 +07:00
parent 9980e8999d
commit f42cf8f7c7
1 changed files with 5 additions and 1 deletions

View File

@ -341,8 +341,12 @@ require("lazy").setup({
alternate = "{}_test.go",
type = "source",
},
["*_generated.go"] = {
alternate = "{}_test.go",
type = "source",
},
["*_test.go"] = {
alternate = "{}.go",
alternate = { "{}.go", "{}_generated.go" },
type = "test",
},
},