add go support

This commit is contained in:
2023-06-20 16:04:32 +03:00
parent 679fd5097b
commit f3a1558cd1
4 changed files with 25 additions and 8 deletions

View File

@@ -48,6 +48,12 @@ M.config = function()
callback = function() require('pwnvim.filetypes').groovy() end,
group = filetypes
})
autocmd("FileType",
{
pattern = { "go", "gomod", "gowork", "gotmpl" },
callback = function() require('pwnvim.filetypes').go() end,
group = filetypes
})
autocmd("FileType",
{
pattern = { "md", "markdown", "vimwiki" },
@@ -103,6 +109,11 @@ M.groovy = function()
require('pwnvim.options').fourspaceindent()
end
M.go = function()
require('pwnvim.options').programming()
require('pwnvim.options').fourspaceindent()
end
M.page = function()
-- disable status bar -- handled in config
-- map space to ctrl-f