REFACTOR: Cleaning up project and removing more deprecated code
This commit is contained in:
+3
-3
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user