FEAT: conform and oil added
Changes - Removed hardtime ( messages were too annoying) - Cleaned up key mappings file - Disabled Lazy loading - Added Oil and conform
This commit is contained in:
18
lua/barink/plugins/conform.lua
Normal file
18
lua/barink/plugins/conform.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
opts = {},
|
||||
config = function()
|
||||
require("conform").setup({
|
||||
formatters_by_ft = {
|
||||
lua = { "stylua" },
|
||||
javascript = { { "prettierd", "prettier" } },
|
||||
},
|
||||
})
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
pattern = "*",
|
||||
callback = function(args)
|
||||
require("conform").format({ buffer = args.buf })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user