Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated boilerplate #33

Draft
wants to merge 2 commits into
base: integration-distro-rework
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 0 additions & 66 deletions lua/qvim/config/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,70 +42,4 @@ function M:init()
Log:info("Configs were loaded.")
end

--[[
For now I have absolutely no intentions to implement the functions
below as my configuration is not meant to be scalable by desing.
I don't have the need for an abstract configuration interface.
I just need my own configuration.

The concept was adapted from the following project which
implements this.

https://github.com/LunarVim/LunarVim
]]
--- Override the configuration with a user provided one
-- @param config_path The path to the configuration overrides
--function M:load(config_path)
-- local autocmds = reload "qvim.core.autocmds"
-- config_path = config_path or self:get_user_config_path()
-- local ok, err = pcall(dofile, config_path)
-- if not ok then
-- if utils.is_file(user_config_file) then
-- Log:warn("Invalid configuration: " .. err)
-- else
-- vim.notify_once(
-- string.format("User-configuration not found. Creating an example configuration in %s", config_path)
-- )
-- local config_name = vim.loop.os_uname().version:match "Windows" and "config_win" or "config"
-- local example_config = join_paths(get_qvim_rtp_dir(), "utils", "installer", config_name .. ".example.lua")
-- vim.fn.mkdir(user_config_dir, "p")
-- vim.loop.fs_copyfile(example_config, config_path)
-- end
-- end
--
-- Log:set_level(qvim.log.level)
--
-- autocmds.define_autocmds(qvim.autocommands)
-- vim.g.mapleader = (qvim.leader == "space" and " ") or qvim.leader
--
-- reload("qvim.keymappings").load(qvim.keys)
--
-- if qvim.transparent_window then
-- autocmds.enable_transparent_mode()
-- end
--
-- if qvim.reload_config_on_save then
-- autocmds.enable_reload_config_on_save()
-- end
--end

--- Override the configuration with a user provided one
-- @param config_path The path to the configuration overrides
--function M:reload()
-- vim.schedule(function()
-- reload("qvim.utils.hooks").run_pre_reload()
--
-- M:load()
--
-- reload("qvim.core.autocmds").configure_format_on_save()
--
-- local plugins = reload "qvim.integrations"
-- local plugin_loader = reload "qvim.plugin-loader"
--
-- plugin_loader.reload { plugins }
-- reload("qvim.core.theme").setup()
-- reload("qvim.utils.hooks").run_post_reload()
-- end)
--end

return M
Empty file added lua/qvim/lang/dap/settings.lua
Empty file.
3 changes: 3 additions & 0 deletions lua/qvim/utils/strategy.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
local M = {}

return M