mirror of
https://github.com/halfdan/dotfiles.git
synced 2025-09-11 04:06:23 +00:00
Various refactors on nvim config
This commit is contained in:
@@ -86,18 +86,33 @@ _G.packer_plugins = {
|
||||
url = "https://github.com/antoinemadec/FixCursorHold.nvim"
|
||||
},
|
||||
LuaSnip = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
||||
after = { "friendly-snippets", "nvim-cmp" },
|
||||
config = { "\27LJ\2\n/\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\20halfdan.luasnip\frequire\0" },
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
only_cond = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/LuaSnip",
|
||||
url = "https://github.com/L3MON4D3/LuaSnip"
|
||||
},
|
||||
["cmp-buffer"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
||||
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-buffer/after/plugin/cmp_buffer.lua" },
|
||||
load_after = {
|
||||
["nvim-cmp"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-buffer",
|
||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||
},
|
||||
["cmp-cmdline"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
||||
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-cmdline/after/plugin/cmp_cmdline.lua" },
|
||||
load_after = {
|
||||
["nvim-cmp"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-cmdline",
|
||||
url = "https://github.com/hrsh7th/cmp-cmdline"
|
||||
},
|
||||
["cmp-nvim-lsp"] = {
|
||||
@@ -105,19 +120,44 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||
},
|
||||
["cmp-nvim-lua"] = {
|
||||
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua/after/plugin/cmp_nvim_lua.lua" },
|
||||
load_after = {
|
||||
["nvim-cmp"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-nvim-lua",
|
||||
url = "https://github.com/hrsh7th/cmp-nvim-lua"
|
||||
},
|
||||
["cmp-path"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-path",
|
||||
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-path/after/plugin/cmp_path.lua" },
|
||||
load_after = {
|
||||
["nvim-cmp"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-path",
|
||||
url = "https://github.com/hrsh7th/cmp-path"
|
||||
},
|
||||
["cmp-tabnine"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-tabnine",
|
||||
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-tabnine/after/plugin/cmp-tabnine.lua" },
|
||||
load_after = {
|
||||
["nvim-cmp"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-tabnine",
|
||||
url = "https://github.com/tzachar/cmp-tabnine"
|
||||
},
|
||||
cmp_luasnip = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp_luasnip",
|
||||
after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" },
|
||||
load_after = {
|
||||
["nvim-cmp"] = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp_luasnip",
|
||||
url = "https://github.com/saadparwaiz1/cmp_luasnip"
|
||||
},
|
||||
["editorconfig-vim"] = {
|
||||
@@ -130,6 +170,15 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/elixir.nvim",
|
||||
url = "https://github.com/mhanberg/elixir.nvim"
|
||||
},
|
||||
["friendly-snippets"] = {
|
||||
load_after = {
|
||||
LuaSnip = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/friendly-snippets",
|
||||
url = "https://github.com/rafamadriz/friendly-snippets"
|
||||
},
|
||||
["git-worktree.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/git-worktree.nvim",
|
||||
@@ -145,15 +194,20 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/gruvbox-baby",
|
||||
url = "https://github.com/luisiacc/gruvbox-baby"
|
||||
},
|
||||
["impatient.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/impatient.nvim",
|
||||
url = "https://github.com/lewis6991/impatient.nvim"
|
||||
},
|
||||
["lsp-status.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lsp-status.nvim",
|
||||
url = "https://github.com/nvim-lua/lsp-status.nvim"
|
||||
},
|
||||
["lspkind-nvim"] = {
|
||||
["lspkind.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
|
||||
url = "https://github.com/onsails/lspkind-nvim"
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
|
||||
url = "https://github.com/onsails/lspkind.nvim"
|
||||
},
|
||||
["lspsaga.nvim"] = {
|
||||
loaded = true,
|
||||
@@ -170,6 +224,25 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neogit",
|
||||
url = "https://github.com/TimUntersberger/neogit"
|
||||
},
|
||||
neorg = {
|
||||
after = { "neorg-telescope" },
|
||||
config = { "\27LJ\2\n-\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\18halfdan.neorg\frequire\0" },
|
||||
load_after = {},
|
||||
loaded = false,
|
||||
needs_bufread = true,
|
||||
only_cond = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/neorg",
|
||||
url = "https://github.com/nvim-neorg/neorg"
|
||||
},
|
||||
["neorg-telescope"] = {
|
||||
load_after = {
|
||||
neorg = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/neorg-telescope",
|
||||
url = "https://github.com/nvim-neorg/neorg-telescope"
|
||||
},
|
||||
neotest = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neotest",
|
||||
@@ -191,8 +264,15 @@ _G.packer_plugins = {
|
||||
url = "https://github.com/arcticicestudio/nord-vim"
|
||||
},
|
||||
["nvim-cmp"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||
after = { "cmp-buffer", "cmp-nvim-lua", "cmp-tabnine", "cmp-path", "cmp_luasnip", "cmp-cmdline" },
|
||||
config = { "\27LJ\2\n+\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\16halfdan.cmp\frequire\0" },
|
||||
load_after = {
|
||||
LuaSnip = true
|
||||
},
|
||||
loaded = false,
|
||||
needs_bufread = false,
|
||||
only_cond = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/nvim-cmp",
|
||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||
},
|
||||
["nvim-dap"] = {
|
||||
@@ -231,8 +311,10 @@ _G.packer_plugins = {
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||
},
|
||||
["nvim-treesitter-textobjects"] = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects",
|
||||
needs_bufread = false,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/nvim-treesitter-textobjects",
|
||||
url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
|
||||
},
|
||||
["nvim-web-devicons"] = {
|
||||
@@ -245,16 +327,18 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/onedark.vim",
|
||||
url = "https://github.com/joshdick/onedark.vim"
|
||||
},
|
||||
orgmode = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/orgmode",
|
||||
url = "https://github.com/nvim-orgmode/orgmode"
|
||||
},
|
||||
["packer.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||
url = "https://github.com/wbthomason/packer.nvim"
|
||||
},
|
||||
playground = {
|
||||
load_after = {},
|
||||
loaded = true,
|
||||
needs_bufread = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/playground",
|
||||
url = "https://github.com/nvim-treesitter/playground"
|
||||
},
|
||||
["plenary.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||
@@ -280,16 +364,6 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/tagbar",
|
||||
url = "https://github.com/preservim/tagbar"
|
||||
},
|
||||
["telescope-fzy-native.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-fzy-native.nvim"
|
||||
},
|
||||
["telescope-project.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope-project.nvim",
|
||||
url = "https://github.com/nvim-telescope/telescope-project.nvim"
|
||||
},
|
||||
["telescope.nvim"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||
@@ -320,6 +394,11 @@ _G.packer_plugins = {
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-highlightedyank",
|
||||
url = "https://github.com/machakann/vim-highlightedyank"
|
||||
},
|
||||
["vim-projectionist"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-projectionist",
|
||||
url = "https://github.com/tpope/vim-projectionist"
|
||||
},
|
||||
["vim-sneak"] = {
|
||||
loaded = true,
|
||||
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-sneak",
|
||||
@@ -342,6 +421,21 @@ time([[Defining packer_plugins]], false)
|
||||
time([[Config for Comment.nvim]], true)
|
||||
try_loadstring("\27LJ\2\n5\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\fComment\frequire\0", "config", "Comment.nvim")
|
||||
time([[Config for Comment.nvim]], false)
|
||||
-- Load plugins in order defined by `after`
|
||||
time([[Sequenced loading]], true)
|
||||
vim.cmd [[ packadd nvim-treesitter ]]
|
||||
vim.cmd [[ packadd nvim-treesitter-textobjects ]]
|
||||
vim.cmd [[ packadd playground ]]
|
||||
time([[Sequenced loading]], false)
|
||||
vim.cmd [[augroup packer_load_aucmds]]
|
||||
vim.cmd [[au!]]
|
||||
-- Event lazy-loads
|
||||
time([[Defining lazy-load event autocommands]], true)
|
||||
vim.cmd [[au CmdlineEnter * ++once lua require("packer.load")({'cmp-cmdline'}, { event = "CmdlineEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au BufEnter * ++once lua require("packer.load")({'neorg'}, { event = "BufEnter *" }, _G.packer_plugins)]]
|
||||
vim.cmd [[au InsertEnter * ++once lua require("packer.load")({'LuaSnip', 'nvim-cmp'}, { event = "InsertEnter *" }, _G.packer_plugins)]]
|
||||
time([[Defining lazy-load event autocommands]], false)
|
||||
vim.cmd("augroup END")
|
||||
|
||||
_G._packer.inside_compile = false
|
||||
if _G._packer.needs_bufread == true then
|
||||
|
Reference in New Issue
Block a user