Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Mar 29, 2024
1 parent 595bdae commit f00df19
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 95 deletions.
2 changes: 1 addition & 1 deletion lua/dotvim/core/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function M.load_package(name)
return loaded_packages[name]
end

local module = require(name)
local module = require(("dotvim.packages.%s"):format(name))
if module == nil then
vim.notify("Failed to load package module: " .. name, vim.log.levels.WARN)
return nil
Expand Down
83 changes: 0 additions & 83 deletions lua/dotvim/legacy/packages/lsp/init.lua

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ local Utils = require("dotvim.utils")

---@type dotvim.core.package.PackageOption
return {
name = "dotvim.packages.base",
name = "base",
setup = function()
require("dotvim.packages.base.setup.options")
require("dotvim.packages.base.setup.keymaps")
require("dotvim.packages.base.setup.autocmds")
require("dotvim.pkgs.base.setup.options")
require("dotvim.pkgs.base.setup.keymaps")
require("dotvim.pkgs.base.setup.autocmds")
end,
plugins = Utils.tbl.flatten_array {
require("dotvim.packages.base.plugins.init"),
require("dotvim.pkgs.base.plugins.init"),
{ "folke/lazy.nvim", lazy = true },
{
"dstein64/vim-startuptime",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ return {
keys = { { "J", "<Plug>(jplus)", mode = { "n", "v" }, noremap = false } },
gui = "all",
},
require("dotvim.packages.base.plugins.mason"),
require("dotvim.packages.base.plugins.toggleterm"),
require("dotvim.pkgs.base.plugins.mason"),
require("dotvim.pkgs.base.plugins.toggleterm"),
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---@type dotvim.core.package.PackageOption
local M = {
name = "dotvim.packages.lsp",
plugins = {},
name = "lsp",
plugins = {
require("dotvim.pkgs.lsp.plugins.nvim-lspconfig"),
require("dotvim.pkgs.lsp.plugins.lspkind"),
require("dotvim.pkgs.lsp.plugins.glance"),
},
}

local methods = require("dotvim.core.lsp.methods")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---@type dotvim.core.package.PackageOption
return {
name = "dotvim.packages.theme",
name = "theme",
plugins = {
require("dotvim.packages.theme.plugins.catppuccin"),
require("dotvim.pkgs.theme.plugins.catppuccin"),
},
setup = function()
vim.cmd("colorscheme catppuccino")
Expand Down

0 comments on commit f00df19

Please sign in to comment.