config
This commit is contained in:
@ -136,6 +136,11 @@ _G.packer_plugins = {
|
|||||||
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-path",
|
path = "/usr/local/google/home/cnieves/.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"] = {
|
||||||
|
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"] = {
|
["cmp-under-comparator"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-under-comparator",
|
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-under-comparator",
|
||||||
@ -201,6 +206,7 @@ _G.packer_plugins = {
|
|||||||
url = "https://github.com/onsails/lspkind.nvim"
|
url = "https://github.com/onsails/lspkind.nvim"
|
||||||
},
|
},
|
||||||
["lualine.nvim"] = {
|
["lualine.nvim"] = {
|
||||||
|
config = { ' require("lualine_config") ' },
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
path = "/usr/local/google/home/cnieves/.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"
|
||||||
@ -405,30 +411,34 @@ _G.packer_plugins = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
time([[Defining packer_plugins]], false)
|
time([[Defining packer_plugins]], 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: fidget.nvim
|
|
||||||
time([[Config for fidget.nvim]], true)
|
|
||||||
require("fidget").setup()
|
|
||||||
time([[Config for fidget.nvim]], false)
|
|
||||||
-- Config for: auto-session
|
-- Config for: auto-session
|
||||||
time([[Config for auto-session]], true)
|
time([[Config for auto-session]], true)
|
||||||
try_loadstring("\27LJ\2\n<EFBFBD>\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\31auto_session_suppress_dirs\1\4\0\0\a~/\16~/Downloads\6/\1\0\1\14log_level\nerror\nsetup\17auto-session\frequire\0", "config", "auto-session")
|
try_loadstring("\27LJ\2\n<EFBFBD>\1\0\0\4\0\6\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0005\2\3\0005\3\4\0=\3\5\2B\0\2\1K\0\1\0\31auto_session_suppress_dirs\1\4\0\0\a~/\16~/Downloads\6/\1\0\1\14log_level\nerror\nsetup\17auto-session\frequire\0", "config", "auto-session")
|
||||||
time([[Config for auto-session]], false)
|
time([[Config for auto-session]], false)
|
||||||
|
-- Config for: lualine.nvim
|
||||||
|
time([[Config for lualine.nvim]], true)
|
||||||
|
require("lualine_config")
|
||||||
|
time([[Config for lualine.nvim]], 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: catppuccin
|
|
||||||
time([[Config for catppuccin]], true)
|
|
||||||
require("catppuccin-config")
|
|
||||||
time([[Config for catppuccin]], false)
|
|
||||||
-- Config for: git-conflict.nvim
|
-- Config for: git-conflict.nvim
|
||||||
time([[Config for git-conflict.nvim]], true)
|
time([[Config for git-conflict.nvim]], true)
|
||||||
require('git-conflict').setup()
|
require('git-conflict').setup()
|
||||||
time([[Config for git-conflict.nvim]], false)
|
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: 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)
|
||||||
-- Load plugins in order defined by `after`
|
-- Load plugins in order defined by `after`
|
||||||
time([[Sequenced loading]], true)
|
time([[Sequenced loading]], true)
|
||||||
vim.cmd [[ packadd LuaSnip ]]
|
vim.cmd [[ packadd LuaSnip ]]
|
||||||
@ -437,8 +447,8 @@ time([[Sequenced loading]], false)
|
|||||||
|
|
||||||
-- Command lazy-loads
|
-- Command lazy-loads
|
||||||
time([[Defining lazy-load commands]], true)
|
time([[Defining lazy-load commands]], true)
|
||||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeToggle lua require("packer.load")({'undotree'}, { cmd = "UndotreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
|
||||||
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Neogit lua require("packer.load")({'neogit'}, { cmd = "Neogit", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file Neogit lua require("packer.load")({'neogit'}, { cmd = "Neogit", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||||
|
pcall(vim.cmd, [[command -nargs=* -range -bang -complete=file UndotreeToggle lua require("packer.load")({'undotree'}, { cmd = "UndotreeToggle", l1 = <line1>, l2 = <line2>, bang = <q-bang>, args = <q-args>, mods = "<mods>" }, _G.packer_plugins)]])
|
||||||
time([[Defining lazy-load commands]], false)
|
time([[Defining lazy-load commands]], false)
|
||||||
|
|
||||||
vim.cmd [[augroup packer_load_aucmds]]
|
vim.cmd [[augroup packer_load_aucmds]]
|
||||||
|
@ -25,7 +25,7 @@ summarize.extra_args = --proxy
|
|||||||
[merge-tools]
|
[merge-tools]
|
||||||
# meld.args = --auto-merge --label='incoming' $local --label='merged' $base --label='existing' $other -o $output
|
# meld.args = --auto-merge --label='incoming' $local --label='merged' $base --label='existing' $other -o $output
|
||||||
# https://www.mercurial-scm.org/wiki/MergingWithVim#More_Useful_3-Way_Diff
|
# https://www.mercurial-scm.org/wiki/MergingWithVim#More_Useful_3-Way_Diff
|
||||||
vimdiff.executable = vimdiff
|
vimdiff.executable = nvim
|
||||||
vimdiff.args = -f -d $output -M $local $base $other -c "wincmd J" -c "set modifiable" -c "set write"
|
vimdiff.args = -f -d $output -M $local $base $other -c "wincmd J" -c "set modifiable" -c "set write"
|
||||||
vimdiff.premerge = keep
|
vimdiff.premerge = keep
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
|
|||||||
local colors = require("catppuccin.palettes").get_palette()
|
local colors = require("catppuccin.palettes").get_palette()
|
||||||
|
|
||||||
require("catppuccin").setup({
|
require("catppuccin").setup({
|
||||||
-- flavour = "macchiato",
|
flavour = vim.g.catppuccin_flavour, --"macchiato",
|
||||||
integrations = {
|
integrations = {
|
||||||
cmp = true,
|
cmp = true,
|
||||||
-- coc_nvim = false,
|
-- coc_nvim = false,
|
||||||
|
@ -105,6 +105,15 @@ cmp.setup({
|
|||||||
{ name = 'nvim_lsp_signature_help' },
|
{ name = 'nvim_lsp_signature_help' },
|
||||||
{ name = 'nvim_ciderlsp', priority = 9 },
|
{ name = 'nvim_ciderlsp', priority = 9 },
|
||||||
{ name = "buffer", keyword_length = 5 },
|
{ name = "buffer", keyword_length = 5 },
|
||||||
|
{
|
||||||
|
name = 'spell',
|
||||||
|
option = {
|
||||||
|
keep_all_entries = false,
|
||||||
|
enable_in_context = function()
|
||||||
|
return true
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
sorting = {
|
sorting = {
|
||||||
@ -238,7 +247,7 @@ local on_attach = function(client, bufnr)
|
|||||||
|
|
||||||
vim.api.nvim_command("augroup LSP")
|
vim.api.nvim_command("augroup LSP")
|
||||||
vim.api.nvim_command("autocmd!")
|
vim.api.nvim_command("autocmd!")
|
||||||
if client.resolved_capabilities.document_highlight then
|
if client.server_capabilities.document_highlight then
|
||||||
vim.api.nvim_command("autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()")
|
vim.api.nvim_command("autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()")
|
||||||
vim.api.nvim_command("autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight()")
|
vim.api.nvim_command("autocmd CursorHoldI <buffer> lua vim.lsp.buf.document_highlight()")
|
||||||
vim.api.nvim_command("autocmd CursorMoved <buffer> lua vim.lsp.util.buf_clear_references()")
|
vim.api.nvim_command("autocmd CursorMoved <buffer> lua vim.lsp.util.buf_clear_references()")
|
||||||
|
@ -44,15 +44,22 @@ require('lualine').setup {
|
|||||||
lualine_a = {'mode'},
|
lualine_a = {'mode'},
|
||||||
lualine_b = {'branch', 'diff', getCitc, isCiderLspAttached},
|
lualine_b = {'branch', 'diff', getCitc, isCiderLspAttached},
|
||||||
lualine_c = {'filename', {"aerial", depth=-1}, getLightbulb},
|
lualine_c = {'filename', {"aerial", depth=-1}, getLightbulb},
|
||||||
lualine_x = {'filetype'},
|
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
{ 'diagnostics', sources = {"nvim_lsp"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
{ 'diagnostics', sources = {"nvim_lsp"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||||
'encoding',
|
'encoding',
|
||||||
'filetype'
|
'filetype'
|
||||||
},
|
},
|
||||||
lualine_y = {},
|
lualine_y = {'searchcount'},
|
||||||
lualine_z = {'location'}
|
lualine_z = {'location'}
|
||||||
},
|
},
|
||||||
|
tabline = {
|
||||||
|
lualine_a = {{'tabs', mode = 1}},
|
||||||
|
-- lualine_b = {'branch'},
|
||||||
|
-- lualine_c = {'filename'},
|
||||||
|
lualine_x = {
|
||||||
|
{ 'diagnostics', sources = {"nvim_lsp", "nvim_workspace_diagnostic"}, symbols = {error = ' ', warn = ' ', info = ' ', hint = ' '} },
|
||||||
|
}
|
||||||
|
},
|
||||||
-- default
|
-- default
|
||||||
-- sections = {
|
-- sections = {
|
||||||
-- lualine_a = {'mode'},
|
-- lualine_a = {'mode'},
|
||||||
|
@ -5,12 +5,12 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
|||||||
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
|
||||||
end
|
end
|
||||||
|
|
||||||
local packerGroup = vim.api.nvim_create_augroup("packer_auto_compile", { clear = true })
|
vim.cmd([[
|
||||||
vim.api.nvim_create_autocmd("BufWritePost", {
|
augroup packer_user_config
|
||||||
pattern = "*/vim/lua/plugins.lua",
|
autocmd!
|
||||||
command = "luafile <afile> | PackerCompile",
|
autocmd BufWritePost plugins.lua source <afile> | PackerCompile
|
||||||
group = packerGroup,
|
augroup end
|
||||||
})
|
]])
|
||||||
|
|
||||||
require('packer').startup(function(use)
|
require('packer').startup(function(use)
|
||||||
-- Packer can manage itself
|
-- Packer can manage itself
|
||||||
@ -42,6 +42,7 @@ require('packer').startup(function(use)
|
|||||||
'hrsh7th/cmp-buffer',
|
'hrsh7th/cmp-buffer',
|
||||||
'lukas-reineke/cmp-under-comparator',
|
'lukas-reineke/cmp-under-comparator',
|
||||||
'hrsh7th/cmp-cmdline',
|
'hrsh7th/cmp-cmdline',
|
||||||
|
'f3fora/cmp-spell',
|
||||||
'hrsh7th/cmp-nvim-lsp-document-symbol',
|
'hrsh7th/cmp-nvim-lsp-document-symbol',
|
||||||
'hrsh7th/cmp-nvim-lsp-signature-help',
|
'hrsh7th/cmp-nvim-lsp-signature-help',
|
||||||
'hrsh7th/cmp-nvim-lua',
|
'hrsh7th/cmp-nvim-lua',
|
||||||
@ -60,7 +61,7 @@ require('packer').startup(function(use)
|
|||||||
use { 'ErichDonGubler/lsp_lines.nvim', config = [[require("lsp_lines").setup()]] }
|
use { 'ErichDonGubler/lsp_lines.nvim', config = [[require("lsp_lines").setup()]] }
|
||||||
|
|
||||||
use 'jghauser/mkdir.nvim'
|
use 'jghauser/mkdir.nvim'
|
||||||
use 'simrat39/symbols-outline.nvim'
|
use { 'simrat39/symbols-outline.nvim' }
|
||||||
use { 'petertriho/nvim-scrollbar', config = [[require("scrollbar").setup()]] }
|
use { 'petertriho/nvim-scrollbar', config = [[require("scrollbar").setup()]] }
|
||||||
|
|
||||||
use {
|
use {
|
||||||
@ -78,7 +79,10 @@ require('packer').startup(function(use)
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
use 'sso://googler@user/vintharas/telescope-codesearch.nvim'
|
use 'sso://googler@user/vintharas/telescope-codesearch.nvim'
|
||||||
use 'nvim-lualine/lualine.nvim'
|
use {
|
||||||
|
'nvim-lualine/lualine.nvim',
|
||||||
|
config = [[ require("lualine_config") ]]
|
||||||
|
}
|
||||||
use 'rcarriga/nvim-notify'
|
use 'rcarriga/nvim-notify'
|
||||||
|
|
||||||
-- Git
|
-- Git
|
||||||
@ -154,9 +158,9 @@ require("lsp")
|
|||||||
require("diagnostics")
|
require("diagnostics")
|
||||||
require("treesitter")
|
require("treesitter")
|
||||||
require("telescope_config")
|
require("telescope_config")
|
||||||
require("lualine_config")
|
|
||||||
require("notify_config")
|
require("notify_config")
|
||||||
require("symbols-outline-config")
|
require("symbols-outline-config")
|
||||||
|
require("spell_config")
|
||||||
|
|
||||||
-- redundant w/ lsp_lines
|
-- redundant w/ lsp_lines
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
|
2
vim/.vim/lua/spell_config.lua
Normal file
2
vim/.vim/lua/spell_config.lua
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
vim.opt.spell = true
|
||||||
|
vim.opt.spelllang = { 'en_us' }
|
@ -19,5 +19,6 @@ require("symbols-outline").setup(
|
|||||||
)
|
)
|
||||||
|
|
||||||
local map = require("utils").map
|
local map = require("utils").map
|
||||||
|
|
||||||
|
|
||||||
map('n', '<leader>so', ':SymbolsOutline<cr>')
|
map('n', '<leader>so', ':SymbolsOutline<cr>')
|
||||||
map('n', '<leader>o', ':SymbolsOutline<cr>')
|
|
||||||
|
@ -131,3 +131,10 @@ to_mac(){
|
|||||||
scp $1 cnieves-macbookpro.roam.internal:~/Downloads
|
scp $1 cnieves-macbookpro.roam.internal:~/Downloads
|
||||||
echo "Saved $1 to downloads"
|
echo "Saved $1 to downloads"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bdoctor() {
|
||||||
|
hourly=$(builddoctor analyze --blueprint //depot/google3/java/com/google/android/gmscore/tools/build_doctor/build_doctor.blueprint --cl $1 --analysis_type=PERIODIC --analysis_name=hourly --buildable_unit_type BUILD --buildable_unit gmscore.build_doctor.debug_container | grep http)
|
||||||
|
default=$(builddoctor analyze --blueprint //depot/google3/java/com/google/android/gmscore/tools/build_doctor/build_doctor.blueprint --cl $1 --analysis_type=PERIODIC --buildable_unit_type BUILD --buildable_unit gmscore.build_doctor.debug_container | grep http)
|
||||||
|
echo "DEFAULT: $default"
|
||||||
|
echo "HOURLY: $hourly"
|
||||||
|
}
|
||||||
|
@ -7,7 +7,6 @@ export GO111MODULE=auto
|
|||||||
export CLOUDSDK_PYTHON=python2
|
export CLOUDSDK_PYTHON=python2
|
||||||
|
|
||||||
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
|
export PATH="/opt/local/bin:/opt/local/sbin:$PATH"
|
||||||
export EDITOR='nvim'
|
|
||||||
|
|
||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ else
|
|||||||
zle clear-screen -w
|
zle clear-screen -w
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
export EDITOR='nvim'
|
||||||
zle -N fancy-ctrl-z
|
zle -N fancy-ctrl-z
|
||||||
bindkey '^Z' fancy-ctrl-z
|
bindkey '^Z' fancy-ctrl-z
|
||||||
bindkey "^A" beginning-of-line
|
bindkey "^A" beginning-of-line
|
||||||
|
Reference in New Issue
Block a user