Various refactors on nvim config

This commit is contained in:
Fabian Becker 2022-09-27 10:33:01 +03:00
parent 04eac8f2b6
commit eb17f0ab25
13 changed files with 297 additions and 167 deletions

View File

@ -195,12 +195,3 @@ require('rust-tools').setup({
} }
}) })
-- vim.cmd([[
-- augroup
-- autocmd!
-- autocmd BufWritePre *.go lua vim.lsp.buf.formatting_sync(nil, 100)
-- autocmd BufWritePre *.rs lua vim.lsp.buf.formatting_sync(nil, 100)
-- autocmd BufWritePre *.ex,*.exs lua vim.lsp.buf.formatting_sync(nil, 100)
-- autocmd BufWritePre *.py lua vim.lsp.buf.formatting_sync(nil, 100)
-- augroup END
-- ]])

View File

@ -45,14 +45,14 @@ local function config_winbar()
end end
end end
local events = { 'BufEnter', 'BufWinEnter', 'CursorMoved' } -- local events = { 'BufEnter', 'BufWinEnter', 'CursorMoved' }
--
vim.api.nvim_create_autocmd(events, { -- vim.api.nvim_create_autocmd(events, {
pattern = '*', -- pattern = '*',
callback = function() config_winbar() end, -- callback = function() config_winbar() end,
}) -- })
--
vim.api.nvim_create_autocmd('User', { -- vim.api.nvim_create_autocmd('User', {
pattern = 'LspsagaUpdateSymbol', -- pattern = 'LspsagaUpdateSymbol',
callback = function() config_winbar() end, -- callback = function() config_winbar() end,
}) -- })

View File

@ -1,23 +0,0 @@
local orgmode = require('orgmode')
orgmode.setup_ts_grammar()
orgmode.setup({
org_agenda_files = { '~/org/*' },
org_default_notes_file = '~/org/inbox.org',
org_todo_keywords = {'TODO(t)', 'WAITING(w)', '|', 'DONE(d)', 'CANCELLED(c)'},
org_capture_templates = {
t = {
description = 'Todo',
template = '* TODO %?\n %u',
target = '~/org/inbox.org'
},
j = {
description = 'Journal',
template = '\n*** %<%Y-%m-%d> %<%A>\n**** %U\n\n%?',
target = '~/org/journal.org'
},
},
})

View File

