mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-10-14 01:41:24 +00:00
refactor: reorganize into packages for modular use
This commit is contained in:
parent
e33c60c7aa
commit
fd32e1431c
57 changed files with 0 additions and 66 deletions
|
|
@ -1,37 +0,0 @@
|
|||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Set leader key before lazy setup
|
||||
vim.g.mapleader = ","
|
||||
|
||||
-- Plugin specifications
|
||||
require("lazy").setup({
|
||||
install = { colorscheme = { "kanagawa" } },
|
||||
spec = {
|
||||
{ import = "plugins.ui" },
|
||||
{ import = "plugins.editor" },
|
||||
{ import = "plugins.lsp_completion" },
|
||||
{ import = "plugins.navigation" },
|
||||
{ import = "plugins.treesitter" },
|
||||
{ import = "plugins.tools" },
|
||||
},
|
||||
})
|
||||
|
||||
-- Load core configurations
|
||||
require("core.options")
|
||||
require("core.keymaps")
|
||||
require("core.autocmds")
|
||||
Loading…
Add table
Add a link
Reference in a new issue