config-astronvim/lua/user/init.lua

53 lines
1.3 KiB
Lua
Raw Normal View History

2023-05-23 19:35:54 +02:00
return {
lsp = {
formatting = {
disabled = {
"yq",
"yamllint",
"yamlls"
},
},
},
2023-05-23 19:35:54 +02:00
-- This function is run last and is a good place to configuring
-- augroups/autocommands and custom filetypes also this just pure lua so
-- anything that doesn't fit in the normal config locations above can go here
polish = function()
-- Set key binding
-- Set autocommands
-- vim.api.nvim_create_augroup("packer_conf", { clear = true })
-- vim.api.nvim_create_autocmd("BufWritePost", {
-- desc = "Sync packer after modifying plugins.lua",
-- group = "packer_conf",
-- pattern = "plugins.lua",
-- command = "source <afile> | PackerSync",
-- })
-- Set up custom autocmds
require "user.autocmds.text"
require "user.autocmds.terminal"
require "user.autocmds.groovy"
require "user.autocmds.python"
2023-05-23 19:35:54 +02:00
-- Set up custom filetypes
-- vim.filetype.add {
-- extension = {
-- foo = "fooscript",
-- },
-- filename = {
-- ["Foofile"] = "fooscript",
-- },
-- pattern = {
-- ["~/%.config/foo/.*"] = "fooscript",
-- },
-- }
vim.filetype.add {
filename = {
["Jenkinsfile"] = "groovy",
},
extension = {
Jenkinsfile = "groovy",
},
}
end,
}