ray-x / go.nvim

G'day Nvimer, Joyful Gopher: Discover the Feature-Rich Go Plugin for Neovim
MIT License
1.93k stars 119 forks source link

adding support for *.gohtml files as per documentation. #349

Closed Howard3 closed 1 year ago

Howard3 commented 1 year ago

The documentation @ https://github.com/ray-x/go.nvim/blob/8a0498ee48a26f928b1dc1c02fb3d84d648a1c63/doc/go.txt#L90 indicates that there is html support for *.gohtml files but this doesn't seem to be the case.

It can be currently overridden in your NeoVim settings by running the following Lua code after setup:

vim.api.nvim_command('au BufRead,BufNewFile *.gohtml set filetype=gohtmltmpl')