diff --git a/config/.config/nvim/after/queries/markdown/highlights.csm b/config/.config/nvim/after/queries/markdown/highlights.csm new file mode 100644 index 0000000..2470121 --- /dev/null +++ b/config/.config/nvim/after/queries/markdown/highlights.csm @@ -0,0 +1,15 @@ +((atx_heading + (atx_h1_marker) @_h1 + (_) @h1)) +((atx_heading + (atx_h2_marker) @_h2 + (_) @h2)) +((atx_heading + (atx_h3_marker) @_h3 + (_) @h3)) +((atx_heading + (atx_h4_marker) @_h4 + (_) @h4)) +((atx_heading + (atx_h5_marker) @_h5 + (_) @h5)) diff --git a/config/.config/nvim/after/queries/markdown/highlights.scm b/config/.config/nvim/after/queries/markdown/highlights.scm new file mode 100644 index 0000000..2470121 --- /dev/null +++ b/config/.config/nvim/after/queries/markdown/highlights.scm @@ -0,0 +1,15 @@ +((atx_heading + (atx_h1_marker) @_h1 + (_) @h1)) +((atx_heading + (atx_h2_marker) @_h2 + (_) @h2)) +((atx_heading + (atx_h3_marker) @_h3 + (_) @h3)) +((atx_heading + (atx_h4_marker) @_h4 + (_) @h4)) +((atx_heading + (atx_h5_marker) @_h5 + (_) @h5)) diff --git a/config/.config/nvim/plugin/packer_compiled.lua b/config/.config/nvim/plugin/packer_compiled.lua new file mode 100644 index 0000000..543620d --- /dev/null +++ b/config/.config/nvim/plugin/packer_compiled.lua @@ -0,0 +1,533 @@ +-- Automatically generated packer.nvim plugin loader code + +if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then + vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"') + return +end + +vim.api.nvim_command('packadd packer.nvim') + +local no_errors, error_msg = pcall(function() + +_G._packer = _G._packer or {} +_G._packer.inside_compile = true + +local time +local profile_info +local should_profile = false +if should_profile then + local hrtime = vim.loop.hrtime + profile_info = {} + time = function(chunk, start) + if start then + profile_info[chunk] = hrtime() + else + profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6 + end + end +else + time = function(chunk, start) end +end + +local function save_profiles(threshold) + local sorted_times = {} + for chunk_name, time_taken in pairs(profile_info) do + sorted_times[#sorted_times + 1] = {chunk_name, time_taken} + end + table.sort(sorted_times, function(a, b) return a[2] > b[2] end) + local results = {} + for i, elem in ipairs(sorted_times) do + if not threshold or threshold and elem[2] > threshold then + results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms' + end + end + if threshold then + table.insert(results, '(Only showing plugins that took longer than ' .. threshold .. ' ms ' .. 'to load)') + end + + _G._packer.profile_output = results +end + +time([[Luarocks path setup]], true) +local package_path_str = "/usr/local/google/home/cnieves/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/usr/local/google/home/cnieves/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/usr/local/google/home/cnieves/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/usr/local/google/home/cnieves/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua" +local install_cpath_pattern = "/usr/local/google/home/cnieves/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so" +if not string.find(package.path, package_path_str, 1, true) then + package.path = package.path .. ';' .. package_path_str +end + +if not string.find(package.cpath, install_cpath_pattern, 1, true) then + package.cpath = package.cpath .. ';' .. install_cpath_pattern +end + +time([[Luarocks path setup]], false) +time([[try_loadstring definition]], true) +local function try_loadstring(s, component, name) + local success, result = pcall(loadstring(s), name, _G.packer_plugins[name]) + if not success then + vim.schedule(function() + vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {}) + end) + end + return result +end + +time([[try_loadstring definition]], false) +time([[Defining packer_plugins]], true) +_G.packer_plugins = { + LuaSnip = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/LuaSnip", + url = "https://github.com/L3MON4D3/LuaSnip" + }, + MatchTagAlways = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/MatchTagAlways", + url = "https://github.com/Valloric/MatchTagAlways" + }, + ["asyncrun.vim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/asyncrun.vim", + url = "https://github.com/skywind3000/asyncrun.vim" + }, + ["auto-session"] = { + config = { "\27LJ\2\n²\1\0\0\a\0\t\1\0146\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0006\4\5\0009\4\6\4'\6\a\0B\4\2\0?\4\0\0=\3\b\2B\0\2\1K\0\1\0\31auto_session_suppress_dirs\tHOME\vgetenv\aos\1\4\0\0\a~/\16~/Downloads\6/\1\0\1\14log_level\nerror\nsetup\17auto-session\frequire\t€€À™\4\0" }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/auto-session", + url = "https://github.com/rmagatti/auto-session" + }, + catppuccin = { + config = { 'require("catppuccin-config")' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/catppuccin", + url = "https://github.com/catppuccin/nvim" + }, + ["cmp-buffer"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-buffer", + url = "https://github.com/hrsh7th/cmp-buffer" + }, + ["cmp-cmdline"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-cmdline", + url = "https://github.com/hrsh7th/cmp-cmdline" + }, + ["cmp-nvim-lsp"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", + url = "https://github.com/hrsh7th/cmp-nvim-lsp" + }, + ["cmp-nvim-lsp-document-symbol"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-document-symbol", + url = "https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol" + }, + ["cmp-nvim-lsp-signature-help"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help", + url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help" + }, + ["cmp-nvim-lua"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", + url = "https://github.com/hrsh7th/cmp-nvim-lua" + }, + ["cmp-path"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-path", + url = "https://github.com/hrsh7th/cmp-path" + }, + ["cmp-spell"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-spell", + url = "https://github.com/f3fora/cmp-spell" + }, + ["cmp-under-comparator"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-under-comparator", + url = "https://github.com/lukas-reineke/cmp-under-comparator" + }, + ["cmp-vsnip"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-vsnip", + url = "https://github.com/hrsh7th/cmp-vsnip" + }, + cmp_luasnip = { + after_files = { "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" }, + load_after = {}, + loaded = true, + needs_bufread = false, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/cmp_luasnip", + url = "https://github.com/saadparwaiz1/cmp_luasnip" + }, + critique = { + config = { ' require("critique").setup() ' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/critique", + url = "/google/src/cloud/cnieves/google-comments/google3/experimental/users/cnieves/neovim/critique" + }, + ["fidget.nvim"] = { + config = { 'require("fidget").setup()' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/fidget.nvim", + url = "https://github.com/j-hui/fidget.nvim" + }, + ["fzf.vim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/fzf.vim", + url = "https://github.com/junegunn/fzf.vim" + }, + ["git-conflict.nvim"] = { + config = { "require('git-conflict').setup()" }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/git-conflict.nvim", + url = "https://github.com/akinsho/git-conflict.nvim" + }, + ["gitsigns.nvim"] = { + config = { "require('config.gitsigns')" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/gitsigns.nvim", + url = "https://github.com/lewis6991/gitsigns.nvim" + }, + ["google-comments"] = { + cond = { true }, + config = { ' require("google_comments") ' }, + loaded = false, + needs_bufread = false, + only_cond = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/google-comments", + url = "sso://googler@user/chmnchiang/google-comments" + }, + ["java-syntax.vim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/java-syntax.vim", + url = "https://github.com/squk/java-syntax.vim" + }, + ["kotlin-vim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/kotlin-vim", + url = "https://github.com/udalov/kotlin-vim" + }, + ["lsp_lines.nvim"] = { + config = { 'require("lsp_lines").setup()' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lsp_lines.nvim", + url = "https://github.com/ErichDonGubler/lsp_lines.nvim" + }, + ["lspkind.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lspkind.nvim", + url = "https://github.com/onsails/lspkind.nvim" + }, + ["lualine.nvim"] = { + config = { ' require("lualine_config") ' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lualine.nvim", + url = "https://github.com/nvim-lualine/lualine.nvim" + }, + ["mkdir.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/mkdir.nvim", + url = "https://github.com/jghauser/mkdir.nvim" + }, + neogit = { + commands = { "Neogit" }, + config = { "require('config.neogit')" }, + loaded = false, + needs_bufread = true, + only_cond = false, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/neogit", + url = "https://github.com/TimUntersberger/neogit" + }, + nerdcommenter = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nerdcommenter", + url = "https://github.com/scrooloose/nerdcommenter" + }, + nerdtree = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nerdtree", + url = "https://github.com/preservim/nerdtree" + }, + ["nvim-cmp"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-cmp", + url = "https://github.com/hrsh7th/nvim-cmp" + }, + ["nvim-lightbulb"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lightbulb", + url = "https://github.com/kosayoda/nvim-lightbulb" + }, + ["nvim-lsp-installer"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer", + url = "https://github.com/williamboman/nvim-lsp-installer" + }, + ["nvim-lspconfig"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", + url = "https://github.com/neovim/nvim-lspconfig" + }, + ["nvim-notify"] = { + config = { ' require("notify_config") ' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-notify", + url = "https://github.com/rcarriga/nvim-notify" + }, + ["nvim-scrollbar"] = { + config = { 'require("scrollbar").setup()' }, + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-scrollbar", + url = "https://github.com/petertriho/nvim-scrollbar" + }, + ["nvim-treesitter"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-treesitter", + url = "https://github.com/nvim-treesitter/nvim-treesitter" + }, + ["nvim-web-devicons"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", + url = "https://github.com/kyazdani42/nvim-web-devicons" + }, + ["packer.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/packer.nvim", + url = "https://github.com/wbthomason/packer.nvim" + }, + ["plenary.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/plenary.nvim", + url = "https://github.com/nvim-lua/plenary.nvim" + }, + ["registers.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/registers.nvim", + url = "https://github.com/tversteeg/registers.nvim" + }, + ["symbols-outline.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim", + url = "https://github.com/simrat39/symbols-outline.nvim" + }, + ["telescope-codesearch.nvim"] = { + cond = { true }, + loaded = false, + needs_bufread = false, + only_cond = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/telescope-codesearch.nvim", + url = "sso://googler@user/vintharas/telescope-codesearch.nvim" + }, + ["telescope.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/telescope.nvim", + url = "https://github.com/nvim-telescope/telescope.nvim" + }, + ["trouble.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/trouble.nvim", + url = "https://github.com/folke/trouble.nvim" + }, + undotree = { + commands = { "UndotreeToggle" }, + config = { "vim.g.undotree_SetFocusWhenToggle = 1" }, + loaded = false, + needs_bufread = false, + only_cond = false, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/undotree", + url = "https://github.com/mbbill/undotree" + }, + ["vim-better-whitespace"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-better-whitespace", + url = "https://github.com/ntpeters/vim-better-whitespace" + }, + ["vim-case-convert"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-case-convert", + url = "https://github.com/chiedo/vim-case-convert" + }, + ["vim-indent-guides"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-indent-guides", + url = "https://github.com/nathanaelkane/vim-indent-guides" + }, + ["vim-matchup"] = { + after_files = { "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/vim-matchup/after/plugin/matchit.vim" }, + loaded = false, + needs_bufread = true, + only_cond = false, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/vim-matchup", + url = "https://github.com/andymass/vim-matchup" + }, + ["vim-nerdtree-syntax-highlight"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-nerdtree-syntax-highlight", + url = "https://github.com/tiagofumo/vim-nerdtree-syntax-highlight" + }, + ["vim-obsession"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-obsession", + url = "https://github.com/tpope/vim-obsession" + }, + ["vim-quantum"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-quantum", + url = "https://github.com/squk/vim-quantum" + }, + ["vim-ripgrep"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-ripgrep", + url = "https://github.com/jremmen/vim-ripgrep" + }, + ["vim-searchindex"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-searchindex", + url = "https://github.com/google/vim-searchindex" + }, + ["vim-signify"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-signify", + url = "https://github.com/mhinz/vim-signify" + }, + ["vim-surround"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-surround", + url = "https://github.com/tpope/vim-surround" + }, + ["vim-titlecase"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-titlecase", + url = "https://github.com/christoomey/vim-titlecase" + }, + ["vim-tmux"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux", + url = "https://github.com/tmux-plugins/vim-tmux" + }, + ["vim-tmux-focus-events"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-focus-events", + url = "https://github.com/tmux-plugins/vim-tmux-focus-events" + }, + ["vim-tmux-navigator"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", + url = "https://github.com/christoomey/vim-tmux-navigator" + }, + ["vim-tmux-syntax"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-syntax", + url = "https://github.com/whatyouhide/vim-tmux-syntax" + }, + ["vim-vsnip"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-vsnip", + url = "https://github.com/hrsh7th/vim-vsnip" + }, + ["vim-windowswap"] = { + loaded = true, + needs_bufread = false, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/vim-windowswap", + url = "https://github.com/wesQ3/vim-windowswap" + }, + vimux = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vimux", + url = "https://github.com/preservim/vimux" + }, + ["zettelkasten.nvim"] = { + loaded = true, + path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/zettelkasten.nvim", + url = "https://github.com/Furkanzmc/zettelkasten.nvim" + } +} + +time([[Defining packer_plugins]], false) +-- Setup for: vim-windowswap +time([[Setup for vim-windowswap]], true) + vim.g.windowswap_map_keys = 0 +time([[Setup for vim-windowswap]], false) +time([[packadd for vim-windowswap]], true) +vim.cmd [[packadd vim-windowswap]] +time([[packadd for vim-windowswap]], false) +-- Config for: critique +time([[Config for critique]], true) + require("critique").setup() +time([[Config for critique]], false) +-- Config for: fidget.nvim +time([[Config for fidget.nvim]], true) +require("fidget").setup() +time([[Config for fidget.nvim]], false) +-- Config for: lualine.nvim +time([[Config for lualine.nvim]], true) + require("lualine_config") +time([[Config for lualine.nvim]], false) +-- Config for: auto-session +time([[Config for auto-session]], true) +try_loadstring("\27LJ\2\n²\1\0\0\a\0\t\1\0146\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0006\4\5\0009\4\6\4'\6\a\0B\4\2\0?\4\0\0=\3\b\2B\0\2\1K\0\1\0\31auto_session_suppress_dirs\tHOME\vgetenv\aos\1\4\0\0\a~/\16~/Downloads\6/\1\0\1\14log_level\nerror\nsetup\17auto-session\frequire\t€€À™\4\0", "config", "auto-session") +time([[Config for auto-session]], false) +-- Config for: nvim-scrollbar +time([[Config for nvim-scrollbar]], true) +require("scrollbar").setup() +time([[Config for nvim-scrollbar]], false) +-- Config for: git-conflict.nvim +time([[Config for git-conflict.nvim]], true) +require('git-conflict').setup() +time([[Config for git-conflict.nvim]], false) +-- Config for: catppuccin +time([[Config for catppuccin]], true) +require("catppuccin-config") +time([[Config for catppuccin]], false) +-- Config for: lsp_lines.nvim +time([[Config for lsp_lines.nvim]], true) +require("lsp_lines").setup() +time([[Config for lsp_lines.nvim]], false) +-- Config for: nvim-notify +time([[Config for nvim-notify]], true) + require("notify_config") +time([[Config for nvim-notify]], false) +-- Conditional loads +time([[Conditional loading of telescope-codesearch.nvim]], true) + require("packer.load")({"telescope-codesearch.nvim"}, {}, _G.packer_plugins) +time([[Conditional loading of telescope-codesearch.nvim]], false) +time([[Conditional loading of google-comments]], true) + require("packer.load")({"google-comments"}, {}, _G.packer_plugins) +time([[Conditional loading of google-comments]], false) +-- Load plugins in order defined by `after` +time([[Sequenced loading]], true) +vim.cmd [[ packadd LuaSnip ]] +vim.cmd [[ packadd cmp_luasnip ]] +time([[Sequenced loading]], false) + +-- Command lazy-loads +time([[Defining lazy-load commands]], true) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Neogit lua require("packer.load")({'neogit'}, { cmd = "Neogit", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeToggle lua require("packer.load")({'undotree'}, { cmd = "UndotreeToggle", l1 = , l2 = , bang = , args = , mods = "" }, _G.packer_plugins)]]) +time([[Defining lazy-load commands]], false) + +vim.cmd [[augroup packer_load_aucmds]] +vim.cmd [[au!]] + -- Event lazy-loads +time([[Defining lazy-load event autocommands]], true) +vim.cmd [[au User ActuallyEditing ++once lua require("packer.load")({'gitsigns.nvim'}, { event = "User ActuallyEditing" }, _G.packer_plugins)]] +vim.cmd [[au VimEnter * ++once lua require("packer.load")({'vim-matchup'}, { event = "VimEnter *" }, _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 + vim.cmd("doautocmd BufRead") +end +_G._packer.needs_bufread = false + +if should_profile then save_profiles() end + +end) + +if not no_errors then + error_msg = error_msg:gsub('"', '\\"') + vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None') +end diff --git a/vim/.vim/after/syntax/markdown.vim b/vim/.vim/after/syntax/markdown.vim new file mode 100644 index 0000000..28abab1 --- /dev/null +++ b/vim/.vim/after/syntax/markdown.vim @@ -0,0 +1,11 @@ +" rainbow markdown +highlight h1 guifg=#50fa7b gui=bold +highlight _h1 guifg=#50fa7b gui=nocombine +highlight h2 guifg=#ff79c6 gui=bold +highlight _h2 guifg=#ff79c6 gui=nocombine +highlight h3 guifg=#ffb86c gui=bold +highlight _h3 guifg=#ffb86c gui=nocombine +highlight h4 guifg=#8be9fd gui=bold +highlight _h4 guifg=#8be9fd gui=nocombine +highlight h5 guifg=#f1fa8c gui=bold +highlight _h5 guifg=#f1fa8c gui=nocombine diff --git a/vim/.vim/lua/plugins.lua b/vim/.vim/lua/plugins.lua index 280c9d9..ac6f3a7 100644 --- a/vim/.vim/lua/plugins.lua +++ b/vim/.vim/lua/plugins.lua @@ -29,7 +29,9 @@ require('packer').startup(function(use) } use 'nvim-lua/plenary.nvim' - use 'vimwiki/vimwiki' + -- use 'vimwiki/vimwiki' + -- use 'michal-h21/vim-zettel' + use 'Furkanzmc/zettelkasten.nvim' use 'google/vim-searchindex' diff --git a/vim/.vim/lua/treesitter.lua b/vim/.vim/lua/treesitter.lua index 7d59a41..886d0a6 100644 --- a/vim/.vim/lua/treesitter.lua +++ b/vim/.vim/lua/treesitter.lua @@ -1,15 +1,31 @@ require('nvim-treesitter.configs').setup { - -- A list of parser names, or "all" - -- ensure_installed = { "c", "lua", "vim", "java", "kotlin"}, - ensure_installed = "all", + -- A list of parser names, or "all" + -- ensure_installed = { "c", "lua", "vim", "java", "kotlin"}, + ensure_installed = "all", - -- Install parsers synchronously (only applied to `ensure_installed`) - sync_install = false, + -- Install parsers synchronously (only applied to `ensure_installed`) + sync_install = false, - highlight = { - -- `false` will disable the whole extension - enable = true, + highlight = { + -- `false` will disable the whole extension + enable = true, - disable = {"java"}, - }, + -- rainbow markdown + custom_captures = { + ["h1"] = "h1", + ["_h1"] = "_h1", + ["h2"] = "h2", + ["_h2"] = "_h2", + ["h3"] = "h3", + ["_h3"] = "_h3", + ["h4"] = "h4", + ["_h4"] = "_h4", + ["h5"] = "h5", + ["_h5"] = "_h5", + }, + indent = { + enable = true + }, + disable = {"java"}, + }, } diff --git a/zsh/.bash_profile.google b/zsh/.bash_profile.google index 7570f15..e8e1390 100644 --- a/zsh/.bash_profile.google +++ b/zsh/.bash_profile.google @@ -61,7 +61,8 @@ alias safergcp=/google/bin/releases/safer-gcp/tools/safergcp alias add_deps_to_usages='/google/src/head/depot/google3/apps/framework/tools/add_deps_to_usages.sh' alias plxutil='/google/data/ro/teams/plx/plxutil' export HGSHORT_CMDS="cat head tail mv cp rm chmod g4 diff merge patch meld trim less more" -alias vim="source $HGSHORT_DIR/tobashargs.sh nvim || nvim" +export HGSHORT_DIR='/google/src/head/depot/google3/experimental/fig_contrib/hgshort' # default +alias vim="source $HGSHORT_DIR/tobashargs.sh nvim" source /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgd-local.sh 2>/dev/null # just to get HGSHORT_DIR in env alias hgd='source /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgd-local.sh' alias builddoctor=/google/bin/releases/build-doctor/builddoctor