REFACTOR: I spent all day on it but I am heavily refactoring the API and
organization because it was terrible before and hard to maintain. Now it should be much easier and there is still of a design decisions to figure out
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
local M = {}
|
||||
|
||||
M.user_opts = {}
|
||||
|
||||
function M.setup(opts)
|
||||
M.user_opts = opts or {}
|
||||
local group =
|
||||
vim.api.nvim_create_augroup("VernAutocommands", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
group = group,
|
||||
pattern = "*",
|
||||
callback = function(args)
|
||||
require("vern.attach").buf(args.buf, M.user_opts)
|
||||
end,
|
||||
desc = "Attach languages to buffer",
|
||||
})
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user