update groovy config

This commit is contained in:
2023-06-08 18:01:24 +03:00
parent 7fc69bd103
commit 679fd5097b
4 changed files with 19 additions and 6 deletions

View File

@@ -36,12 +36,18 @@ M.config = function()
autocmd("FileType",
{
pattern = { "c", "ruby", "php", "php3", "perl", "python", "mason", "vim", "sh", "zsh", "scala", "javascript",
"javascriptreact", "typescript", "typescriptreact", "html", "svelte", "css", "nix", "terraform", "groovy", "java" },
"javascriptreact", "typescript", "typescriptreact", "html", "svelte", "css", "nix", "terraform" },
callback = function() require('pwnvim.options').programming() end,
group = filetypes
})
autocmd("FileType",
{ pattern = { "lua", "xml" }, callback = function() require('pwnvim.filetypes').lua() end, group = filetypes })
autocmd("FileType",
{
pattern = { "groovy", "Jenkinsfile", "java" },
callback = function() require('pwnvim.filetypes').groovy() end,
group = filetypes
})
autocmd("FileType",
{
pattern = { "md", "markdown", "vimwiki" },
@@ -92,6 +98,11 @@ M.lua = function()
require('pwnvim.options').twospaceindent()
end
M.groovy = function()
require('pwnvim.options').programming()
require('pwnvim.options').fourspaceindent()
end
M.page = function()
-- disable status bar -- handled in config
-- map space to ctrl-f