feat(nvim): updated config to use vim.pack instead of lazy
This commit is contained in:
+98
-53
@@ -1,19 +1,11 @@
|
||||
-- Steve Beaulac nvim configuration using kickstart git: 2ba39c6 --
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
vim.g.have_nerd_fonts = true
|
||||
|
||||
-- set <space> as my leader key
|
||||
vim.g.autoformat = true
|
||||
|
||||
-- vim.g.root_spec = { "lsp", { ".git", "lua" }, "cwd" }
|
||||
|
||||
vim.g.editorconfig = true
|
||||
|
||||
vim.wo.number = true
|
||||
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.background = 'dark'
|
||||
vim.opt.backup = false
|
||||
vim.opt.clipboard:append("unnamedplus")
|
||||
vim.opt.modifiable = true
|
||||
@@ -114,50 +106,103 @@ vim.diagnostic.config({
|
||||
virtual_text = { current_line = true }
|
||||
})
|
||||
|
||||
-- Lazy plugin manager
|
||||
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', lazyrepo, '--branch=stable', lazypath }
|
||||
if vim.v.shell_error ~= 0 then
|
||||
error('Error cloning lazy.nvim:\n' .. out)
|
||||
end
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
{ import = "plugins" }
|
||||
},
|
||||
rocks = {
|
||||
enabled = false,
|
||||
hererocks = false,
|
||||
},
|
||||
checker = {
|
||||
enabled = true,
|
||||
notify = false,
|
||||
},
|
||||
change_detection = {
|
||||
notify = false,
|
||||
},
|
||||
vim.filetype.add({
|
||||
extension = {
|
||||
['http'] = 'http',
|
||||
},
|
||||
})
|
||||
|
||||
vim.g.lazyvim_check_order = false
|
||||
|
||||
|
||||
require("config.keymaps")
|
||||
require("config.scripts")
|
||||
|
||||
-- When Nvim is idle or you switch focus/buffers, check if files changed
|
||||
vim.api.nvim_create_autocmd({ "FocusGained", "BufEnter", "CursorHold", "CursorHoldI" }, {
|
||||
pattern = "*",
|
||||
command = "checktime",
|
||||
vim.pack.add({
|
||||
{ src = "https://github.com/folke/snacks.nvim" },
|
||||
{ src = "https://github.com/olimorris/codecompanion.nvim" },
|
||||
{ src = 'https://github.com/L3MON4D3/LuaSnip' },
|
||||
{ src = 'https://github.com/rafamadriz/friendly-snippets' },
|
||||
{ src = 'https://github.com/MeanderingProgrammer/render-markdown.nvim' },
|
||||
{ src = 'https://github.com/Saghen/blink.cmp', version = vim.version.range('1.*') },
|
||||
{ src = 'https://github.com/cairijun/codecompanion-agentskills.nvim' },
|
||||
{ src = 'https://github.com/fang2hou/blink-copilot' },
|
||||
{ src = 'https://github.com/folke/todo-comments.nvim' },
|
||||
{ src = 'https://github.com/franco-ruggeri/codecompanion-spinner.nvim' },
|
||||
{ src = 'https://github.com/moyiz/blink-emoji.nvim' },
|
||||
{ src = 'https://github.com/nvim-lua/plenary.nvim' },
|
||||
{ src = 'https://github.com/ravitemer/codecompanion-history.nvim' },
|
||||
{ src = 'https://github.com/ttgrules/cc-adapter-copilot-cli-acp' },
|
||||
{ src = 'https://github.com/nvim-tree/nvim-web-devicons' },
|
||||
{ src = 'https://github.com/SjB/orgmode', version = 'sjb-wip' },
|
||||
{ src = 'https://github.com/nvim-treesitter/nvim-treesitter', version = 'main' },
|
||||
{ src = 'https://github.com/nvim-treesitter/nvim-treesitter-textobjects', version = 'main' },
|
||||
{ src = 'https://github.com/nvim-treesitter/nvim-treesitter-context' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.extra' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.ai' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.move' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.align' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.bracketed' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.operators' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.surround' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.splitjoin' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.hipatterns' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.files' },
|
||||
{ src = 'https://github.com/nvim-mini/mini.sessions' },
|
||||
{ src = 'https://github.com/mfussenegger/nvim-ansible' },
|
||||
{ src = 'https://github.com/obsidian-nvim/obsidian.nvim' },
|
||||
{ src = 'https://github.com/salkin-mada/openscad.nvim' },
|
||||
{ src = 'https://github.com/akinsho/org-bullets.nvim' },
|
||||
{ src = 'https://github.com/chipsenkbeil/org-roam.nvim' },
|
||||
{ src = 'https://github.com/iamcco/markdown-preview.nvim' },
|
||||
{ src = 'https://github.com/lervag/vimtex' },
|
||||
{ src = 'https://github.com/MeanderingProgrammer/render-markdown.nvim' },
|
||||
{ src = 'https://github.com/hat0uma/csvview.nvim' },
|
||||
{ src = 'https://github.com/j-hui/fidget.nvim' },
|
||||
{ src = 'https://github.com/utilyre/barbecue.nvim' },
|
||||
{ src = 'https://github.com/SmiteshP/nvim-navic' },
|
||||
{ src = 'https://github.com/folke/flash.nvim' },
|
||||
{ src = 'https://github.com/nvim-lualine/lualine.nvim' },
|
||||
{ src = 'https://github.com/hedyhli/outline.nvim' },
|
||||
{ src = 'https://github.com/stevearc/quicker.nvim' },
|
||||
{ src = 'https://github.com/christoomey/vim-tmux-navigator' },
|
||||
{ src = 'https://github.com/akinsho/toggleterm.nvim' },
|
||||
{ src = 'https://github.com/ten3roberts/window-picker.nvim' },
|
||||
{ src = 'https://github.com/folke/which-key.nvim' },
|
||||
{ src = 'https://github.com/al1-ce/just.nvim' },
|
||||
{ src = 'https://github.com/mistweaverco/kulala.nvim' },
|
||||
{ src = 'https://github.com/HakonHarnes/img-clip.nvim' },
|
||||
{ src = 'https://github.com/uhs-robert/sshfs.nvim' },
|
||||
{ src = 'https://github.com/esmuellert/codediff.nvim' },
|
||||
{ src = 'https://plugins.ejri.dev/mise.nvim' },
|
||||
{ src = 'https://github.com/NeogitOrg/neogit' },
|
||||
{ src = 'https://github.com/thunder-coding/zincoxide' },
|
||||
{ src = 'https://github.com/sindrets/diffview.nvim' },
|
||||
{ src = 'https://github.com/MunifTanjim/nui.nvim' },
|
||||
{ src = 'https://github.com/stevearc/conform.nvim' },
|
||||
{ src = 'https://github.com/lewis6991/gitsigns.nvim' },
|
||||
{ src = 'https://github.com/NicolasGB/jj.nvim' },
|
||||
{ src = 'https://github.com/julienvincent/hunk.nvim' },
|
||||
{ src = 'https://github.com/rafikdraoui/jj-diffconflicts' },
|
||||
{ src = 'https://github.com/Glhou/jjsigns.nvim', version = 'fix/skip-extra-lines' },
|
||||
{ src = 'https://github.com/williamboman/mason.nvim' },
|
||||
{ src = 'https://github.com/williamboman/mason-lspconfig.nvim' },
|
||||
{ src = 'https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim' },
|
||||
{ src = 'https://github.com/neovim/nvim-lspconfig' },
|
||||
{ src = 'https://github.com/rcarriga/nvim-dap-ui' },
|
||||
{ src = 'https://github.com/mfussenegger/nvim-dap' },
|
||||
{ src = 'https://github.com/nvim-neotest/nvim-nio' },
|
||||
{ src = 'https://github.com/jay-babu/mason-nvim-dap.nvim' },
|
||||
{ src = 'https://github.com/Saecki/crates.nvim' },
|
||||
{ src = 'https://github.com/JoosepAlviste/nvim-ts-context-commentstring' },
|
||||
{ src = 'https://github.com/nvim-treesitter/nvim-treesitter-context' },
|
||||
{ src = 'https://github.com/mbbill/undotree' },
|
||||
{ src = 'https://github.com/Civitasv/cmake-tools.nvim' },
|
||||
{ src = 'https://github.com/folke/persistence.nvim' },
|
||||
{ src = 'https://github.com/otavioschwanck/arrow.nvim' },
|
||||
{ src = 'https://github.com/nvim-pack/nvim-spectre' },
|
||||
{ src = 'https://github.com/stevearc/overseer.nvim' },
|
||||
{ src = 'https://github.com/Davidyz/VectorCode' },
|
||||
{ src = 'https://github.com/franco-ruggeri/codecompanion-spinner.nvim' },
|
||||
{ src = 'https://github.com/ravitemer/codecompanion-history.nvim' },
|
||||
{ src = 'https://github.com/cairijun/codecompanion-agentskills.nvim' },
|
||||
{ src = 'https://github.com/ttgrules/cc-adapter-copilot-cli-acp' },
|
||||
{ src = 'https://github.com/carlos-algms/agentic.nvim' },
|
||||
{ src = 'https://github.com/zbirenbaum/copilot.lua' },
|
||||
{ src = 'https://github.com/copilotlsp-nvim/copilot-lsp' },
|
||||
{ src = 'https://github.com/PhantomYdn/fabric-ai.nvim' },
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "VeryLazy",
|
||||
callback = function()
|
||||
require("config.autocmds")
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user