ughghghghghghghg
This commit is contained in:
@ -17,12 +17,6 @@ local plugins = {
|
|||||||
-- this entry tells lazy.nvim to load the list of of *.lua files from plugins/
|
-- this entry tells lazy.nvim to load the list of of *.lua files from plugins/
|
||||||
{ import = "plugins" },
|
{ import = "plugins" },
|
||||||
}
|
}
|
||||||
if use_google() then
|
|
||||||
table.insert(plugins, {
|
|
||||||
url = "sso://user/fentanes/nvgoog",
|
|
||||||
import = "nvgoog.default",
|
|
||||||
})
|
|
||||||
end
|
|
||||||
require("lazy").setup(plugins)
|
require("lazy").setup(plugins)
|
||||||
require("config.clipboard")
|
require("config.clipboard")
|
||||||
require("config.zip")
|
require("config.zip")
|
||||||
|
@ -80,12 +80,12 @@ return {
|
|||||||
cmp.setup.filetype("txt", {
|
cmp.setup.filetype("txt", {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||||
cmp.setup.cmdline({ "/", "?" }, {
|
cmp.setup.cmdline({ "/", "?" }, {
|
||||||
mapping = cmp.mapping.preset.cmdline(),
|
mapping = cmp.mapping.preset.cmdline(),
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{ name = "treesitter" },
|
{ name = "treesitter" },
|
||||||
|
{ name = "buffer" },
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -6,16 +6,16 @@ end
|
|||||||
|
|
||||||
vim.opt.rtp:append("/google/src/head/depot/google3/experimental/users/fentanes/nvgoog/")
|
vim.opt.rtp:append("/google/src/head/depot/google3/experimental/users/fentanes/nvgoog/")
|
||||||
|
|
||||||
-- local glug = require("nvgoog.google.util.glug").glug
|
|
||||||
-- local glugOpts = require("nvgoog.google.util.glug").glugOpts
|
|
||||||
local glug = require("glug").glug
|
local glug = require("glug").glug
|
||||||
local glugOpts = require("glug").glugOpts
|
local glugOpts = require("glug").glugOpts
|
||||||
|
local superlazy = require("nvgoog.util.superlazy")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ url = "sso://user/fentanes/nvgoog" },
|
-- { url = "sso://user/fentanes/nvgoog" },
|
||||||
-- Prevent long sessions from losing cwd
|
-- Prevent long sessions from losing cwd
|
||||||
-- Load google paths like //google/* with `gf`
|
-- Load google paths like //google/* with `gf`
|
||||||
{ import = "nvgoog.google.misc" },
|
-- { import = "nvgoog.google.misc" },
|
||||||
|
{ import = "nvgoog.google.format" },
|
||||||
-- maktaba is required by all google plugins
|
-- maktaba is required by all google plugins
|
||||||
glug("maktaba", {
|
glug("maktaba", {
|
||||||
lazy = true,
|
lazy = true,
|
||||||
@ -24,9 +24,6 @@ return {
|
|||||||
vim.cmd("source /usr/share/vim/google/glug/bootstrap.vim")
|
vim.cmd("source /usr/share/vim/google/glug/bootstrap.vim")
|
||||||
end,
|
end,
|
||||||
}),
|
}),
|
||||||
glug("logmsgs", {
|
|
||||||
event = "VeryLazy",
|
|
||||||
}),
|
|
||||||
glug("googler", {
|
glug("googler", {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
}),
|
}),
|
||||||
@ -41,9 +38,6 @@ return {
|
|||||||
-- Add support for google filetypes
|
-- Add support for google filetypes
|
||||||
glug("google-filetypes", { event = { "BufReadPre", "BufNewFile" }, dependencies = {} }),
|
glug("google-filetypes", { event = { "BufReadPre", "BufNewFile" }, dependencies = {} }),
|
||||||
|
|
||||||
-- Configures nvim to respect Google's coding style
|
|
||||||
-- glug("googlestyle", { event = { "BufRead", "BufNewFile" } }),
|
|
||||||
|
|
||||||
glug("add_usings"),
|
glug("add_usings"),
|
||||||
-- Autogens boilerplate when creating new files
|
-- Autogens boilerplate when creating new files
|
||||||
glug("autogen", {
|
glug("autogen", {
|
||||||
@ -51,6 +45,17 @@ return {
|
|||||||
}),
|
}),
|
||||||
-- Adds G4 support to the vcscommand plugin
|
-- Adds G4 support to the vcscommand plugin
|
||||||
glug("googlepaths"),
|
glug("googlepaths"),
|
||||||
|
-- Set up syntax, indent, and core settings for various filetypes
|
||||||
|
superlazy(glug("ft-cpp", { event = "BufRead,BufNewFile *.[ch],*.cc,*.cpp" })),
|
||||||
|
superlazy(glug("ft-go", { event = "BufRead,BufNewFile *.go" })),
|
||||||
|
superlazy(glug("ft-java", { event = "BufRead,BufNewFile *.java" })),
|
||||||
|
superlazy(glug("ft-javascript", { event = "BufRead,BufNewFile *.js,*.jsx" })),
|
||||||
|
superlazy(glug("ft-kotlin", { event = "BufRead,BufNewFile *.kt,*.kts" })),
|
||||||
|
superlazy(glug("ft-python", { event = "BufRead,BufNewFile *.py" })),
|
||||||
|
|
||||||
|
-- Configures nvim to respect Google's coding style
|
||||||
|
superlazy(glug("googlestyle", { event = { "BufRead", "BufNewFile" } })),
|
||||||
|
|
||||||
glug("ft-soy"),
|
glug("ft-soy"),
|
||||||
glug("ft-gss"),
|
glug("ft-gss"),
|
||||||
glug("ft-proto"),
|
glug("ft-proto"),
|
||||||
@ -326,80 +331,4 @@ return {
|
|||||||
require("hg").setup()
|
require("hg").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
{
|
|
||||||
"sakal/neoblaze.nvim",
|
|
||||||
url = "sso://user/sakal/neoblaze.nvim",
|
|
||||||
lazy = false, -- Can be disabled if you only use keybinds.
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>B",
|
|
||||||
desc = "Blaze",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>Bb",
|
|
||||||
function()
|
|
||||||
require("neoblaze").build()
|
|
||||||
end,
|
|
||||||
desc = "Build",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>Bt",
|
|
||||||
function()
|
|
||||||
require("neoblaze").test()
|
|
||||||
end,
|
|
||||||
desc = "Test",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>Br",
|
|
||||||
function()
|
|
||||||
require("neoblaze").run()
|
|
||||||
end,
|
|
||||||
desc = "Run",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>Bs",
|
|
||||||
function()
|
|
||||||
require("neoblaze").update_goldens()
|
|
||||||
end,
|
|
||||||
desc = "Update goldens",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>BB",
|
|
||||||
function()
|
|
||||||
require("neoblaze").build({ blaze_exe = "iblaze" })
|
|
||||||
end,
|
|
||||||
desc = "Build (iblaze)",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>BT",
|
|
||||||
function()
|
|
||||||
require("neoblaze").test({ blaze_exe = "iblaze" })
|
|
||||||
end,
|
|
||||||
desc = "Test (iblaze)",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>BR",
|
|
||||||
function()
|
|
||||||
require("neoblaze").run({ blaze_exe = "iblaze" })
|
|
||||||
end,
|
|
||||||
desc = "Run (iblaze)",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>Be",
|
|
||||||
function()
|
|
||||||
require("neoblaze").retry()
|
|
||||||
end,
|
|
||||||
desc = "Retry",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>By",
|
|
||||||
function()
|
|
||||||
require("neoblaze").yank()
|
|
||||||
end,
|
|
||||||
desc = "Yank target to system clipboard",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -1,31 +1,6 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
|
||||||
"Shatur/neovim-ayu",
|
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
|
||||||
lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
|
|
||||||
cond = use_google(),
|
|
||||||
config = function()
|
|
||||||
require("ayu").setup({
|
|
||||||
mirage = false, -- Set to `true` to use `mirage` variant instead of `dark` for dark background.
|
|
||||||
overrides = {}, -- A dictionary of group names, each associated with a dictionary of parameters (`bg`, `fg`, `sp` and `style`) and colors in hex.
|
|
||||||
-- vim.cmd("colorscheme ayu"),
|
|
||||||
-- vim.cmd("colorscheme ayu-mirage"),
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ramojus/mellifluous.nvim",
|
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
|
||||||
lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
|
|
||||||
cond = use_google(),
|
|
||||||
config = function()
|
|
||||||
require("mellifluous").setup({ --[[...]]
|
|
||||||
}) -- optional, see configuration section.
|
|
||||||
-- vim.cmd("colorscheme mellifluous")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"ful1e5/onedark.nvim",
|
"ful1e5/onedark.nvim",
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
|
Reference in New Issue
Block a user