diff --git a/config/nvim/init.lua b/config/nvim/init.lua index a94385b..1486974 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -108,6 +108,12 @@ vim.api.nvim_create_autocmd('BufWritePost', { group = packer_group, pattern = { vim.fn.expand '$MYVIMRC', '~/.dotfiles/config/nvim/**/*.lua' }, }) +-- Automatically run PackerSync for plugins.lua files. +vim.api.nvim_create_autocmd('BufWritePost', { + command = 'source | PackerSync', + group = packer_group, + pattern = { '~/.dotfiles/config/nvim/**/plugins.lua' }, +}) -- [[ Setting options ]] -- See `:help vim.o` @@ -154,7 +160,7 @@ vim.o.winbar = '%=%m %f' -- [[ Basic Keymaps ]] -- Set as the leader key -- See `:help mapleader` --- NOTE: Must happen before plugins are required +-- NOTE: Must happen before plugins are required -- (otherwise wrong leader will be used) vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' @@ -240,9 +246,9 @@ vim.keymap.set('n', '/', function() -- change theme, layout, etc. require('telescope.builtin').current_buffer_fuzzy_find( require('telescope.themes').get_dropdown { - winblend = 10, - previewer = false, - }) + winblend = 10, + previewer = false, + }) end, { desc = '[/] Fuzzily search in current buffer]' }) vim.keymap.set('n', 'sf', require('telescope.builtin').find_files, @@ -287,7 +293,7 @@ require('nvim-treesitter.configs').setup { enable = true, -- Required for spellcheck, some LaTex highlights and -- code block highlights that do not have ts grammar - additional_vim_regex_highlighting = {'org'}, + additional_vim_regex_highlighting = { 'org' }, }, indent = { enable = true, disable = { 'python' } }, @@ -490,7 +496,7 @@ require("mason-lspconfig").setup_handlers { -- The first entry (without a key) will be the default handler -- and will be called for each installed server that doesn't have -- a dedicated handler. - function (server_name) -- default handler (optional) + function(server_name) -- default handler (optional) require("lspconfig")[server_name].setup {} end, } @@ -596,16 +602,16 @@ map('n', '', 'BufferNext', opts) map('n', '', 'BufferMovePrevious', opts) map('n', '>', 'BufferMoveNext', opts) -- Goto buffer in position... -map('n', '', 'BufferGoto 1', opts) -map('n', '', 'BufferGoto 2', opts) -map('n', '', 'BufferGoto 3', opts) -map('n', '', 'BufferGoto 4', opts) -map('n', '', 'BufferGoto 5', opts) -map('n', '', 'BufferGoto 6', opts) -map('n', '', 'BufferGoto 7', opts) -map('n', '', 'BufferGoto 8', opts) -map('n', '', 'BufferGoto 9', opts) -map('n', '', 'BufferLast', opts) +map('n', 'b1', 'BufferGoto 1', opts) +map('n', 'b2', 'BufferGoto 2', opts) +map('n', 'b3', 'BufferGoto 3', opts) +map('n', 'b4', 'BufferGoto 4', opts) +map('n', 'b5', 'BufferGoto 5', opts) +map('n', 'b6', 'BufferGoto 6', opts) +map('n', 'b7', 'BufferGoto 7', opts) +map('n', 'b8', 'BufferGoto 8', opts) +map('n', 'b9', 'BufferGoto 9', opts) +map('n', 'b0', 'BufferLast', opts) -- Pin/unpin buffer map('n', '', 'BufferPin', opts) -- Close buffer @@ -639,7 +645,7 @@ vim.api.nvim_create_autocmd("BufNewFile", -- Enable spell checking for certain file types vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { pattern = { "*.txt", "*.md", "*.tex" }, - command = "setlocal spell" }) + command = "setlocal spell" }) -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et diff --git a/config/nvim/lua/custom/plugins.lua b/config/nvim/lua/custom/plugins.lua index e863fd5..5ec4d03 100644 --- a/config/nvim/lua/custom/plugins.lua +++ b/config/nvim/lua/custom/plugins.lua @@ -1,9 +1,11 @@ return function(use) -- 💥 Create key bindings that stick. - -- WhichKey is a lua plugin that displays a popup with + -- WhichKey is a lua plugin that displays a popup with -- possible keybindings of the command you started typing. - use({ "folke/which-key.nvim", config = function() require("which-key").setup({}) end }) + use({ "folke/which-key.nvim", + config = function() require("which-key").setup({}) end + }) -- 🍨 Soothing pastel theme for (Neo)vim -- https://github.com/catppuccin/nvim @@ -35,8 +37,8 @@ return function(use) use { "ThePrimeagen/refactoring.nvim", requires = { - {"nvim-lua/plenary.nvim"}, - {"nvim-treesitter/nvim-treesitter"} + { "nvim-lua/plenary.nvim" }, + { "nvim-treesitter/nvim-treesitter" } } } @@ -48,27 +50,136 @@ return function(use) }) -- nvim orgmode, to get me use nvim even more. - use ({ "nvim-orgmode/orgmode", + use({ "nvim-orgmode/orgmode", config = function() require("orgmode").setup({}) end, }) - -- Remaps for the refactoring operations currently offered by the plugin + -- Markdown support + use 'preservim/vim-markdown' + use 'godlygeek/tabular' + + -- obsidian plugin for nvim + -- https://github.com/epwalsh/obsidian.nvim + use({ "epwalsh/obsidian.nvim", + config = function() + require("obsidian").setup({ + dir = '~/.local/share/_nvalt', + notes_subdir = "notes", + daily_notes = { + folder = "_daily" + }, + completion = { + nvim_cmp = true, -- if using nvim-cmp, otherwise set to false + } + }) + end + }) + + -- Creates missing folders on save + -- https://github.com/jghauser/mkdir.nvim + use { 'jghauser/mkdir.nvim' } + + -- Neovim plugin for dimming the highlights of unused + -- functions, variables, parameters, and more + -- https://github.com/zbirenbaum/neodim + use { "zbirenbaum/neodim", + event = "LspAttach", + config = function() + require("neodim").setup({ + alpha = 0.75, + blend_color = "#000000", + update_in_insert = { + enable = true, + delay = 100, + }, + hide = { + virtual_text = true, + signs = true, + underline = true, + } + }) + end + } + + -- EditorConfig plugin for Neovim + -- https://github.com/gpanders/editorconfig.nvim + use { 'gpanders/editorconfig.nvim' } + + -- Use Neovim as a language server to inject LSP diagnostics, code actions, and more via Lua. + -- https://github.com/jose-elias-alvarez/null-ls.nvim + use ({ "jose-elias-alvarez/null-ls.nvim", + requires = { "nvim-lua/plenary.nvim" }, + config = function () + local null_ls = require("null-ls") + + null_ls.setup({ + sources = { + null_ls.builtins.formatting.blade_formatter, + null_ls.builtins.formatting.eslint, + null_ls.builtins.formatting.fixjson, + null_ls.builtins.formatting.lua_format, + null_ls.builtins.formatting.markdownlint, + null_ls.builtins.formatting.prettier, + null_ls.builtins.formatting.shfmt, + null_ls.builtins.formatting.stylelint, + -- null_ls.builtins.formatting.stylua, + null_ls.builtins.formatting.terraform_fmt, + null_ls.builtins.formatting.trim_whitespace, + null_ls.builtins.formatting.yamlfmt, + null_ls.builtins.diagnostics.alex, + null_ls.builtins.diagnostics.ansiblelint, + null_ls.builtins.diagnostics.actionlint, + null_ls.builtins.diagnostics.codespell, + null_ls.builtins.diagnostics.dotenv_linter, + null_ls.builtins.diagnostics.editorconfig_checker, + null_ls.builtins.diagnostics.eslint, + null_ls.builtins.diagnostics.hadolint, + null_ls.builtins.diagnostics.jsonlint, + null_ls.builtins.diagnostics.luacheck, + null_ls.builtins.diagnostics.markdownlint, + null_ls.builtins.diagnostics.php, + null_ls.builtins.diagnostics.phpcs, + null_ls.builtins.diagnostics.phpstan, + null_ls.builtins.diagnostics.psalm, + null_ls.builtins.diagnostics.shellcheck, + null_ls.builtins.diagnostics.spectral, + null_ls.builtins.diagnostics.stylelint, + null_ls.builtins.diagnostics.todo_comments, + null_ls.builtins.diagnostics.trail_space, + null_ls.builtins.diagnostics.xo, + null_ls.builtins.diagnostics.yamllint, + null_ls.builtins.completion.spell, + null_ls.builtins.completion.luasnip, + null_ls.builtins.code_actions.eslint, + null_ls.builtins.code_actions.shellcheck, + null_ls.builtins.code_actions.xo, + } + }) + end + }) + + local map = vim.api.nvim_set_keymap - local refactoring_opts = { noremap = true, silent = true, expr = false } - map("v", "re", [[ lua require('refactoring').refactor('Extract Function')]], refactoring_opts) - map("v", "rf", [[ lua require('refactoring').refactor('Extract Function To File')]], refactoring_opts) - map("v", "rv", [[ lua require('refactoring').refactor('Extract Variable')]], refactoring_opts) - map("v", "ri", [[ lua require('refactoring').refactor('Inline Variable')]], refactoring_opts) + + map("n", "ff", ":Format", { noremap = true, silent = true }) + + -- Remaps for the refactoring operations currently offered by the plugin + local refact_opts = { noremap = true, silent = true, expr = false } + map("v", "re", [[ lua require('refactoring').refactor('Extract Function')]], refact_opts) + map("v", "rf", [[ lua require('refactoring').refactor('Extract Function To File')]], + refact_opts) + map("v", "rv", [[ lua require('refactoring').refactor('Extract Variable')]], refact_opts) + map("v", "ri", [[ lua require('refactoring').refactor('Inline Variable')]], refact_opts) -- Extract block doesn't need visual mode - map("n", "rb", [[ lua require('refactoring').refactor('Extract Block')]], refactoring_opts) - map("n", "rbf", [[ lua require('refactoring').refactor('Extract Block To File')]], refactoring_opts) + map("n", "rb", [[ lua require('refactoring').refactor('Extract Block')]], refact_opts) + map("n", "rbf", [[ lua require('refactoring').refactor('Extract Block To File')]], refact_opts) -- Inline variable can also pick up the identifier currently under the cursor without visual mode - map("n", "ri", [[ lua require('refactoring').refactor('Inline Variable')]],refactoring_opts) + map("n", "ri", [[ lua require('refactoring').refactor('Inline Variable')]], refact_opts) -- prompt for a refactor to apply when the remap is triggered - map("v", "rr", ":lua require('refactoring').select_refactor()", refactoring_opts) + map("v", "rr", ":lua require('refactoring').select_refactor()", refact_opts) end diff --git a/config/nvim/plugin/packer_compiled.lua b/config/nvim/plugin/packer_compiled.lua index 58b0187..b922ba7 100644 --- a/config/nvim/plugin/packer_compiled.lua +++ b/config/nvim/plugin/packer_compiled.lua @@ -90,11 +90,6 @@ _G.packer_plugins = { url = "https://github.com/romgrk/barbar.nvim", wants = { "nvim-web-devicons" } }, - catppuccin = { - loaded = true, - path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/catppuccin", - url = "https://github.com/catppuccin/nvim" - }, ["cmp-nvim-lsp"] = { loaded = true, path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", @@ -110,6 +105,11 @@ _G.packer_plugins = { path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/dressing.nvim", url = "https://github.com/stevearc/dressing.nvim" }, + ["editorconfig.nvim"] = { + loaded = true, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/editorconfig.nvim", + url = "https://github.com/gpanders/editorconfig.nvim" + }, ["fidget.nvim"] = { loaded = true, path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/fidget.nvim", @@ -145,11 +145,30 @@ _G.packer_plugins = { path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/mason.nvim", url = "https://github.com/williamboman/mason.nvim" }, + ["mkdir.nvim"] = { + loaded = true, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/mkdir.nvim", + url = "https://github.com/jghauser/mkdir.nvim" + }, + neodim = { + config = { "\27LJ\2\n\1\0\0\4\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0=\3\a\2B\0\2\1K\0\1\0\thide\1\0\3\14underline\2\nsigns\2\17virtual_text\2\21update_in_insert\1\0\2\ndelay\3d\venable\2\1\0\2\nalpha\4\0\3\16blend_color\f#000000\nsetup\vneodim\frequire\0" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/opt/neodim", + url = "https://github.com/zbirenbaum/neodim" + }, ["notifier.nvim"] = { loaded = true, path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/notifier.nvim", url = "https://github.com/vigoux/notifier.nvim" }, + ["null-ls.nvim"] = { + config = { "\27LJ\2\n\b\0\0\6\0*\0\0016\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3(\0004\4'\0009\5\3\0009\5\4\0059\5\5\5>\5\1\0049\5\3\0009\5\4\0059\5\6\5>\5\2\0049\5\3\0009\5\4\0059\5\a\5>\5\3\0049\5\3\0009\5\4\0059\5\b\5>\5\4\0049\5\3\0009\5\4\0059\5\t\5>\5\5\0049\5\3\0009\5\4\0059\5\n\5>\5\6\0049\5\3\0009\5\4\0059\5\v\5>\5\a\0049\5\3\0009\5\4\0059\5\f\5>\5\b\0049\5\3\0009\5\4\0059\5\r\5>\5\t\0049\5\3\0009\5\4\0059\5\14\5>\5\n\0049\5\3\0009\5\4\0059\5\15\5>\5\v\0049\5\3\0009\5\16\0059\5\17\5>\5\f\0049\5\3\0009\5\16\0059\5\18\5>\5\r\0049\5\3\0009\5\16\0059\5\19\5>\5\14\0049\5\3\0009\5\16\0059\5\20\5>\5\15\0049\5\3\0009\5\16\0059\5\21\5>\5\16\0049\5\3\0009\5\16\0059\5\22\5>\5\17\0049\5\3\0009\5\16\0059\5\6\5>\5\18\0049\5\3\0009\5\16\0059\5\23\5>\5\19\0049\5\3\0009\5\16\0059\5\24\5>\5\20\0049\5\3\0009\5\16\0059\5\25\5>\5\21\0049\5\3\0009\5\16\0059\5\t\5>\5\22\0049\5\3\0009\5\16\0059\5\26\5>\5\23\0049\5\3\0009\5\16\0059\5\27\5>\5\24\0049\5\3\0009\5\16\0059\5\28\5>\5\25\0049\5\3\0009\5\16\0059\5\29\5>\5\26\0049\5\3\0009\5\16\0059\5\30\5>\5\27\0049\5\3\0009\5\16\0059\5\31\5>\5\28\0049\5\3\0009\5\16\0059\5\f\5>\5\29\0049\5\3\0009\5\16\0059\5 \5>\5\30\0049\5\3\0009\5\16\0059\5!\5>\5\31\0049\5\3\0009\5\16\0059\5\"\5>\5 \0049\5\3\0009\5\16\0059\5#\5>\5!\0049\5\3\0009\5$\0059\5%\5>\5\"\0049\5\3\0009\5$\0059\5&\5>\5#\0049\5\3\0009\5'\0059\5\6\5>\5$\0049\5\3\0009\5'\0059\5\30\5>\5%\0049\5\3\0009\5'\0059\5\"\5>\5&\4=\4)\3B\1\2\1K\0\1\0\fsources\1\0\0\17code_actions\fluasnip\nspell\15completion\ryamllint\axo\16trail_space\18todo_comments\rspectral\15shellcheck\npsalm\fphpstan\nphpcs\bphp\rluacheck\rjsonlint\rhadolint\25editorconfig_checker\18dotenv_linter\14codespell\15actionlint\16ansiblelint\talex\16diagnostics\fyamlfmt\20trim_whitespace\18terraform_fmt\14stylelint\nshfmt\rprettier\17markdownlint\15lua_format\ffixjson\veslint\20blade_formatter\15formatting\rbuiltins\nsetup\fnull-ls\frequire\0" }, + loaded = true, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/null-ls.nvim", + url = "https://github.com/jose-elias-alvarez/null-ls.nvim" + }, ["nvim-cmp"] = { loaded = true, path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/nvim-cmp", @@ -187,6 +206,12 @@ _G.packer_plugins = { path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", url = "https://github.com/nvim-tree/nvim-web-devicons" }, + ["obsidian.nvim"] = { + config = { "\27LJ\2\n\1\0\0\4\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0=\3\a\2B\0\2\1K\0\1\0\15completion\1\0\1\rnvim_cmp\2\16daily_notes\1\0\1\vfolder\v_daily\1\0\2\bdir\26~/.local/share/_nvalt\17notes_subdir\nnotes\nsetup\robsidian\frequire\0" }, + loaded = true, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/obsidian.nvim", + url = "https://github.com/epwalsh/obsidian.nvim" + }, orgmode = { config = { "\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\forgmode\frequire\0" }, loaded = true, @@ -213,6 +238,11 @@ _G.packer_plugins = { path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/refactoring.nvim", url = "https://github.com/ThePrimeagen/refactoring.nvim" }, + tabular = { + loaded = true, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/tabular", + url = "https://github.com/godlygeek/tabular" + }, ["telescope-fzf-native.nvim"] = { cond = { true }, loaded = false, @@ -237,6 +267,11 @@ _G.packer_plugins = { path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/vim-fugitive", url = "https://github.com/tpope/vim-fugitive" }, + ["vim-markdown"] = { + loaded = true, + path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/vim-markdown", + url = "https://github.com/preservim/vim-markdown" + }, ["vim-rhubarb"] = { loaded = true, path = "/Users/ivuorinen/.local/share/nvim/site/pack/packer/start/vim-rhubarb", @@ -256,14 +291,22 @@ _G.packer_plugins = { } time([[Defining packer_plugins]], false) --- Config for: orgmode -time([[Config for orgmode]], true) -try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\forgmode\frequire\0", "config", "orgmode") -time([[Config for orgmode]], false) +-- Config for: null-ls.nvim +time([[Config for null-ls.nvim]], true) +try_loadstring("\27LJ\2\n\b\0\0\6\0*\0\0016\0\0\0'\2\1\0B\0\2\0029\1\2\0005\3(\0004\4'\0009\5\3\0009\5\4\0059\5\5\5>\5\1\0049\5\3\0009\5\4\0059\5\6\5>\5\2\0049\5\3\0009\5\4\0059\5\a\5>\5\3\0049\5\3\0009\5\4\0059\5\b\5>\5\4\0049\5\3\0009\5\4\0059\5\t\5>\5\5\0049\5\3\0009\5\4\0059\5\n\5>\5\6\0049\5\3\0009\5\4\0059\5\v\5>\5\a\0049\5\3\0009\5\4\0059\5\f\5>\5\b\0049\5\3\0009\5\4\0059\5\r\5>\5\t\0049\5\3\0009\5\4\0059\5\14\5>\5\n\0049\5\3\0009\5\4\0059\5\15\5>\5\v\0049\5\3\0009\5\16\0059\5\17\5>\5\f\0049\5\3\0009\5\16\0059\5\18\5>\5\r\0049\5\3\0009\5\16\0059\5\19\5>\5\14\0049\5\3\0009\5\16\0059\5\20\5>\5\15\0049\5\3\0009\5\16\0059\5\21\5>\5\16\0049\5\3\0009\5\16\0059\5\22\5>\5\17\0049\5\3\0009\5\16\0059\5\6\5>\5\18\0049\5\3\0009\5\16\0059\5\23\5>\5\19\0049\5\3\0009\5\16\0059\5\24\5>\5\20\0049\5\3\0009\5\16\0059\5\25\5>\5\21\0049\5\3\0009\5\16\0059\5\t\5>\5\22\0049\5\3\0009\5\16\0059\5\26\5>\5\23\0049\5\3\0009\5\16\0059\5\27\5>\5\24\0049\5\3\0009\5\16\0059\5\28\5>\5\25\0049\5\3\0009\5\16\0059\5\29\5>\5\26\0049\5\3\0009\5\16\0059\5\30\5>\5\27\0049\5\3\0009\5\16\0059\5\31\5>\5\28\0049\5\3\0009\5\16\0059\5\f\5>\5\29\0049\5\3\0009\5\16\0059\5 \5>\5\30\0049\5\3\0009\5\16\0059\5!\5>\5\31\0049\5\3\0009\5\16\0059\5\"\5>\5 \0049\5\3\0009\5\16\0059\5#\5>\5!\0049\5\3\0009\5$\0059\5%\5>\5\"\0049\5\3\0009\5$\0059\5&\5>\5#\0049\5\3\0009\5'\0059\5\6\5>\5$\0049\5\3\0009\5'\0059\5\30\5>\5%\0049\5\3\0009\5'\0059\5\"\5>\5&\4=\4)\3B\1\2\1K\0\1\0\fsources\1\0\0\17code_actions\fluasnip\nspell\15completion\ryamllint\axo\16trail_space\18todo_comments\rspectral\15shellcheck\npsalm\fphpstan\nphpcs\bphp\rluacheck\rjsonlint\rhadolint\25editorconfig_checker\18dotenv_linter\14codespell\15actionlint\16ansiblelint\talex\16diagnostics\fyamlfmt\20trim_whitespace\18terraform_fmt\14stylelint\nshfmt\rprettier\17markdownlint\15lua_format\ffixjson\veslint\20blade_formatter\15formatting\rbuiltins\nsetup\fnull-ls\frequire\0", "config", "null-ls.nvim") +time([[Config for null-ls.nvim]], false) +-- Config for: obsidian.nvim +time([[Config for obsidian.nvim]], true) +try_loadstring("\27LJ\2\n\1\0\0\4\0\b\0\v6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\0025\3\6\0=\3\a\2B\0\2\1K\0\1\0\15completion\1\0\1\rnvim_cmp\2\16daily_notes\1\0\1\vfolder\v_daily\1\0\2\bdir\26~/.local/share/_nvalt\17notes_subdir\nnotes\nsetup\robsidian\frequire\0", "config", "obsidian.nvim") +time([[Config for obsidian.nvim]], false) -- Config for: todo-comments.nvim time([[Config for todo-comments.nvim]], true) try_loadstring("\27LJ\2\n?\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\18todo-comments\frequire\0", "config", "todo-comments.nvim") time([[Config for todo-comments.nvim]], false) +-- Config for: orgmode +time([[Config for orgmode]], true) +try_loadstring("\27LJ\2\n9\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\forgmode\frequire\0", "config", "orgmode") +time([[Config for orgmode]], false) -- Config for: which-key.nvim time([[Config for which-key.nvim]], true) try_loadstring("\27LJ\2\n;\0\0\3\0\3\0\a6\0\0\0'\2\1\0B\0\2\0029\0\2\0004\2\0\0B\0\2\1K\0\1\0\nsetup\14which-key\frequire\0", "config", "which-key.nvim") @@ -277,6 +320,13 @@ time([[Sequenced loading]], true) vim.cmd [[ packadd nvim-treesitter ]] vim.cmd [[ packadd nvim-treesitter-textobjects ]] 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 LspAttach * ++once lua require("packer.load")({'neodim'}, { event = "LspAttach *" }, _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