better google specific loading

This commit is contained in:
Christian Nieves
2022-12-02 15:03:38 -06:00
parent 2ee005922e
commit 26017e78bd
5 changed files with 149 additions and 143 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
packer_compiled.lua

View File

@ -49,8 +49,8 @@ local function save_profiles(threshold)
end end
time([[Luarocks path setup]], true) 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 package_path_str = "/Users/christian/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/christian/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/christian/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/christian/.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" local install_cpath_pattern = "/Users/christian/.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 if not string.find(package.path, package_path_str, 1, true) then
package.path = package.path .. ';' .. package_path_str package.path = package.path .. ';' .. package_path_str
end end
@ -76,110 +76,104 @@ time([[Defining packer_plugins]], true)
_G.packer_plugins = { _G.packer_plugins = {
LuaSnip = { LuaSnip = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/LuaSnip", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/LuaSnip",
url = "https://github.com/L3MON4D3/LuaSnip" url = "https://github.com/L3MON4D3/LuaSnip"
}, },
MatchTagAlways = { MatchTagAlways = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/MatchTagAlways", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/MatchTagAlways",
url = "https://github.com/Valloric/MatchTagAlways" url = "https://github.com/Valloric/MatchTagAlways"
}, },
["asyncrun.vim"] = { ["asyncrun.vim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/asyncrun.vim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/asyncrun.vim",
url = "https://github.com/skywind3000/asyncrun.vim" url = "https://github.com/skywind3000/asyncrun.vim"
}, },
["auto-session"] = { ["auto-session"] = {
config = { "\27LJ\2\n<EFBFBD>\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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\4\0" }, config = { "\27LJ\2\n<EFBFBD>\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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\4\0" },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/auto-session", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/auto-session",
url = "https://github.com/rmagatti/auto-session" url = "https://github.com/rmagatti/auto-session"
}, },
catppuccin = { catppuccin = {
config = { 'require("catppuccin-config")' }, config = { 'require("catppuccin-config")' },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/catppuccin", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/catppuccin",
url = "https://github.com/catppuccin/nvim" url = "https://github.com/catppuccin/nvim"
}, },
["cmp-buffer"] = { ["cmp-buffer"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-buffer", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-buffer",
url = "https://github.com/hrsh7th/cmp-buffer" url = "https://github.com/hrsh7th/cmp-buffer"
}, },
["cmp-cmdline"] = { ["cmp-cmdline"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-cmdline", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
url = "https://github.com/hrsh7th/cmp-cmdline" url = "https://github.com/hrsh7th/cmp-cmdline"
}, },
["cmp-nvim-lsp"] = { ["cmp-nvim-lsp"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp", path = "/Users/christian/.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-lsp-document-symbol"] = { ["cmp-nvim-lsp-document-symbol"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-document-symbol", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-document-symbol",
url = "https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol" url = "https://github.com/hrsh7th/cmp-nvim-lsp-document-symbol"
}, },
["cmp-nvim-lsp-signature-help"] = { ["cmp-nvim-lsp-signature-help"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help" url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"
}, },
["cmp-nvim-lua"] = { ["cmp-nvim-lua"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
url = "https://github.com/hrsh7th/cmp-nvim-lua" url = "https://github.com/hrsh7th/cmp-nvim-lua"
}, },
["cmp-path"] = { ["cmp-path"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-path", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-path",
url = "https://github.com/hrsh7th/cmp-path" url = "https://github.com/hrsh7th/cmp-path"
}, },
["cmp-spell"] = { ["cmp-spell"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-spell", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-spell",
url = "https://github.com/f3fora/cmp-spell" url = "https://github.com/f3fora/cmp-spell"
}, },
["cmp-under-comparator"] = { ["cmp-under-comparator"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-under-comparator", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-under-comparator",
url = "https://github.com/lukas-reineke/cmp-under-comparator" url = "https://github.com/lukas-reineke/cmp-under-comparator"
}, },
["cmp-vsnip"] = { ["cmp-vsnip"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-vsnip", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/cmp-vsnip",
url = "https://github.com/hrsh7th/cmp-vsnip" url = "https://github.com/hrsh7th/cmp-vsnip"
}, },
cmp_luasnip = { cmp_luasnip = {
after_files = { "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" }, after_files = { "/Users/christian/.local/share/nvim/site/pack/packer/opt/cmp_luasnip/after/plugin/cmp_luasnip.lua" },
load_after = {}, load_after = {},
loaded = true, loaded = true,
needs_bufread = false, needs_bufread = false,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/cmp_luasnip", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/cmp_luasnip",
url = "https://github.com/saadparwaiz1/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"] = { ["fidget.nvim"] = {
config = { 'require("fidget").setup()' }, config = { 'require("fidget").setup()' },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/fidget.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/fidget.nvim",
url = "https://github.com/j-hui/fidget.nvim" url = "https://github.com/j-hui/fidget.nvim"
}, },
["fzf.vim"] = { ["fzf.vim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/fzf.vim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/fzf.vim",
url = "https://github.com/junegunn/fzf.vim" url = "https://github.com/junegunn/fzf.vim"
}, },
["git-conflict.nvim"] = { ["git-conflict.nvim"] = {
config = { "require('git-conflict').setup()" }, config = { "require('git-conflict').setup()" },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/git-conflict.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/git-conflict.nvim",
url = "https://github.com/akinsho/git-conflict.nvim" url = "https://github.com/akinsho/git-conflict.nvim"
}, },
["gitsigns.nvim"] = { ["gitsigns.nvim"] = {
@ -187,48 +181,48 @@ _G.packer_plugins = {
loaded = false, loaded = false,
needs_bufread = false, needs_bufread = false,
only_cond = false, only_cond = false,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/gitsigns.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/gitsigns.nvim",
url = "https://github.com/lewis6991/gitsigns.nvim" url = "https://github.com/lewis6991/gitsigns.nvim"
}, },
["google-comments"] = { ["google-comments"] = {
cond = { true }, cond = { false },
config = { ' require("google_comments") ' }, config = { ' require("google_comments") ' },
loaded = false, loaded = false,
needs_bufread = false, needs_bufread = false,
only_cond = true, only_cond = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/google-comments", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/google-comments",
url = "sso://googler@user/chmnchiang/google-comments" url = "sso://googler@user/chmnchiang/google-comments"
}, },
["java-syntax.vim"] = { ["java-syntax.vim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/java-syntax.vim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/java-syntax.vim",
url = "https://github.com/squk/java-syntax.vim" url = "https://github.com/squk/java-syntax.vim"
}, },
["kotlin-vim"] = { ["kotlin-vim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/kotlin-vim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/kotlin-vim",
url = "https://github.com/udalov/kotlin-vim" url = "https://github.com/udalov/kotlin-vim"
}, },
["lsp_lines.nvim"] = { ["lsp_lines.nvim"] = {
config = { 'require("lsp_lines").setup()' }, config = { 'require("lsp_lines").setup()' },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lsp_lines.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/lsp_lines.nvim",
url = "https://github.com/ErichDonGubler/lsp_lines.nvim" url = "https://github.com/ErichDonGubler/lsp_lines.nvim"
}, },
["lspkind.nvim"] = { ["lspkind.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lspkind.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
url = "https://github.com/onsails/lspkind.nvim" url = "https://github.com/onsails/lspkind.nvim"
}, },
["lualine.nvim"] = { ["lualine.nvim"] = {
config = { ' require("lualine_config") ' }, config = { ' require("lualine_config") ' },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lualine.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/lualine.nvim",
url = "https://github.com/nvim-lualine/lualine.nvim" url = "https://github.com/nvim-lualine/lualine.nvim"
}, },
["mkdir.nvim"] = { ["mkdir.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/mkdir.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/mkdir.nvim",
url = "https://github.com/jghauser/mkdir.nvim" url = "https://github.com/jghauser/mkdir.nvim"
}, },
neogit = { neogit = {
@ -237,97 +231,97 @@ _G.packer_plugins = {
loaded = false, loaded = false,
needs_bufread = true, needs_bufread = true,
only_cond = false, only_cond = false,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/neogit", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/neogit",
url = "https://github.com/TimUntersberger/neogit" url = "https://github.com/TimUntersberger/neogit"
}, },
nerdcommenter = { nerdcommenter = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nerdcommenter", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nerdcommenter",
url = "https://github.com/scrooloose/nerdcommenter" url = "https://github.com/scrooloose/nerdcommenter"
}, },
nerdtree = { nerdtree = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nerdtree", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nerdtree",
url = "https://github.com/preservim/nerdtree" url = "https://github.com/preservim/nerdtree"
}, },
["nvim-cmp"] = { ["nvim-cmp"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-cmp", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-cmp",
url = "https://github.com/hrsh7th/nvim-cmp" url = "https://github.com/hrsh7th/nvim-cmp"
}, },
["nvim-lightbulb"] = { ["nvim-lightbulb"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lightbulb", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-lightbulb",
url = "https://github.com/kosayoda/nvim-lightbulb" url = "https://github.com/kosayoda/nvim-lightbulb"
}, },
["nvim-lsp-installer"] = { ["nvim-lsp-installer"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-lsp-installer",
url = "https://github.com/williamboman/nvim-lsp-installer" url = "https://github.com/williamboman/nvim-lsp-installer"
}, },
["nvim-lspconfig"] = { ["nvim-lspconfig"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lspconfig", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
url = "https://github.com/neovim/nvim-lspconfig" url = "https://github.com/neovim/nvim-lspconfig"
}, },
["nvim-notify"] = { ["nvim-notify"] = {
config = { ' require("notify_config") ' }, config = { ' require("notify_config") ' },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-notify", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-notify",
url = "https://github.com/rcarriga/nvim-notify" url = "https://github.com/rcarriga/nvim-notify"
}, },
["nvim-scrollbar"] = { ["nvim-scrollbar"] = {
config = { 'require("scrollbar").setup()' }, config = { 'require("scrollbar").setup()' },
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-scrollbar", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-scrollbar",
url = "https://github.com/petertriho/nvim-scrollbar" url = "https://github.com/petertriho/nvim-scrollbar"
}, },
["nvim-treesitter"] = { ["nvim-treesitter"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-treesitter", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
url = "https://github.com/nvim-treesitter/nvim-treesitter" url = "https://github.com/nvim-treesitter/nvim-treesitter"
}, },
["nvim-web-devicons"] = { ["nvim-web-devicons"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-web-devicons", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
url = "https://github.com/kyazdani42/nvim-web-devicons" url = "https://github.com/kyazdani42/nvim-web-devicons"
}, },
["packer.nvim"] = { ["packer.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/packer.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/packer.nvim",
url = "https://github.com/wbthomason/packer.nvim" url = "https://github.com/wbthomason/packer.nvim"
}, },
["plenary.nvim"] = { ["plenary.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/plenary.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/plenary.nvim",
url = "https://github.com/nvim-lua/plenary.nvim" url = "https://github.com/nvim-lua/plenary.nvim"
}, },
["registers.nvim"] = { ["registers.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/registers.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/registers.nvim",
url = "https://github.com/tversteeg/registers.nvim" url = "https://github.com/tversteeg/registers.nvim"
}, },
["symbols-outline.nvim"] = { ["symbols-outline.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
url = "https://github.com/simrat39/symbols-outline.nvim" url = "https://github.com/simrat39/symbols-outline.nvim"
}, },
["telescope-codesearch.nvim"] = { ["telescope-codesearch.nvim"] = {
cond = { true }, cond = { false },
loaded = false, loaded = false,
needs_bufread = false, needs_bufread = false,
only_cond = true, only_cond = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/telescope-codesearch.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/telescope-codesearch.nvim",
url = "sso://googler@user/vintharas/telescope-codesearch.nvim" url = "sso://googler@user/vintharas/telescope-codesearch.nvim"
}, },
["telescope.nvim"] = { ["telescope.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/telescope.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/telescope.nvim",
url = "https://github.com/nvim-telescope/telescope.nvim" url = "https://github.com/nvim-telescope/telescope.nvim"
}, },
["trouble.nvim"] = { ["trouble.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/trouble.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/trouble.nvim",
url = "https://github.com/folke/trouble.nvim" url = "https://github.com/folke/trouble.nvim"
}, },
undotree = { undotree = {
@ -336,111 +330,111 @@ _G.packer_plugins = {
loaded = false, loaded = false,
needs_bufread = false, needs_bufread = false,
only_cond = false, only_cond = false,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/undotree", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/undotree",
url = "https://github.com/mbbill/undotree" url = "https://github.com/mbbill/undotree"
}, },
["vim-better-whitespace"] = { ["vim-better-whitespace"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-better-whitespace", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-better-whitespace",
url = "https://github.com/ntpeters/vim-better-whitespace" url = "https://github.com/ntpeters/vim-better-whitespace"
}, },
["vim-case-convert"] = { ["vim-case-convert"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-case-convert", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-case-convert",
url = "https://github.com/chiedo/vim-case-convert" url = "https://github.com/chiedo/vim-case-convert"
}, },
["vim-indent-guides"] = { ["vim-indent-guides"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-indent-guides", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-indent-guides",
url = "https://github.com/nathanaelkane/vim-indent-guides" url = "https://github.com/nathanaelkane/vim-indent-guides"
}, },
["vim-matchup"] = { ["vim-matchup"] = {
after_files = { "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/vim-matchup/after/plugin/matchit.vim" }, after_files = { "/Users/christian/.local/share/nvim/site/pack/packer/opt/vim-matchup/after/plugin/matchit.vim" },
loaded = false, loaded = false,
needs_bufread = true, needs_bufread = true,
only_cond = false, only_cond = false,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/vim-matchup", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/vim-matchup",
url = "https://github.com/andymass/vim-matchup" url = "https://github.com/andymass/vim-matchup"
}, },
["vim-nerdtree-syntax-highlight"] = { ["vim-nerdtree-syntax-highlight"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-nerdtree-syntax-highlight", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-nerdtree-syntax-highlight",
url = "https://github.com/tiagofumo/vim-nerdtree-syntax-highlight" url = "https://github.com/tiagofumo/vim-nerdtree-syntax-highlight"
}, },
["vim-obsession"] = { ["vim-obsession"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-obsession", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-obsession",
url = "https://github.com/tpope/vim-obsession" url = "https://github.com/tpope/vim-obsession"
}, },
["vim-quantum"] = { ["vim-quantum"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-quantum", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-quantum",
url = "https://github.com/squk/vim-quantum" url = "https://github.com/squk/vim-quantum"
}, },
["vim-ripgrep"] = { ["vim-ripgrep"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-ripgrep", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-ripgrep",
url = "https://github.com/jremmen/vim-ripgrep" url = "https://github.com/jremmen/vim-ripgrep"
}, },
["vim-searchindex"] = { ["vim-searchindex"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-searchindex", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-searchindex",
url = "https://github.com/google/vim-searchindex" url = "https://github.com/google/vim-searchindex"
}, },
["vim-signify"] = { ["vim-signify"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-signify", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-signify",
url = "https://github.com/mhinz/vim-signify" url = "https://github.com/mhinz/vim-signify"
}, },
["vim-surround"] = { ["vim-surround"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-surround", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-surround",
url = "https://github.com/tpope/vim-surround" url = "https://github.com/tpope/vim-surround"
}, },
["vim-titlecase"] = { ["vim-titlecase"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-titlecase", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-titlecase",
url = "https://github.com/christoomey/vim-titlecase" url = "https://github.com/christoomey/vim-titlecase"
}, },
["vim-tmux"] = { ["vim-tmux"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-tmux",
url = "https://github.com/tmux-plugins/vim-tmux" url = "https://github.com/tmux-plugins/vim-tmux"
}, },
["vim-tmux-focus-events"] = { ["vim-tmux-focus-events"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-focus-events", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-tmux-focus-events",
url = "https://github.com/tmux-plugins/vim-tmux-focus-events" url = "https://github.com/tmux-plugins/vim-tmux-focus-events"
}, },
["vim-tmux-navigator"] = { ["vim-tmux-navigator"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator",
url = "https://github.com/christoomey/vim-tmux-navigator" url = "https://github.com/christoomey/vim-tmux-navigator"
}, },
["vim-tmux-syntax"] = { ["vim-tmux-syntax"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-syntax", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-tmux-syntax",
url = "https://github.com/whatyouhide/vim-tmux-syntax" url = "https://github.com/whatyouhide/vim-tmux-syntax"
}, },
["vim-vsnip"] = { ["vim-vsnip"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-vsnip", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vim-vsnip",
url = "https://github.com/hrsh7th/vim-vsnip" url = "https://github.com/hrsh7th/vim-vsnip"
}, },
["vim-windowswap"] = { ["vim-windowswap"] = {
loaded = true, loaded = true,
needs_bufread = false, needs_bufread = false,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/opt/vim-windowswap", path = "/Users/christian/.local/share/nvim/site/pack/packer/opt/vim-windowswap",
url = "https://github.com/wesQ3/vim-windowswap" url = "https://github.com/wesQ3/vim-windowswap"
}, },
vimux = { vimux = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vimux", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/vimux",
url = "https://github.com/preservim/vimux" url = "https://github.com/preservim/vimux"
}, },
["zettelkasten.nvim"] = { ["zettelkasten.nvim"] = {
loaded = true, loaded = true,
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/zettelkasten.nvim", path = "/Users/christian/.local/share/nvim/site/pack/packer/start/zettelkasten.nvim",
url = "https://github.com/Furkanzmc/zettelkasten.nvim" url = "https://github.com/Furkanzmc/zettelkasten.nvim"
} }
} }
@ -453,42 +447,38 @@ time([[Setup for vim-windowswap]], false)
time([[packadd for vim-windowswap]], true) time([[packadd for vim-windowswap]], true)
vim.cmd [[packadd vim-windowswap]] vim.cmd [[packadd vim-windowswap]]
time([[packadd for vim-windowswap]], false) 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<EFBFBD>\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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\4\0", "config", "auto-session")
time([[Config for auto-session]], false)
-- Config for: nvim-scrollbar -- Config for: nvim-scrollbar
time([[Config for nvim-scrollbar]], true) time([[Config for nvim-scrollbar]], true)
require("scrollbar").setup() require("scrollbar").setup()
time([[Config for nvim-scrollbar]], false) time([[Config for nvim-scrollbar]], false)
-- Config for: git-conflict.nvim -- Config for: lualine.nvim
time([[Config for git-conflict.nvim]], true) time([[Config for lualine.nvim]], true)
require('git-conflict').setup() require("lualine_config")
time([[Config for git-conflict.nvim]], false) time([[Config for lualine.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 -- Config for: nvim-notify
time([[Config for nvim-notify]], true) time([[Config for nvim-notify]], true)
require("notify_config") require("notify_config")
time([[Config for nvim-notify]], false) time([[Config for nvim-notify]], 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: lsp_lines.nvim
time([[Config for lsp_lines.nvim]], true)
require("lsp_lines").setup()
time([[Config for lsp_lines.nvim]], false)
-- Config for: auto-session
time([[Config for auto-session]], true)
try_loadstring("\27LJ\2\n<EFBFBD>\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<EFBFBD><EFBFBD><EFBFBD><EFBFBD>\4\0", "config", "auto-session")
time([[Config for auto-session]], false)
-- Config for: catppuccin
time([[Config for catppuccin]], true)
require("catppuccin-config")
time([[Config for catppuccin]], false)
-- Config for: fidget.nvim
time([[Config for fidget.nvim]], true)
require("fidget").setup()
time([[Config for fidget.nvim]], false)
-- Conditional loads -- Conditional loads
time([[Conditional loading of telescope-codesearch.nvim]], true) time([[Conditional loading of telescope-codesearch.nvim]], true)
require("packer.load")({"telescope-codesearch.nvim"}, {}, _G.packer_plugins) require("packer.load")({"telescope-codesearch.nvim"}, {}, _G.packer_plugins)

View File

@ -1,7 +1,9 @@
-- 1. Configure CiderLSP -- 1. Configure CiderLSP
local use_google = require("utils").use_google
local lspconfig = require("lspconfig") local lspconfig = require("lspconfig")
local configs = require("lspconfig.configs") local configs = require("lspconfig.configs")
local notify = require 'notify' local notify = require 'notify'
if use_google() then
configs.ciderlsp = { configs.ciderlsp = {
default_config = { default_config = {
cmd = { "/google/bin/releases/cider/ciderlsp/ciderlsp", "--tooltag=nvim-cmp", "--forward_sync_responses" }, cmd = { "/google/bin/releases/cider/ciderlsp/ciderlsp", "--tooltag=nvim-cmp", "--forward_sync_responses" },
@ -11,6 +13,7 @@ configs.ciderlsp = {
settings = {}, settings = {},
}, },
} }
end
local has_words_before = function() local has_words_before = function()
local line, col = unpack(vim.api.nvim_win_get_cursor(0)) local line, col = unpack(vim.api.nvim_win_get_cursor(0))
@ -48,6 +51,28 @@ cmp.setup.cmdline(':', {
}) })
}) })
local conditionalSources = {
{ name = "nvim_lua" },
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "vim_vsnip" },
{ name = 'nvim_lsp_signature_help' },
{ name = "buffer", keyword_length = 5 },
{
name = 'spell',
option = {
keep_all_entries = false,
enable_in_context = function()
return true
end,
},
},
}
if use_google() then
table.insert(conditionalSources, { name = 'nvim_ciderlsp', priority = 9 })
end
cmp.setup({ cmp.setup({
mapping = { mapping = {
["<C-d>"] = cmp.mapping.scroll_docs(-4), ["<C-d>"] = cmp.mapping.scroll_docs(-4),
@ -97,24 +122,7 @@ cmp.setup({
end), end),
}, },
sources = { sources = conditionalSources,
{ name = "nvim_lua" },
{ name = "nvim_lsp" },
{ name = "path" },
{ name = "vim_vsnip" },
{ name = 'nvim_lsp_signature_help' },
{ name = 'nvim_ciderlsp', priority = 9 },
{ name = "buffer", keyword_length = 5 },
{
name = 'spell',
option = {
keep_all_entries = false,
enable_in_context = function()
return true
end,
},
},
},
sorting = { sorting = {
comparators = { comparators = {
@ -257,7 +265,6 @@ end
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities()) local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
capabilities = require('cmp_nvim_ciderlsp').update_capabilities(capabilities)
capabilities['codeLens'] = {dynamicRegistration=false} capabilities['codeLens'] = {dynamicRegistration=false}
-- capabilities.workspace.codeLens = {refreshSupport=true} -- capabilities.workspace.codeLens = {refreshSupport=true}
-- capabilities.workspace.diagnostics = {refreshSupport=true} -- capabilities.workspace.diagnostics = {refreshSupport=true}
@ -274,12 +281,14 @@ capabilities.textDocument.publishDiagnostics={
dataSupport=true, dataSupport=true,
--layeredDiagnostics=true --layeredDiagnostics=true
} }
if use_google() then
capabilities = require('cmp_nvim_ciderlsp').update_capabilities(capabilities)
lspconfig.ciderlsp.setup({ lspconfig.ciderlsp.setup({
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,
handlers = cider_lsp_handlers, handlers = cider_lsp_handlers,
}) })
end
local runtime_path = vim.split(package.path, ";") local runtime_path = vim.split(package.path, ";")
table.insert(runtime_path, "lua/?.lua") table.insert(runtime_path, "lua/?.lua")

View File

@ -1,5 +1,6 @@
local fn = vim.fn local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim' local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
local use_google = require("utils").use_google
if fn.empty(fn.glob(install_path)) > 0 then if fn.empty(fn.glob(install_path)) > 0 then
packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path}) packer_bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.o.runtimepath = vim.fn.stdpath('data') .. '/site/pack/*/start/*,' .. vim.o.runtimepath vim.o.runtimepath = vim.fn.stdpath('data') .. '/site/pack/*/start/*,' .. vim.o.runtimepath
@ -13,7 +14,6 @@ augroup end
]]) ]])
local file_exists = require("utils").file_exists
require('packer').startup(function(use) require('packer').startup(function(use)
-- Packer can manage itself -- Packer can manage itself
@ -90,20 +90,22 @@ require('packer').startup(function(use)
use { use {
'sso://googler@user/vintharas/telescope-codesearch.nvim', 'sso://googler@user/vintharas/telescope-codesearch.nvim',
cond = file_exists(os.getenv("HOME").."/use_google"), cond = use_google(),
} }
use { use {
'sso://googler@user/chmnchiang/google-comments', 'sso://googler@user/chmnchiang/google-comments',
-- '/google/src/head/depot/google3/experimental/users/chmnchiang/neovim/google-comments', -- '/google/src/head/depot/google3/experimental/users/chmnchiang/neovim/google-comments',
-- '/google/src/cloud/cnieves/google-comments/google3/experimental/users/chmnchiang/neovim/google-comments', -- '/google/src/cloud/cnieves/google-comments/google3/experimental/users/chmnchiang/neovim/google-comments',
cond = file_exists(os.getenv("HOME").."/use_google"), cond = use_google(),
requires = {'rcarriga/nvim-notify', 'nvim-lua/plenary.nvim'}, requires = {'rcarriga/nvim-notify', 'nvim-lua/plenary.nvim'},
config = [[ require("google_comments") ]] config = [[ require("google_comments") ]]
} }
use { use {
'/google/src/cloud/cnieves/google-comments/google3/experimental/users/cnieves/neovim/critique', '/google/src/cloud/cnieves/google-comments/google3/experimental/users/cnieves/neovim/critique',
-- cond = file_exists(os.getenv("HOME").."/use_google"),
disable = not use_google(),
config = [[ require("critique").setup() ]] config = [[ require("critique").setup() ]]
} }

View File

@ -8,6 +8,10 @@ function M.map(mode, lhs, rhs, opts)
vim.api.nvim_set_keymap(mode, lhs, rhs, options) vim.api.nvim_set_keymap(mode, lhs, rhs, options)
end end
function M.use_google()
return M.file_exists(os.getenv("HOME").."/use_google")
end
function M.file_exists(name) function M.file_exists(name)
local f=io.open(name,"r") local f=io.open(name,"r")
if f~=nil then io.close(f) return true else return false end if f~=nil then io.close(f) return true else return false end