REFACTOR: Cleaning up project and removing more deprecated code

This commit is contained in:
2026-10-16 10:38:06 -04:00
parent 98bd619cfa
commit 06eb74e13f
11 changed files with 142 additions and 332 deletions
+3 -3
View File
@@ -1,11 +1,11 @@
local M = {}
local global_opts = require("vern.configs.default")
local configs = require("vern.configs")
local actions = require("vern.actions")
M.opts = {}
function M.setup(user_opts)
M.opts = vim.tbl_deep_extend("force", {}, global_opts, user_opts or {})
M.opts = vim.tbl_deep_extend("force", {}, configs, user_opts or {})
--- Bind global keybinds
for key, def in pairs(M.opts.keybinds or {}) do
@@ -43,7 +43,7 @@ function M.setup(user_opts)
local ft = vim.bo[args.buf].filetype
local ok, attach = pcall(require, "vern.attach." .. ft)
if ok and type(attach) == "function" then
attach(args.buf, M.user_opts)
attach(args.buf, M.opts)
end
end,
desc = "Attach languages to buffer",