@ -3,7 +3,7 @@ local nnoremap = Remap.nnoremap
local builtin = require("telescope.builtin") local builtin = require("telescope.builtin")
nnoremap("<leader>pg", function() nnoremap("<leader>pg", function()
builtin.grep_string({ search = vim.fn.input("Grep For > ")}) builtin.live_grep()
end) end)
nnoremap("<C-p>", function() nnoremap("<C-p>", function()
if not pcall(builtin.git_files) then if not pcall(builtin.git_files) then
@ -26,10 +26,13 @@ end)
nnoremap("<leader>vh", function() nnoremap("<leader>vh", function()
builtin.help_tags() builtin.help_tags()
end) end)
nnoremap("<leader>gw", function()
nnoremap("<leader>wc", function()
require('telescope').extensions.git_worktree.create_git_worktree()
end)
nnoremap("<leader>ws", function()
require('telescope').extensions.git_worktree.git_worktrees() require('telescope').extensions.git_worktree.git_worktrees()
end) end)
nnoremap("<leader>gc", function() nnoremap("<leader>gc", function()
builtin.git_branches() builtin.git_branches()
end) end)

View File

@ -1,6 +1,5 @@
local cmp = require'cmp' local cmp = require'cmp'
local lspkind = require('lspkind') local lspkind = require('lspkind')
local luasnip = require 'luasnip'
local source_mapping = { local source_mapping = {
buffer = "[Buffer]", buffer = "[Buffer]",
@ -22,7 +21,7 @@ end
cmp.setup({ cmp.setup({
snippet = { snippet = {
expand = function(args) expand = function(args)
luasnip.lsp_expand(args.body) require'luasnip'.lsp_expand(args.body)
end, end,
}, },
mapping = { mapping = {
@ -39,8 +38,8 @@ cmp.setup({
["<Tab>"] = cmp.mapping(function(fallback) ["<Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_next_item() cmp.select_next_item()
elseif luasnip.expand_or_jumpable() then elseif require'luasnip'.expand_or_jumpable() then
luasnip.expand_or_jump() require'luasnip'.expand_or_jump()
elseif has_words_before() then elseif has_words_before() then
cmp.complete() cmp.complete()
else else
@ -51,8 +50,8 @@ cmp.setup({
["<S-Tab>"] = cmp.mapping(function(fallback) ["<S-Tab>"] = cmp.mapping(function(fallback)
if cmp.visible() then if cmp.visible() then
cmp.select_prev_item() cmp.select_prev_item()
elseif luasnip.jumpable(-1) then elseif require'luasnip'.jumpable(-1) then
luasnip.jump(-1) require'luasnip'.jump(-1)
else else
fallback() fallback()
end end

View File

@ -1,5 +1,8 @@
require("halfdan.settings") require("halfdan.settings")
require("halfdan.packer") require("halfdan.packer")
require("impatient")
require("halfdan.neogit") require("halfdan.neogit")
require('halfdan.globals') require('halfdan.globals')

View File

@ -0,0 +1,32 @@
local neorg = require("neorg")
neorg.setup({
load = {
["core.defaults"] = {},
["core.norg.dirman"] = {
config = {
workspaces = {
work = "~/org/work",
home = "~/org/home",
}
}
},
["core.gtd.base"] = {
config = {
workspace = "work",
},
},
["core.norg.completion"] = {
config = {
engine = "nvim-cmp",
},
},
["core.norg.concealer"] = {},
["core.norg.journal"] = {
config = {
strategy = "flat",
},
},
["core.integrations.telescope"] = {},
}
})

View File

@ -35,6 +35,8 @@ return require("packer").startup({
-- Packer can manage itself as an optional plugin -- Packer can manage itself as an optional plugin
use "wbthomason/packer.nvim" use "wbthomason/packer.nvim"
use 'lewis6991/impatient.nvim'
use {'TimUntersberger/neogit' } use {'TimUntersberger/neogit' }
use {'airblade/vim-gitgutter'} use {'airblade/vim-gitgutter'}
-- use {'andymass/vim-matchup'} -- use {'andymass/vim-matchup'}
@ -49,6 +51,15 @@ return require("packer").startup({
use {'tpope/vim-surround'} -- ✅ use {'tpope/vim-surround'} -- ✅
use {'tpope/vim-dispatch'} use {'tpope/vim-dispatch'}
-- Treesitter
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
}
use { 'nvim-treesitter/playground', after = 'nvim-treesitter' }
use { 'nvim-treesitter/nvim-treesitter-textobjects', after = 'nvim-treesitter' }
-- Testing -- Testing
use {'vim-test/vim-test'} use {'vim-test/vim-test'}
use { use {
@ -63,9 +74,6 @@ return require("packer").startup({
} }
use {"nvim-neotest/neotest-vim-test" } use {"nvim-neotest/neotest-vim-test" }
-- Treesitter
use {"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"}
use {"nvim-treesitter/nvim-treesitter-textobjects"}
use {'preservim/tagbar'} use {'preservim/tagbar'}
vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags' vim.g.tagbar_ctags_bin = '/usr/local/bin/ctags'
@ -78,7 +86,15 @@ return require("packer").startup({
use {'rcarriga/nvim-notify'} use {'rcarriga/nvim-notify'}
use {'nvim-orgmode/orgmode'} use {
"nvim-neorg/neorg",
event = "BufEnter",
after = "nvim-treesitter",
config = function()
require 'halfdan.neorg'
end
}
use {'nvim-neorg/neorg-telescope', after = "neorg"}
use {'justinmk/vim-sneak'} use {'justinmk/vim-sneak'}
@ -91,18 +107,33 @@ return require("packer").startup({
'williamboman/nvim-lsp-installer', 'williamboman/nvim-lsp-installer',
} }
use {'hrsh7th/cmp-nvim-lsp'}
use {'hrsh7th/cmp-buffer'}
use {'hrsh7th/cmp-path'}
use {'hrsh7th/cmp-cmdline'}
use {'hrsh7th/nvim-cmp'}
use {'tzachar/cmp-tabnine', run = './install.sh'}
use {'onsails/lspkind-nvim'} -- Display symbol with cmp suggestions
use { use {
'L3MON4D3/LuaSnip', 'L3MON4D3/LuaSnip',
requires = {"rafamadriz/friendly-snippets"}, event = "InsertEnter",
} config = function()
use {'saadparwaiz1/cmp_luasnip'} require 'halfdan.luasnip'
end,
}
use {"rafamadriz/friendly-snippets", after="LuaSnip"}
use {
'hrsh7th/nvim-cmp',
requires = {
{ 'hrsh7th/cmp-buffer', after = 'nvim-cmp' },
'hrsh7th/cmp-nvim-lsp',
'onsails/lspkind.nvim',
{ 'hrsh7th/cmp-path', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lua', after = 'nvim-cmp' },
{ 'saadparwaiz1/cmp_luasnip', after = 'nvim-cmp' },
{ 'hrsh7th/cmp-cmdline', after = 'nvim-cmp', event = 'CmdlineEnter' },
{'tzachar/cmp-tabnine', run = './install.sh', after = 'nvim-cmp' }
},
config = function()
require 'halfdan.cmp'
end,
event = 'InsertEnter',
after = 'LuaSnip',
}
use {'glepnir/lspsaga.nvim'} use {'glepnir/lspsaga.nvim'}
@ -119,9 +150,9 @@ return require("packer").startup({
-- Telescope fuzzy find files/grep -- Telescope fuzzy find files/grep
use {'nvim-lua/popup.nvim'} use {'nvim-lua/popup.nvim'}
use {'nvim-lua/plenary.nvim'} use {'nvim-lua/plenary.nvim'}
use {'nvim-telescope/telescope.nvim'} use {'nvim-telescope/telescope.nvim'}
use {'nvim-telescope/telescope-project.nvim'}
use {'nvim-telescope/telescope-fzy-native.nvim'}
use {'theprimeagen/git-worktree.nvim'} use {'theprimeagen/git-worktree.nvim'}
@ -134,6 +165,7 @@ return require("packer").startup({
use {'rust-lang/rust.vim'} use {'rust-lang/rust.vim'}
use {'simrat39/rust-tools.nvim'} use {'simrat39/rust-tools.nvim'}
use({ "mhanberg/elixir.nvim", requires = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" }}) use({ "mhanberg/elixir.nvim", requires = { "neovim/nvim-lspconfig", "nvim-lua/plenary.nvim" }})
use {'tpope/vim-projectionist'}
-- use {'JuliaEditorSupport/julia-vim', opt=true} -- use {'JuliaEditorSupport/julia-vim', opt=true}
-- vim.g.latex_to_unicode_auto = 1 -- vim.g.latex_to_unicode_auto = 1

View File

@ -37,10 +37,9 @@ vim.o.updatetime = 300 -- Faster completion
vim.o.timeoutlen = 500 -- By default timeoutlen is 1000 ms vim.o.timeoutlen = 500 -- By default timeoutlen is 1000 ms
vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else vim.o.clipboard = "unnamedplus" -- Copy paste between vim and everything else
vim.o.laststatus = 3 -- Set global status bar vim.o.laststatus = 3 -- Set global status bar
vim.b.did_ftplugin = 1
-- Enable telescope theme -- Enable telescope theme
-- vim.g.gruvbox_baby_telescope_theme = 1 vim.g.gruvbox_baby_telescope_theme = 1
-- vim.g.gruvbox_baby_background_color = "dark" vim.g.gruvbox_baby_background_color = "dark"
vim.g.colorscheme = "gruvbox-baby" -- Set colorscheme
vim.g.mapleader = ' ' vim.g.mapleader = ' '

View File

@ -4,68 +4,68 @@ require("telescope").load_extension("git_worktree")
-- Global remapping -- Global remapping
require('telescope').setup { require('telescope').setup {
defaults = { defaults = {
find_command = {'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case'}, find_command = {'rg', '--no-heading', '--with-filename', '--line-number', '--column', '--smart-case'},
file_ignore_patterns = {"_build", "node_modules", "deps" }, file_ignore_patterns = {"_build", "node_modules", "deps" },
prompt_position = "bottom", prompt_position = "bottom",
--prompt_prefix = " ", --prompt_prefix = " ",
prompt_prefix = "", prompt_prefix = "",
selection_caret = "", selection_caret = "",
entry_prefix = " ", entry_prefix = " ",
initial_mode = "insert", initial_mode = "insert",
selection_strategy = "reset", selection_strategy = "reset",
sorting_strategy = "descending", sorting_strategy = "descending",
layout_strategy = "horizontal", layout_strategy = "horizontal",
layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}}, layout_defaults = {horizontal = {mirror = false}, vertical = {mirror = false}},
file_sorter = require'telescope.sorters'.get_fuzzy_file, file_sorter = require'telescope.sorters'.get_fuzzy_file,
generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter, generic_sorter = require'telescope.sorters'.get_generic_fuzzy_sorter,
shorten_path = true, shorten_path = true,
winblend = 0, winblend = 0,
width = 0.75, width = 0.75,
preview_cutoff = 120, preview_cutoff = 120,
results_height = 1, results_height = 1,
results_width = 0.8, results_width = 0.8,
border = {}, border = {},
borderchars = {'', '', '', '', '', '', '', ''}, borderchars = {'', '', '', '', '', '', '', ''},
color_devicons = true, color_devicons = true,
use_less = true, use_less = true,
set_env = {['COLORTERM'] = 'truecolor'}, -- default = nil, set_env = {['COLORTERM'] = 'truecolor'}, -- default = nil,
file_previewer = require'telescope.previewers'.vim_buffer_cat.new, file_previewer = require'telescope.previewers'.vim_buffer_cat.new,
grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new, grep_previewer = require'telescope.previewers'.vim_buffer_vimgrep.new,
qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new, qflist_previewer = require'telescope.previewers'.vim_buffer_qflist.new,
-- Developer configurations: Not meant for general override -- Developer configurations: Not meant for general override
buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker, buffer_previewer_maker = require'telescope.previewers'.buffer_previewer_maker,
mappings = { mappings = {
i = { i = {
["<C-j>"] = actions.move_selection_next, ["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous, ["<C-k>"] = actions.move_selection_previous,
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist, ["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
-- To disable a keymap, put [map] = false -- To disable a keymap, put [map] = false
-- So, to not map "<C-n>", just put -- So, to not map "<C-n>", just put
-- ["<c-x>"] = false, -- ["<c-x>"] = false,
-- Otherwise, just set the mapping to the function that you want it to be. -- Otherwise, just set the mapping to the function that you want it to be.
-- ["<C-i>"] = actions.select_horizontal, -- ["<C-i>"] = actions.select_horizontal,
-- Add up multiple actions -- Add up multiple actions
["<CR>"] = actions.select_default + actions.center ["<CR>"] = actions.select_default + actions.center
-- You can perform as many actions in a row as you like -- You can perform as many actions in a row as you like
-- ["<CR>"] = actions.select_default + actions.center + my_cool_custom_action, -- ["<CR>"] = actions.select_default + actions.center + my_cool_custom_action,
}, },
n = { n = {
["<C-j>"] = actions.move_selection_next, ["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous, ["<C-k>"] = actions.move_selection_previous,
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist, ["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
["<esc>"] = actions.close, ["<esc>"] = actions.close,
-- ["<C-i>"] = my_cool_custom_action, -- ["<C-i>"] = my_cool_custom_action,
} }
}
},
extensions = {
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
}
} }
},
extensions = {
fzy_native = {
override_generic_sorter = false,
override_file_sorter = true,
}
}
} }

View File

@ -10,7 +10,7 @@ require('nvim-treesitter.configs').setup({
disable = { 'org' }, disable = { 'org' },
}, },
incremental_selection = { incremental_selection = {
enable = true, enable = false,
keymaps = { keymaps = {
init_selection = "gnn", init_selection = "gnn",
node_incremental = "grn", node_incremental = "grn",

View File

@ -86,18 +86,33 @@ _G.packer_plugins = {
url = "https://github.com/antoinemadec/FixCursorHold.nvim" url = "https://github.com/antoinemadec/FixCursorHold.nvim"
}, },
LuaSnip = { LuaSnip = {
loaded = true, after = { "friendly-snippets", "nvim-cmp" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/LuaSnip", 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" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
["cmp-buffer"] = { ["cmp-buffer"] = {
loaded = true, after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-buffer/after/plugin/cmp_buffer.lua" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-buffer", 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" url = "https://github.com/hrsh7th/cmp-buffer"
}, },
["cmp-cmdline"] = { ["cmp-cmdline"] = {
loaded = true, after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-cmdline/after/plugin/cmp_cmdline.lua" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-cmdline", 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" url = "https://github.com/hrsh7th/cmp-cmdline"
}, },
["cmp-nvim-lsp"] = { ["cmp-nvim-lsp"] = {
@ -105,19 +120,44 @@ _G.packer_plugins = {
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
url = "https://github.com/hrsh7th/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"] = { ["cmp-path"] = {
loaded = true, after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-path/after/plugin/cmp_path.lua" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-path", 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" url = "https://github.com/hrsh7th/cmp-path"
}, },
["cmp-tabnine"] = { ["cmp-tabnine"] = {
loaded = true, after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp-tabnine/after/plugin/cmp-tabnine.lua" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp-tabnine", 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" url = "https://github.com/tzachar/cmp-tabnine"
}, },
cmp_luasnip = { cmp_luasnip = {
loaded = true, after_files = { "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/cmp_luasnip", 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" url = "https://github.com/saadparwaiz1/cmp_luasnip"
}, },
["editorconfig-vim"] = { ["editorconfig-vim"] = {
@ -130,6 +170,15 @@ _G.packer_plugins = {
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/elixir.nvim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/elixir.nvim",
url = "https://github.com/mhanberg/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"] = { ["git-worktree.nvim"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/git-worktree.nvim", 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", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/gruvbox-baby",
url = "https://github.com/luisiacc/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"] = { ["lsp-status.nvim"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lsp-status.nvim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lsp-status.nvim",
url = "https://github.com/nvim-lua/lsp-status.nvim" url = "https://github.com/nvim-lua/lsp-status.nvim"
}, },
["lspkind-nvim"] = { ["lspkind.nvim"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lspkind-nvim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
url = "https://github.com/onsails/lspkind-nvim" url = "https://github.com/onsails/lspkind.nvim"
}, },
["lspsaga.nvim"] = { ["lspsaga.nvim"] = {
loaded = true, loaded = true,
@ -170,6 +224,25 @@ _G.packer_plugins = {
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neogit", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neogit",
url = "https://github.com/TimUntersberger/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 = { neotest = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/neotest", 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" url = "https://github.com/arcticicestudio/nord-vim"
}, },
["nvim-cmp"] = { ["nvim-cmp"] = {
loaded = true, after = { "cmp-buffer", "cmp-nvim-lua", "cmp-tabnine", "cmp-path", "cmp_luasnip", "cmp-cmdline" },
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/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\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" url = "https://github.com/hrsh7th/nvim-cmp"
}, },
["nvim-dap"] = { ["nvim-dap"] = {
@ -231,8 +311,10 @@ _G.packer_plugins = {
url = "https://github.com/nvim-treesitter/nvim-treesitter" url = "https://github.com/nvim-treesitter/nvim-treesitter"
}, },
["nvim-treesitter-textobjects"] = { ["nvim-treesitter-textobjects"] = {
load_after = {},
loaded = true, 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" url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
}, },
["nvim-web-devicons"] = { ["nvim-web-devicons"] = {
@ -245,16 +327,18 @@ _G.packer_plugins = {
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/onedark.vim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/onedark.vim",
url = "https://github.com/joshdick/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"] = { ["packer.nvim"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/packer.nvim", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/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"] = { ["plenary.nvim"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/plenary.nvim", 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", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/tagbar",
url = "https://github.com/preservim/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"] = { ["telescope.nvim"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/telescope.nvim", 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", path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-highlightedyank",
url = "https://github.com/machakann/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"] = { ["vim-sneak"] = {
loaded = true, loaded = true,
path = "/Users/matthiasnienaber/.local/share/nvim/site/pack/packer/start/vim-sneak", 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) 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") 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) 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 _G._packer.inside_compile = false
if _G._packer.needs_bufread == true then if _G._packer.needs_bufread == true then