Compare commits
156 Commits
2d1f84f463
...
main
Author | SHA1 | Date | |
---|---|---|---|
036a55effc | |||
8345f91cc8 | |||
b5e0e2ebf5 | |||
1f30ce43c7 | |||
edf9ae6ada | |||
28ac8a99b9 | |||
8b3bd23fa6 | |||
e4efa6b209 | |||
e588888143 | |||
d261f8b3bd | |||
5f814e7560 | |||
f9a40408aa | |||
a6eee81db6 | |||
a9a196baf1 | |||
2907bda8d3 | |||
348b966c1a | |||
736ba50a7a | |||
758afadb6f | |||
4c5bd3505f | |||
76686a0e87 | |||
f595b1fcfa | |||
8dc9131c46 | |||
27f00e77e6 | |||
d56eb258cd | |||
a1880dcdad | |||
e242d6eb56 | |||
3554761a0c | |||
3b3f3c05bd | |||
8643bd99f3 | |||
9d5f671e4f | |||
52dbbb30fd | |||
ee8d429c66 | |||
a079ad36cc | |||
e53d35ed17 | |||
55b8aab06a | |||
2e945be118 | |||
4d94c9cad7 | |||
53fdcbb4dc | |||
6e33c078e5 | |||
c04a169229 | |||
e0daf87594 | |||
270934d29c | |||
053eeb07fd | |||
8b8046878f | |||
196c9d1a3b | |||
9988bd13b2 | |||
0300264961 | |||
1bbcef640d | |||
5e739703d0 | |||
d0b81f87cb | |||
f815679d89 | |||
513dfe695f | |||
c869fbd48a | |||
6f857496c0 | |||
3ea53a113f | |||
fe2fed17ed | |||
3ae68d6e0b | |||
7942d2083c | |||
664c555107 | |||
9ceca10f72 | |||
b016ad5d56 | |||
d06b8c1693 | |||
aefb0f1815 | |||
bcc9f32bdb | |||
1fe1ca6c71 | |||
afbe9737b7 | |||
22e5f66830 | |||
7206fae3b7 | |||
07c24bdafd | |||
42ec292e7c | |||
20381a149d | |||
38f84a6dd9 | |||
ce6295b69a | |||
3d4f13be75 | |||
d29d3be651 | |||
b3f51ae147 | |||
1349bf971b | |||
47cead8c63 | |||
3c1d572ce7 | |||
29bb1af1e0 | |||
3cf440ec45 | |||
83c9f57328 | |||
6f86454397 | |||
a76bbde00c | |||
111e7dfe23 | |||
c263826a50 | |||
7e76e91f8b | |||
0693f6618d | |||
d2c2bd908b | |||
03c791b8d6 | |||
b296094f42 | |||
33e88f60ba | |||
22d681a3d2 | |||
6bdd165942 | |||
dc1332f024 | |||
50761bc157 | |||
f237b861fc | |||
f0b4b89b9b | |||
7744a799f0 | |||
0f5151bcc2 | |||
859c175d5a | |||
b05f7b15be | |||
d632924ca7 | |||
1dfaac5950 | |||
a6086451c8 | |||
0202fcc32c | |||
82411e7b77 | |||
81cc999670 | |||
c5ff1347fe | |||
c698b10503 | |||
9b0360a291 | |||
47b94a3bc4 | |||
07e5fe880f | |||
4a80441b38 | |||
1c5740014f | |||
f9acecd558 | |||
31b1510b06 | |||
b4bd109458 | |||
0d333a2116 | |||
fe48c126db | |||
e4dfbb859d | |||
abea67f918 | |||
df2e294c26 | |||
c233e7b78d | |||
6e639bf24a | |||
d3a6c45a98 | |||
8a4fdc0e0b | |||
822daa2ff0 | |||
28070c2640 | |||
0aef98bb0a | |||
5840cc2b2d | |||
1fb4a36781 | |||
934a73ec88 | |||
f0950d47bd | |||
7af5f17c9b | |||
14a4da6b6c | |||
26a5f90ee5 | |||
d2e6748eeb | |||
27955c4f97 | |||
e4926e135c | |||
a865a14bb7 | |||
bfd786f261 | |||
51b5fe4008 | |||
bd7b27cd71 | |||
1b8244ea28 | |||
d4c557acf9 | |||
90033636e5 | |||
16fb43e7a2 | |||
ae0055a5db | |||
9fe3e152c9 | |||
ef6089dda9 | |||
70ec22f3c6 | |||
55546ec792 | |||
c18fd3f78a | |||
518d7e48d7 | |||
b55efeec7f |
49
alacritty/.alacritty.toml
Normal file
49
alacritty/.alacritty.toml
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
[font]
|
||||||
|
size = 14
|
||||||
|
normal = { family = "CommitMono Nerd Font" }
|
||||||
|
|
||||||
|
[window]
|
||||||
|
option_as_alt = "OnlyLeft"
|
||||||
|
decorations = "None"
|
||||||
|
|
||||||
|
# moonfly theme for Alacritty
|
||||||
|
#
|
||||||
|
# Upstream: github.com/bluz71/vim-moonfly-colors
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
draw_bold_text_with_bright_colors = true
|
||||||
|
|
||||||
|
# Default colors
|
||||||
|
[colors.primary]
|
||||||
|
background = '#1e2024'
|
||||||
|
foreground = '#a1a3a8'
|
||||||
|
|
||||||
|
# Normal colors
|
||||||
|
[colors.normal]
|
||||||
|
black = '#27272a'
|
||||||
|
blue = '#5e7fdd'
|
||||||
|
cyan = '#97c3fa'
|
||||||
|
green = '#90b99f'
|
||||||
|
magenta = '#e29eca'
|
||||||
|
red = '#d45d9e'
|
||||||
|
white = '#c9c7cd'
|
||||||
|
yellow = '#f0ea2d'
|
||||||
|
|
||||||
|
# Bright colors
|
||||||
|
[colors.bright]
|
||||||
|
black = '#353539'
|
||||||
|
blue = '#a7b3dd'
|
||||||
|
cyan = '#6de6fc'
|
||||||
|
green = '#a8fc8d'
|
||||||
|
magenta = '#eb4cce'
|
||||||
|
red = '#ca72de'
|
||||||
|
white = '#c9c7cd'
|
||||||
|
yellow = '#f7f48d'
|
||||||
|
|
||||||
|
[colors.cursor]
|
||||||
|
cursor = "#8e8e8e"
|
||||||
|
text = "#080808"
|
||||||
|
|
||||||
|
[colors.selection]
|
||||||
|
background = "#b2ceee"
|
||||||
|
text = "#080808"
|
@ -0,0 +1,9 @@
|
|||||||
|
<KeyPair>
|
||||||
|
<Properties>
|
||||||
|
<Provider Type="1" />
|
||||||
|
<Container Name="98f3a7e3-0d6e-f432-8a18-e1144b53633f" />
|
||||||
|
</Properties>
|
||||||
|
<KeyValue>
|
||||||
|
<RSAKeyValue><Modulus>l97jvAiPd88/KZ5NjMGFg+EaAC9rk50nPVJPlX+cGX6irHt+haXvMJ+b/Lh8JFtSw01cf+TJJwNmO0Hzdv0tF35CmXuOkeJAXVa0JNoGLaXxtdqO2ZxD8Lt8OYj/ueAX/zKiWmet3DP4gT1qTXn/mON+hFB6sZ2f2MLwadm7joCTPPsxZxAluxjk+XGajBFKRp3/u8CYRu5C98K7QUU0RwSBiccFUrUytqBz4Dsn8a1YakwcApmCl+sJF7RW6obf</Modulus><Exponent>AQAB</Exponent><P>sJS6yQDEMEdlmtWW8mPx7ZEEu/Zn8ahkJoAas7AToNNUaunZv+PpDS9K0dQO6sPOG/Dvwgm9AtHYrswUIRI0ts84PNvvt4yJfDXVUOFgnCuv6v71yhbxlRkbWGdBeyB3</P><Q>3C0NJwOEZ1yE8piwHm1n3fEaB5tRBYFyEZ309OjBPmbUiaq1Cx/lV2LzEFrQ0RSNpWhijBk8nObwzoBDi1gkFmen9i5STX5nHQiwUnuCZfhShxOvL/yMD7R8qZ/fRo7Z</Q><DP>hciZX7KR8ZYWV+HdVFX+tKP7t0Dv7bpL7pN+J4eOx3l1au80B9tv9YpQIHuOtbWWEbtQm21vY5SDm6OI2KmHgL2s+QcVLrZub8oFjRrEbG35AY0bwXnynKkB+893YAbv</DP><DQ>ctw5yUmHcBiO7rQC5My0a88UgjVfbhzaciBSItWtwi0I4Yyhh90q2oyvOq/10a0EO+8ZwfaEbWH46/FzyyS/JsUKlV4S54RyrG3U9iKioymJfBgjw0fflW3VvvO9GeT5</DQ><InverseQ>U0UtjaLfCsBcJcSLlZWX9Ziovt9iFjF8JnpN+lk2C8Uz4I4y62xMZmazEf5G/liEsL1SKNFdSWfRyZdzS7e6/tcNhc72bfSCldXRB2mrwfl2YRw3bVdSMoKUBqdpWVs6</InverseQ><D>KttNLLzFr6ueSWJQxA3AXaziJ3c6RleswRM/PhLavB8OTNo0pAZlbzU7UZ/F+ISE4HQuTDEFyqqc6M/9onBjjyOkK6fAXc6ZFz3mbBfScoNHqGfas/HzAjYGIj5U2+EutHDAUhFmfGiiZ1DmwrFcyI5X9Q5foPwXw+uDOUXVU1TtnSzJanvZEaPB90Bvc179gEIXJr26Dbl7ZGGQTGtOUBsFEnMGMh5/tcby8d5PWcFJr1iYDKG1N93xEYrlo7Th</D></RSAKeyValue>
|
||||||
|
</KeyValue>
|
||||||
|
</KeyPair>
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,4 @@
|
|||||||
|
<LocationServerMappings>
|
||||||
|
<ServerMapping location="https://app.vssps.visualstudio.com/" guid="a5ca35eb-148e-4ccd-bbb3-d31576d75958" owner="951917ac-a960-4999-8464-e3f0aa25b381" />
|
||||||
|
<ServerMapping location="https://api.vstsusers.visualstudio.com/" guid="2dba3f49-86e9-f22a-b81f-b604f401cfbe" owner="00000038-0000-8888-8000-000000000000" />
|
||||||
|
</LocationServerMappings>
|
File diff suppressed because it is too large
Load Diff
11
config/.config/gtk-2.0/gtkfilechooser.ini
Normal file
11
config/.config/gtk-2.0/gtkfilechooser.ini
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Filechooser Settings]
|
||||||
|
LocationMode=path-bar
|
||||||
|
ShowHidden=false
|
||||||
|
ShowSizeColumn=true
|
||||||
|
GeometryX=540
|
||||||
|
GeometryY=351
|
||||||
|
GeometryWidth=720
|
||||||
|
GeometryHeight=540
|
||||||
|
SortColumn=name
|
||||||
|
SortOrder=ascending
|
||||||
|
StartupMode=recent
|
4
config/.config/nvim/after/ftplugin/bzl.vim
Normal file
4
config/.config/nvim/after/ftplugin/bzl.vim
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
set expandtab
|
||||||
|
set tabstop=4
|
||||||
|
set softtabstop=4
|
||||||
|
set shiftwidth=4
|
@ -3,4 +3,4 @@ set nowrap
|
|||||||
set tabstop=4
|
set tabstop=4
|
||||||
set softtabstop=4
|
set softtabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set noexpandtab
|
set expandtab
|
||||||
|
7
config/.config/nvim/after/ftplugin/go.vim
Normal file
7
config/.config/nvim/after/ftplugin/go.vim
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
set tabstop=2
|
||||||
|
set shiftwidth=2
|
||||||
|
set softtabstop=2
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
set textwidth=80
|
||||||
|
set colorcolumn=80
|
30
config/.config/nvim/init.lua
Normal file
30
config/.config/nvim/init.lua
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
vim.cmd("source " .. vim.env.HOME .. "/.vimrc")
|
||||||
|
|
||||||
|
vim.g.maplocalleader = ","
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
vim.fn.system({
|
||||||
|
"git",
|
||||||
|
"clone",
|
||||||
|
"--filter=blob:none",
|
||||||
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
|
lazypath,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim")
|
||||||
|
local luahome = vim.env.HOME .. "/.vim/lua"
|
||||||
|
vim.opt.rtp:prepend(luahome)
|
||||||
|
|
||||||
|
package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
|
||||||
|
|
||||||
|
for _, file in ipairs(vim.fn.readdir(luahome .. "/config", [[v:val =~ '\.lua$']])) do
|
||||||
|
require("config" .. "." .. file:gsub("%.lua$", ""))
|
||||||
|
end
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
-- this entry tells lazy.nvim to load the list of of *.lua files from plugins/
|
||||||
|
import = "plugins",
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.opt.undodir = vim.fn.expand("$HOME") .. "/.undo/"
|
@ -1 +0,0 @@
|
|||||||
source ~/.vimrc
|
|
@ -1,117 +1,3 @@
|
|||||||
{
|
{
|
||||||
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }
|
||||||
"LuaSnip": { "branch": "master", "commit": "82108e7e31cc6fc223cc5df5cae6d89f70bb199f" },
|
}
|
||||||
"actions-preview.nvim": { "branch": "master", "commit": "dd63df1a4ed0ffe1458945ee50ecb1dd02b605ab" },
|
|
||||||
"aerial.nvim": { "branch": "master", "commit": "e2e3bc2df4490690ea005395eecdc8eeb30c4def" },
|
|
||||||
"ai.nvim": { "branch": "main", "commit": "ab6b6f54612500f48d4d34fcf81529946b9338f3" },
|
|
||||||
"asyncrun.vim": { "branch": "master", "commit": "61cc3081963a12048e00e89f8cedc8bd1cb83b8c" },
|
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "6c456b888823d9e4832aa91c482bccd19445c009" },
|
|
||||||
"catppuccin": { "branch": "main", "commit": "5e36ca599f4aa41bdd87fbf2c5aae4397ac55074" },
|
|
||||||
"ciderlsp-nvim": { "branch": "main", "commit": "00a86f96f4b8b9e94f0978c2db316447cc30a573" },
|
|
||||||
"cmp-async-path": { "branch": "main", "commit": "d8229a93d7b71f22c66ca35ac9e6c6cd850ec61d" },
|
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
|
||||||
"cmp-calc": { "branch": "main", "commit": "ce91d14d2e7a8b3f6ad86d85e34d41c1ae6268d9" },
|
|
||||||
"cmp-cmdline": { "branch": "main", "commit": "8ee981b4a91f536f52add291594e89fb6645e451" },
|
|
||||||
"cmp-cmdline-history": { "branch": "master", "commit": "003573b72d4635ce636234a826fa8c4ba2895ffe" },
|
|
||||||
"cmp-emoji": { "branch": "main", "commit": "19075c36d5820253d32e2478b6aaf3734aeaafa0" },
|
|
||||||
"cmp-nerdfont": { "branch": "main", "commit": "a3b7c0cadb7bd389f513eecda376d4c6bec90003" },
|
|
||||||
"cmp-nvim-ciderlsp": { "branch": "main", "commit": "e1b0015a0c090e20d1cbb34e5639e6dd145d3f3e" },
|
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
|
|
||||||
"cmp-nvim-lsp-document-symbol": { "branch": "main", "commit": "f0f53f704c08ea501f9d222b23491b0d354644b0" },
|
|
||||||
"cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" },
|
|
||||||
"cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" },
|
|
||||||
"cmp-spell": { "branch": "master", "commit": "32a0867efa59b43edbb2db67b0871cfad90c9b66" },
|
|
||||||
"cmp-treesitter": { "branch": "master", "commit": "13e4ef8f4dd5639fca2eb9150e68f47639a9b37d" },
|
|
||||||
"cmp-under-comparator": { "branch": "master", "commit": "6857f10272c3cfe930cece2afa2406e1385bfef8" },
|
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
|
||||||
"conflict-marker.vim": { "branch": "master", "commit": "11a4d42244755505b66b15cd4496a150432eb5e3" },
|
|
||||||
"conform.nvim": { "branch": "master", "commit": "75e7c5c7eb5fbd53f8b12dc420b31ec70770b231" },
|
|
||||||
"crates.nvim": { "branch": "main", "commit": "1dffccc0a95f656ebe00cacb4de282473430c5a1" },
|
|
||||||
"dashboard-nvim": { "branch": "master", "commit": "63df28409d940f9cac0a925df09d3dc369db9841" },
|
|
||||||
"debugprint.nvim": { "branch": "main", "commit": "661eea1d6f8237097ae372578fbe7458d690a3ac" },
|
|
||||||
"ferris.nvim": { "branch": "main", "commit": "52e39c017f511e8cf9a024022d48164bfbfe52ee" },
|
|
||||||
"fidget.nvim": { "branch": "main", "commit": "3a93300c076109d86c7ce35ec67a8034ae6ba9db" },
|
|
||||||
"firenvim": { "branch": "master", "commit": "138424db463e6c0e862a05166a4ccc781cd7c19d" },
|
|
||||||
"friendly-snippets": { "branch": "main", "commit": "69a2c1675b66e002799f5eef803b87a12f593049" },
|
|
||||||
"fzf": { "branch": "master", "commit": "e4d0f7acd516d8f5869d3a2210fbf552743a129a" },
|
|
||||||
"fzf.vim": { "branch": "master", "commit": "f6cb5b17897ff0c38f60fecd4b529678bcfec259" },
|
|
||||||
"git-conflict.nvim": { "branch": "main", "commit": "690879ba23741f21646e97ba287333ff56137c4d" },
|
|
||||||
"go.nvim": { "branch": "master", "commit": "24d2fa373d55d9900cd4b502a88214dc17e6fab6" },
|
|
||||||
"guihua.lua": { "branch": "master", "commit": "9fb6795474918b492d9ab01b1ebaf85e8bf6fe0b" },
|
|
||||||
"hg": { "branch": "main", "commit": "1c4bdf80174ec840ba76c4dc7032c4313db62199" },
|
|
||||||
"java-syntax.vim": { "branch": "master", "commit": "9a3d76a8c6cd7765ba93a7bdd9280594167e3f1b" },
|
|
||||||
"kotlin-vim": { "branch": "master", "commit": "53fe045906df8eeb07cb77b078fc93acda6c90b8" },
|
|
||||||
"lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" },
|
|
||||||
"lazygit.nvim": { "branch": "main", "commit": "1e08e3f5ac1152339690140e61a4a32b3bdc7de5" },
|
|
||||||
"leap.nvim": { "branch": "main", "commit": "4394f67ccefc64cdb3258c9f22195ed65a13e874" },
|
|
||||||
"libp.nvim": { "branch": "main", "commit": "636b1748e92f66022c1763f32b2ded6b8606eda5" },
|
|
||||||
"lsp-status.nvim": { "branch": "master", "commit": "54f48eb5017632d81d0fd40112065f1d062d0629" },
|
|
||||||
"lsp-virtual-improved.nvim": { "branch": "master", "commit": "79c53ce05fdeb6590701db55da5832ab4a2c3387" },
|
|
||||||
"lsp-zero.nvim": { "branch": "v3.x", "commit": "433db11e818d07a5151e2c750ca8f09cc2aa3146" },
|
|
||||||
"lsp_lines.nvim": { "branch": "main", "commit": "cf2306dd332e34a3e91075b40bdd4f6db824b2ee" },
|
|
||||||
"lspkind.nvim": { "branch": "master", "commit": "7f26cf5e27e2bd910ce0ea00c514da2bf97423b8" },
|
|
||||||
"lualine.nvim": { "branch": "master", "commit": "566b7036f717f3d676362742630518a47f132fff" },
|
|
||||||
"luasnip-google.nvim": { "branch": "main", "commit": "5fd7feb144de0ecea837618c9c9e1bbecc0e3243" },
|
|
||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "0989bdf4fdf7b5aa4c74131d7ffccc3f399ac788" },
|
|
||||||
"mason.nvim": { "branch": "main", "commit": "e110bc3be1a7309617cecd77bfe4bf86ba1b8134" },
|
|
||||||
"mellifluous.nvim": { "branch": "main", "commit": "d4a52152997907598715d341cad10a4000cf7152" },
|
|
||||||
"mkdir.nvim": { "branch": "main", "commit": "c55d1dee4f099528a1853b28bb28caa802eba217" },
|
|
||||||
"neo-tree.nvim": { "branch": "v2.x", "commit": "80dc74d081823649809f78370fa5b204aa9a853a" },
|
|
||||||
"neodev.nvim": { "branch": "main", "commit": "be8d4d4cab6c13c6a572269c9d6a63774baba9a0" },
|
|
||||||
"neoscopes": { "branch": "main", "commit": "470dff042004b93c10d262e8b0ad7bf6f703f86f" },
|
|
||||||
"neovim-ayu": { "branch": "master", "commit": "6463d39253bb70e2b867fce57f9e7174f657bd1b" },
|
|
||||||
"neovim-throttle-debounce": { "branch": "main", "commit": "5247b097df15016ab31db672b77ec4938bb9cbfd" },
|
|
||||||
"nui.nvim": { "branch": "main", "commit": "35da9ca1de0fc4dda96c2e214d93d363c145f418" },
|
|
||||||
"nvgoog": { "branch": "main", "commit": "c07300e18e81c0341967b8a5ba9afbf7388ca533" },
|
|
||||||
"nvim-cmp": { "branch": "main", "commit": "538e37ba87284942c1d76ed38dd497e54e65b891" },
|
|
||||||
"nvim-cmp-buffer-lines": { "branch": "master", "commit": "924ccc04dc5c919b6baa05d45818025baa82699a" },
|
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
|
||||||
"nvim-dap": { "branch": "master", "commit": "aad46274f09ba29933e4cef2257cdda5ec19cf7a" },
|
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "7e5e16427aaf814dc2d58e1b219def9ef2fa2435" },
|
|
||||||
"nvim-hlslens": { "branch": "main", "commit": "8ffc64bb6b624612cf762982b92633f283f7a715" },
|
|
||||||
"nvim-jdtls": { "branch": "master", "commit": "66b5ace68a5d1c45fdfb1afa8d847e87af2aa1f8" },
|
|
||||||
"nvim-lightbulb": { "branch": "master", "commit": "8f00b89dd1b1dbde16872bee5fbcee2e58c9b8e9" },
|
|
||||||
"nvim-lint": { "branch": "master", "commit": "8df53b5dde8ea80f0a039775777eae6648a10229" },
|
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "796394fd19fb878e8dbc4fd1e9c9c186ed07a5f4" },
|
|
||||||
"nvim-luapad": { "branch": "master", "commit": "a5b3d6aa1fe5fe75e6124927392a9d3a60a0ecce" },
|
|
||||||
"nvim-scrollbar": { "branch": "main", "commit": "35f99d559041c7c0eff3a41f9093581ceea534e8" },
|
|
||||||
"nvim-surround": { "branch": "main", "commit": "703ec63aa798e5e07d309b35e42def34bebe0174" },
|
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "8cd2b230174efbf7b5d9f49fe2f90bda6b5eb16e" },
|
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "db0c864375c198cacc171ff373e76bfce2a85045" },
|
|
||||||
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "4be2e8689067494ed7e5a4f1221adc31d1a07783" },
|
|
||||||
"onedark.nvim": { "branch": "main", "commit": "b5161f0c631571640485be5d1c059cab82c86872" },
|
|
||||||
"persisted.nvim": { "branch": "main", "commit": "edd8aa41cd87f9da1b6ef0c584068dea192f65b7" },
|
|
||||||
"plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" },
|
|
||||||
"refactoring.nvim": { "branch": "master", "commit": "c067e44b8171494fc1b5206ab4c267cd74c043b1" },
|
|
||||||
"rustaceanvim": { "branch": "master", "commit": "e4020e72a5562b9e7cd09e9cd025467f7b0ea76a" },
|
|
||||||
"scope.nvim": { "branch": "main", "commit": "cd27af77ad61a7199af5c28d27013fb956eb0e3e" },
|
|
||||||
"tagalong.vim": { "branch": "main", "commit": "5a2bbf2b1d5b657685a49d48d98a4aa921c1fde3" },
|
|
||||||
"telescope-dap.nvim": { "branch": "master", "commit": "8c88d9716c91eaef1cdea13cb9390d8ef447dbfe" },
|
|
||||||
"telescope-import.nvim": { "branch": "main", "commit": "08e31708451b43d1ef766d370d5ef17e9f0c24ae" },
|
|
||||||
"telescope.nvim": { "branch": "master", "commit": "4367e05c06d19f28c514e1498bcd9410f4bc65b2" },
|
|
||||||
"telescope_citc": { "branch": "main", "commit": "f0f74127e262d097119d2946634d3aa7e49b0c2f" },
|
|
||||||
"telescope_codesearch": { "branch": "main", "commit": "a26077ad3c68cf897ae1c31da903d6516ebb9c92" },
|
|
||||||
"telescope_fig": { "branch": "main", "commit": "f6122fe82417ebeaddb9343cfd5584f62a4b8df8" },
|
|
||||||
"text-case.nvim": { "branch": "main", "commit": "d65b8ade26ef442d11cbf4719bb9830916a492c1" },
|
|
||||||
"time-ago.vim": { "branch": "master", "commit": "be978d5c790cfcc41f524205f28783b9937fd0ee" },
|
|
||||||
"tree-sitter-gdscript": { "branch": "master", "commit": "03f20b94707a21bed90bb95101684bc4036139ce" },
|
|
||||||
"trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" },
|
|
||||||
"undotree": { "branch": "master", "commit": "36ff7abb6b60980338344982ad4cdf03f7961ecd" },
|
|
||||||
"vcscommand.vim": { "branch": "master", "commit": "2fb32681361f37533455d20aaa7fc6eb11b0fa4b" },
|
|
||||||
"vim-bazel": { "branch": "master", "commit": "31b0d5e4f51da1aeb56d65bf505a744e6de405de" },
|
|
||||||
"vim-better-whitespace": { "branch": "master", "commit": "4d45b4a9b59faffa75a3662c448b8e500db07703" },
|
|
||||||
"vim-conjoin": { "branch": "master", "commit": "2ea3b8ed994d12bbf255825d973d865621c64860" },
|
|
||||||
"vim-floaterm": { "branch": "master", "commit": "3f01a623376957437f9376327637491b74719e38" },
|
|
||||||
"vim-imp": { "branch": "main", "commit": "fe9be485854ba602059f0d8af4fa4ab0a74d61ac" },
|
|
||||||
"vim-maktaba": { "branch": "master", "commit": "fe95bb10f6bb250943a44632107f6a3d76ce5f28" },
|
|
||||||
"vim-matchup": { "branch": "master", "commit": "e2cca1747ab175b8d839a5d28679427564643a57" },
|
|
||||||
"vim-signify": { "branch": "master", "commit": "7d538b77a5a8806e344b057f8846f6d0c035efa9" },
|
|
||||||
"vim-tmux": { "branch": "master", "commit": "cfe76281efc29890548cf9eedd42ad51c7a1faf0" },
|
|
||||||
"vim-tmux-focus-events": { "branch": "master", "commit": "b1330e04ffb95ede8e02b2f7df1f238190c67056" },
|
|
||||||
"vim-tmux-navigator": { "branch": "master", "commit": "38b1d0402c4600543281dc85b3f51884205674b6" },
|
|
||||||
"vim-tmux-syntax": { "branch": "master", "commit": "1b6a6a5beb96fa232c8d35d305f77496b12678a9" },
|
|
||||||
"vimux": { "branch": "master", "commit": "616fcb4799674a7a809b14ca2dc155bb6ba25788" },
|
|
||||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" },
|
|
||||||
"zen-mode.nvim": { "branch": "main", "commit": "50e2e2a36cc97847d9ab3b1a3555ba2ef6839b50" }
|
|
||||||
}
|
|
||||||
|
@ -8,3 +8,4 @@ collsion_body
|
|||||||
shake_decay
|
shake_decay
|
||||||
index
|
index
|
||||||
func/!
|
func/!
|
||||||
|
lookup_app_pointer_handle/!
|
||||||
|
Binary file not shown.
83
config/.config/nvim/syntax/gotmpl.vim
Normal file
83
config/.config/nvim/syntax/gotmpl.vim
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
" Copyright 2011 The Go Authors. All rights reserved.
|
||||||
|
" Use of this source code is governed by a BSD-style
|
||||||
|
" license that can be found in the LICENSE file.
|
||||||
|
"
|
||||||
|
" gotpl.vim: Vim syntax file for Go templates.
|
||||||
|
|
||||||
|
" Quit when a (custom) syntax file was already loaded
|
||||||
|
if exists("b:current_syntax")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
|
syn case match
|
||||||
|
|
||||||
|
" Go escapes
|
||||||
|
syn match goEscapeOctal display contained "\\[0-7]\{3}"
|
||||||
|
syn match goEscapeC display contained +\\[abfnrtv\\'"]+
|
||||||
|
syn match goEscapeX display contained "\\x\x\{2}"
|
||||||
|
syn match goEscapeU display contained "\\u\x\{4}"
|
||||||
|
syn match goEscapeBigU display contained "\\U\x\{8}"
|
||||||
|
syn match goEscapeError display contained +\\[^0-7xuUabfnrtv\\'"]+
|
||||||
|
|
||||||
|
hi def link goEscapeOctal goSpecialString
|
||||||
|
hi def link goEscapeC goSpecialString
|
||||||
|
hi def link goEscapeX goSpecialString
|
||||||
|
hi def link goEscapeU goSpecialString
|
||||||
|
hi def link goEscapeBigU goSpecialString
|
||||||
|
hi def link goSpecialString Special
|
||||||
|
hi def link goEscapeError Error
|
||||||
|
|
||||||
|
" Strings and their contents
|
||||||
|
syn cluster goStringGroup contains=goEscapeOctal,goEscapeC,goEscapeX,goEscapeU,goEscapeBigU,goEscapeError
|
||||||
|
syn region goString contained start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@goStringGroup
|
||||||
|
syn region goRawString contained start=+`+ end=+`+
|
||||||
|
|
||||||
|
hi def link goString String
|
||||||
|
hi def link goRawString String
|
||||||
|
|
||||||
|
" Characters; their contents
|
||||||
|
syn cluster goCharacterGroup contains=goEscapeOctal,goEscapeC,goEscapeX,goEscapeU,goEscapeBigU
|
||||||
|
syn region goCharacter start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@goCharacterGroup
|
||||||
|
|
||||||
|
hi def link goCharacter Character
|
||||||
|
|
||||||
|
" Integers
|
||||||
|
syn match goDecimalInt contained "\<\d\+\([Ee]\d\+\)\?\>"
|
||||||
|
syn match goHexadecimalInt contained "\<0x\x\+\>"
|
||||||
|
syn match goOctalInt contained "\<0\o\+\>"
|
||||||
|
syn match goOctalError contained "\<0\o*[89]\d*\>"
|
||||||
|
syn cluster goInt contains=goDecimalInt,goHexadecimalInt,goOctalInt
|
||||||
|
" Floating point
|
||||||
|
syn match goFloat contained "\<\d\+\.\d*\([Ee][-+]\d\+\)\?\>"
|
||||||
|
syn match goFloat contained "\<\.\d\+\([Ee][-+]\d\+\)\?\>"
|
||||||
|
syn match goFloat contained "\<\d\+[Ee][-+]\d\+\>"
|
||||||
|
" Imaginary literals
|
||||||
|
syn match goImaginary contained "\<\d\+i\>"
|
||||||
|
syn match goImaginary contained "\<\d\+\.\d*\([Ee][-+]\d\+\)\?i\>"
|
||||||
|
syn match goImaginary contained "\<\.\d\+\([Ee][-+]\d\+\)\?i\>"
|
||||||
|
syn match goImaginary contained "\<\d\+[Ee][-+]\d\+i\>"
|
||||||
|
|
||||||
|
hi def link goInt Number
|
||||||
|
hi def link goFloat Number
|
||||||
|
hi def link goImaginary Number
|
||||||
|
|
||||||
|
" Token groups
|
||||||
|
syn cluster gotplLiteral contains=goString,goRawString,goCharacter,@goInt,goFloat,goImaginary
|
||||||
|
syn keyword gotplControl contained if else end range with template
|
||||||
|
syn keyword gotplFunctions contained and html index js len not or print printf println urlquery eq ne lt le gt ge
|
||||||
|
syn match gotplVariable contained /\$[^ ]*\>/
|
||||||
|
syn match goTplIdentifier contained /\.[^ ]*\>/
|
||||||
|
|
||||||
|
hi def link gotplControl Keyword
|
||||||
|
hi def link gotplFunctions Function
|
||||||
|
hi def link goTplVariable Special
|
||||||
|
|
||||||
|
syn region gotplAction start="{{" end="}}" contains=@gotplLiteral,gotplControl,gotplFunctions,gotplVariable,goTplIdentifier display
|
||||||
|
syn region gotplAction start="\[\[" end="\]\]" contains=@gotplLiteral,gotplControl,gotplFunctions,gotplVariable display
|
||||||
|
syn region goTplComment start="{{/\*" end="\*/}}" display
|
||||||
|
syn region goTplComment start="\[\[/\*" end="\*/\]\]" display
|
||||||
|
|
||||||
|
hi def link gotplAction PreProc
|
||||||
|
hi def link goTplComment Comment
|
||||||
|
|
||||||
|
let b:current_syntax = "gotmpl"
|
166
config/.config/rizin/cutter.ini
Normal file
166
config/.config/rizin/cutter.ini
Normal file
File diff suppressed because one or more lines are too long
112
config/.config/xbuild/pkgconfig-cache-2.xml
Normal file
112
config/.config/xbuild/pkgconfig-cache-2.xml
Normal file
@ -0,0 +1,112 @@
|
|||||||
|
<PcFileCache>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/mono-options.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/mono.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/expat.pc" lastWriteTime="2022-06-14T12:57:28-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/glade-sharp-2.0.pc" lastWriteTime="2022-06-14T14:25:49-05:00" name="glade-sharp-2.0" version="2.12.45" description="Glade# - Glade .NET Binding" requires="gtk-sharp-2.0" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="glade-sharp" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/glade-sharp.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/monodoc.pc" lastWriteTime="2022-06-14T14:13:23-05:00" name="monodoc" version="6.12.0" description="Monodoc - Mono Documentation Tools" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="monodoc" version="1.0.0.0" culture="neutral" publicKeyToken="0738eb9f132ed756" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/monodoc/monodoc.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/librsvg-2.0.pc" lastWriteTime="2022-06-14T12:58:20-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-ft.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/system.web.mvc3.pc" lastWriteTime="2022-06-14T14:13:23-05:00" name="system.web.mvc3" version="3.0.0.0" description="System.Web.Mvc - ASP.NET MVC v3" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="System.Web.Mvc" version="3.0.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/System.Web.Mvc/3.0.0.0__31bf3856ad364e35/System.Web.Mvc.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/xsp-2.pc" lastWriteTime="2022-06-14T14:24:43-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gapi-2.0.pc" lastWriteTime="2022-06-14T14:25:45-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gio-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/system.web.mvc2.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gio-unix-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/wcf.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-quartz-image.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/pango.pc" lastWriteTime="2022-06-14T12:52:07-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gdk-quartz-2.0.pc" lastWriteTime="2022-06-14T12:56:30-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gobject-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/xbuild12.pc" lastWriteTime="2022-06-14T14:13:23-05:00" name="xbuild12" version="12.0" description="XBuild/MSBuild 12.0" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="Microsoft.Build.Engine" version="12.0.0.0" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/12.0/bin/Microsoft.Build.Engine.dll" />
|
||||||
|
<Assembly name="Microsoft.Build.Framework" version="12.0.0.0" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/12.0/bin/Microsoft.Build.Framework.dll" />
|
||||||
|
<Assembly name="Microsoft.Build.Tasks.v12.0" version="12.0.0.0" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/12.0/bin/Microsoft.Build.Tasks.v12.0.dll" />
|
||||||
|
<Assembly name="Microsoft.Build.Utilities.v12.0" version="12.0.0.0" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/12.0/bin/Microsoft.Build.Utilities.v12.0.dll" />
|
||||||
|
<Assembly name="Microsoft.Build" version="12.0.0.0" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/12.0/bin/Microsoft.Build.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gtk+-quartz-2.0.pc" lastWriteTime="2022-06-14T12:56:30-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-pdf.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libcroco-0.6.pc" lastWriteTime="2022-06-14T12:57:56-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gdk-pixbuf-2.0.pc" lastWriteTime="2022-06-14T12:52:49-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gtk-dotnet-2.0.pc" lastWriteTime="2022-06-14T14:25:50-05:00" name="gtk-dotnet-2.0" version="2.12.45" description=".NET Extensions for Gtk" requires="gtk-sharp-2.0" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="gtk-dotnet" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/gtk-dotnet.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/mono-lineeditor.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/system.web.mvc.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/atk.pc" lastWriteTime="2022-06-14T12:52:21-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/glib-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/reactive.pc" lastWriteTime="2022-06-14T14:13:23-05:00" name="reactive" version="6.12.0" description="Reactive Extensions" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="System.Reactive.Interfaces" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Interfaces.dll" />
|
||||||
|
<Assembly name="System.Reactive.Core" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Core.dll" />
|
||||||
|
<Assembly name="System.Reactive.Linq" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Linq.dll" />
|
||||||
|
<Assembly name="System.Reactive.PlatformServices" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.PlatformServices.dll" />
|
||||||
|
<Assembly name="System.Reactive.Providers" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Providers.dll" />
|
||||||
|
<Assembly name="System.Reactive.Debugger" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Debugger.dll" />
|
||||||
|
<Assembly name="System.Reactive.Experimental" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Experimental.dll" />
|
||||||
|
<Assembly name="System.Reactive.Runtime.Remoting" version="2.2.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/System.Reactive.Runtime.Remoting.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-fc.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/freetype2.pc" lastWriteTime="2022-06-14T12:46:29-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/system.web.extensions_1.0.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/system.web.extensions.design_1.0.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gdk-2.0.pc" lastWriteTime="2022-06-14T12:56:30-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/monosgen-2.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gtk+-unix-print-2.0.pc" lastWriteTime="2022-06-14T12:56:30-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libffi.pc" lastWriteTime="2022-06-14T12:48:31-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/pangocairo.pc" lastWriteTime="2022-06-14T12:52:07-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/aspnetwebstack.pc" lastWriteTime="2022-06-14T14:13:23-05:00" name="aspnetwebstack" version="6.12.0" description="References Microsoft ASP.NET Web Stack" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="System.Web.Razor" version="2.0.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/System.Web.Razor/2.0.0.0__31bf3856ad364e35/System.Web.Razor.dll" />
|
||||||
|
<Assembly name="System.Web.Http" version="4.0.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/System.Web.Http/4.0.0.0__31bf3856ad364e35/System.Web.Http.dll" />
|
||||||
|
<Assembly name="System.Web.WebPages" version="2.0.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/System.Web.WebPages/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.dll" />
|
||||||
|
<Assembly name="System.Web.WebPages.Razor" version="2.0.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/System.Web.WebPages.Razor/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Razor.dll" />
|
||||||
|
<Assembly name="System.Web.WebPages.Deployment" version="2.0.0.0" culture="neutral" publicKeyToken="31bf3856ad364e35" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/System.Web.WebPages.Deployment/2.0.0.0__31bf3856ad364e35/System.Web.WebPages.Deployment.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/ige-mac-integration.pc" lastWriteTime="2022-06-14T12:57:43-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/mono-cairo.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gmodule-export-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/dotnet35.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-png.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libtiff-4.pc" lastWriteTime="2022-06-14T12:45:34-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/glib-sharp-2.0.pc" lastWriteTime="2022-06-14T14:25:46-05:00" name="glib-sharp-2.0" version="2.12.45" description="GLib# - .NET Binding for the glib library." targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="glib-sharp" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/glib-sharp.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gthread-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-svg.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gtk-sharp-2.0.pc" lastWriteTime="2022-06-14T14:25:48-05:00" name="gtk-sharp-2.0" version="2.12.45" description="Gtk# - GNOME .NET Binding" requires="glib-sharp-2.0" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="pango-sharp" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/pango-sharp.dll" />
|
||||||
|
<Assembly name="atk-sharp" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/atk-sharp.dll" />
|
||||||
|
<Assembly name="gdk-sharp" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/gdk-sharp.dll" />
|
||||||
|
<Assembly name="gtk-sharp" version="2.12.0.0" culture="neutral" publicKeyToken="35e10195dab3c99f" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gtk-sharp-2.0/gtk-sharp.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/pixman-1.pc" lastWriteTime="2022-06-14T12:47:09-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gail.pc" lastWriteTime="2022-06-14T12:56:30-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libpng14.pc" lastWriteTime="2022-06-14T12:45:02-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libgdiplus.pc" lastWriteTime="2022-06-14T14:24:25-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-quartz.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/sqlite3.pc" lastWriteTime="2022-06-14T12:57:17-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gmodule-no-export-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-quartz-font.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gtk-engines-2.pc" lastWriteTime="2022-06-14T12:58:49-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/fontconfig.pc" lastWriteTime="2022-06-14T12:46:46-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libxml-2.0.pc" lastWriteTime="2022-06-14T12:46:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/xsp-4.pc" lastWriteTime="2022-06-14T14:24:43-05:00" name="xsp-4" version="4.6" description="Mono.WebServer2.dll - ASP.NET hosting support classes for .NET 4.0" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="Mono.WebServer2" version="0.4.0.0" culture="neutral" publicKeyToken="0738eb9f132ed756" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/4.5/Mono.WebServer2.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/libglade-2.0.pc" lastWriteTime="2022-06-14T12:57:04-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/mono-2.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cecil.pc" lastWriteTime="2022-06-14T14:13:23-05:00" name="cecil" version="6.12.0" description="Mono Internal Libraries -- Do not use" targetFramework=".NETFramework,Version=v4.0">
|
||||||
|
<Assembly name="Mono.Cecil" version="0.9.5.0" culture="neutral" publicKeyToken="0738eb9f132ed756" file="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/gac/Mono.Cecil/0.9.5.0__0738eb9f132ed756/Mono.Cecil.dll" />
|
||||||
|
</File>
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-ps.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/cairo-script.pc" lastWriteTime="2022-06-14T12:48:13-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gmodule-2.0.pc" lastWriteTime="2022-06-14T12:51:10-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/dotnet.pc" lastWriteTime="2022-06-14T14:13:23-05:00" />
|
||||||
|
<File path="/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/pkgconfig/gtk+-2.0.pc" lastWriteTime="2022-06-14T12:56:30-05:00" />
|
||||||
|
</PcFileCache>
|
9
config/.config/zsh-abbr/user-abbreviations
Normal file
9
config/.config/zsh-abbr/user-abbreviations
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
abbr "allpaths"="blaze query \"allpaths(%, %)\" --output graph | /google/data/ro/projects/graphviz-server/graphviz"
|
||||||
|
abbr "bb"="blaze build"
|
||||||
|
abbr "bq"="blaze query"
|
||||||
|
abbr "br"="blaze run"
|
||||||
|
abbr "bt"="blaze test"
|
||||||
|
abbr "ds_clean"="find ./ -name \".DS_Store\" -depth -exec rm {} \;"
|
||||||
|
abbr "gdvim"="nvim --listen /tmp/godot.pipe"
|
||||||
|
abbr "mux"="tmuxinator"
|
||||||
|
abbr "replace_string"="replace_string --disable_p4 \"%\" \"%\""
|
9
config/.ripgreprc
Normal file
9
config/.ripgreprc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# add gdscript type
|
||||||
|
--type-add
|
||||||
|
gd:*.{gd,gdscript}*
|
||||||
|
|
||||||
|
# Search hidden files / directories (e.g. dotfiles) by default
|
||||||
|
--hidden
|
||||||
|
|
||||||
|
# Because who cares about case!?
|
||||||
|
--smart-case
|
@ -1,12 +1,12 @@
|
|||||||
[user]
|
[user]
|
||||||
name = Christian Nieves
|
name = Christian Nieves
|
||||||
email = cnieves@google.com
|
email = cnieves@google.com
|
||||||
[color]
|
[color]
|
||||||
ui = auto
|
ui = auto
|
||||||
# [url "ssh://git@github.com/"]
|
[url "ssh://git@github.com/"]
|
||||||
# insteadOf = https://github.com/
|
insteadOf = https://github.com/
|
||||||
[alias]
|
[alias]
|
||||||
gr = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
gr = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||||
# one-line log
|
# one-line log
|
||||||
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
|
l = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
|
||||||
|
|
||||||
@ -34,17 +34,69 @@
|
|||||||
la = "!git config -l | grep alias | cut -c 7-"
|
la = "!git config -l | grep alias | cut -c 7-"
|
||||||
po = push origin
|
po = push origin
|
||||||
[core]
|
[core]
|
||||||
autocrlf = false
|
autocrlf = false
|
||||||
|
excludesfile = /Users/christian/.gitignore_global
|
||||||
[icdiff]
|
[icdiff]
|
||||||
options = --highlight --line-numbers
|
options = --highlight --line-numbers
|
||||||
[merge]
|
[merge]
|
||||||
tool = "nvim"
|
tool = "nvim"
|
||||||
[mergetool "nvim"]
|
[mergetool "nvim"]
|
||||||
cmd = nvim -d -c \"wincmd l\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"
|
cmd = nvim -d -c \"wincmd l\" \"$LOCAL\" \"$MERGED\" \"$REMOTE\"
|
||||||
[diff]
|
|
||||||
tool = icdiff
|
|
||||||
[filter "lfs"]
|
[filter "lfs"]
|
||||||
clean = git-lfs clean -- %f
|
clean = git-lfs clean -- %f
|
||||||
smudge = git-lfs smudge -- %f
|
smudge = git-lfs smudge -- %f
|
||||||
process = git-lfs filter-process
|
process = git-lfs filter-process
|
||||||
required = true
|
required = true
|
||||||
|
|
||||||
|
|
||||||
|
# clearly makes git better
|
||||||
|
|
||||||
|
[column]
|
||||||
|
ui = auto
|
||||||
|
[branch]
|
||||||
|
sort = -committerdate
|
||||||
|
[tag]
|
||||||
|
sort = version:refname
|
||||||
|
[init]
|
||||||
|
defaultBranch = main
|
||||||
|
[diff]
|
||||||
|
algorithm = histogram
|
||||||
|
colorMoved = plain
|
||||||
|
mnemonicPrefix = true
|
||||||
|
renames = true
|
||||||
|
tool = icdiff
|
||||||
|
[push]
|
||||||
|
default = simple
|
||||||
|
autoSetupRemote = true
|
||||||
|
followTags = true
|
||||||
|
[fetch]
|
||||||
|
prune = true
|
||||||
|
pruneTags = true
|
||||||
|
all = true
|
||||||
|
|
||||||
|
# why the hell not?
|
||||||
|
|
||||||
|
[help]
|
||||||
|
autocorrect = prompt
|
||||||
|
[commit]
|
||||||
|
verbose = true
|
||||||
|
[rerere]
|
||||||
|
enabled = true
|
||||||
|
autoupdate = true
|
||||||
|
[core]
|
||||||
|
excludesfile = ~/.gitignore
|
||||||
|
[rebase]
|
||||||
|
autoSquash = true
|
||||||
|
autoStash = true
|
||||||
|
updateRefs = true
|
||||||
|
|
||||||
|
# a matter of taste (uncomment if you dare)
|
||||||
|
|
||||||
|
[core]
|
||||||
|
# fsmonitor = true
|
||||||
|
# untrackedCache = true
|
||||||
|
[merge]
|
||||||
|
# (just 'diff3' if git version < 2.3)
|
||||||
|
# conflictstyle = zdiff3
|
||||||
|
[pull]
|
||||||
|
# rebase = true
|
||||||
|
19
git/.gitignore_global
Normal file
19
git/.gitignore_global
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
|
||||||
|
# OS generated files #
|
||||||
|
######################
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
|
||||||
|
# Compiled source #
|
||||||
|
###################
|
||||||
|
*.com
|
||||||
|
*.class
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.so
|
73
google/.alacritty.toml
Normal file
73
google/.alacritty.toml
Normal file
@ -0,0 +1,73 @@
|
|||||||
|
[font]
|
||||||
|
size = 12
|
||||||
|
normal = { family = "ComicCodeLigatures Nerd Font Light" }
|
||||||
|
|
||||||
|
[window]
|
||||||
|
option_as_alt = "OnlyLeft"
|
||||||
|
decorations = "None"
|
||||||
|
|
||||||
|
[colors.primary]
|
||||||
|
background = "#24273a"
|
||||||
|
foreground = "#cad3f5"
|
||||||
|
dim_foreground = "#8087a2"
|
||||||
|
bright_foreground = "#cad3f5"
|
||||||
|
|
||||||
|
[colors.cursor]
|
||||||
|
text = "#24273a"
|
||||||
|
cursor = "#f4dbd6"
|
||||||
|
|
||||||
|
[colors.vi_mode_cursor]
|
||||||
|
text = "#24273a"
|
||||||
|
cursor = "#b7bdf8"
|
||||||
|
|
||||||
|
[colors.search.matches]
|
||||||
|
foreground = "#24273a"
|
||||||
|
background = "#a5adcb"
|
||||||
|
|
||||||
|
[colors.search.focused_match]
|
||||||
|
foreground = "#24273a"
|
||||||
|
background = "#a6da95"
|
||||||
|
|
||||||
|
[colors.footer_bar]
|
||||||
|
foreground = "#24273a"
|
||||||
|
background = "#a5adcb"
|
||||||
|
|
||||||
|
[colors.hints.start]
|
||||||
|
foreground = "#24273a"
|
||||||
|
background = "#eed49f"
|
||||||
|
|
||||||
|
[colors.hints.end]
|
||||||
|
foreground = "#24273a"
|
||||||
|
background = "#a5adcb"
|
||||||
|
|
||||||
|
[colors.selection]
|
||||||
|
text = "#24273a"
|
||||||
|
background = "#f4dbd6"
|
||||||
|
|
||||||
|
[colors.normal]
|
||||||
|
black = "#494d64"
|
||||||
|
red = "#ed8796"
|
||||||
|
green = "#a6da95"
|
||||||
|
yellow = "#eed49f"
|
||||||
|
blue = "#8aadf4"
|
||||||
|
magenta = "#f5bde6"
|
||||||
|
cyan = "#8bd5ca"
|
||||||
|
white = "#b8c0e0"
|
||||||
|
|
||||||
|
[colors.bright]
|
||||||
|
black = "#5b6078"
|
||||||
|
red = "#ed8796"
|
||||||
|
green = "#a6da95"
|
||||||
|
yellow = "#eed49f"
|
||||||
|
blue = "#8aadf4"
|
||||||
|
magenta = "#f5bde6"
|
||||||
|
cyan = "#8bd5ca"
|
||||||
|
white = "#a5adcb"
|
||||||
|
|
||||||
|
[[colors.indexed_colors]]
|
||||||
|
index = 16
|
||||||
|
color = "#f5a97f"
|
||||||
|
|
||||||
|
[[colors.indexed_colors]]
|
||||||
|
index = 17
|
||||||
|
color = "#f4dbd6"
|
@ -26,14 +26,13 @@
|
|||||||
# --order_output=no: By default, blaze query orders the outputs. This can be expensive,
|
# --order_output=no: By default, blaze query orders the outputs. This can be expensive,
|
||||||
# so this flag disables the ordering step.
|
# so this flag disables the ordering step.
|
||||||
build --nostamp
|
build --nostamp
|
||||||
# build --workspace_status_command=/bin/true
|
build --workspace_status_command=/bin/true
|
||||||
# build --experimental_spawn_scheduler
|
|
||||||
build --trim_test_configuration
|
build --trim_test_configuration
|
||||||
build --show_progress_rate_limit=1
|
build --show_progress_rate_limit=1
|
||||||
# query --order_output=no
|
|
||||||
|
|
||||||
# --test_output / --test_summary obviously don’t do anything for performance,
|
# --test_output / --test_summary obviously don’t do anything for performance,
|
||||||
# keep them if you like what they do.
|
# keep them if you like what they do.
|
||||||
|
test --test_output=all --test_summary=detailed --build_tests_only
|
||||||
# test --test_output=errors --test_summary=detailed --build_tests_only
|
# test --test_output=errors --test_summary=detailed --build_tests_only
|
||||||
|
|
||||||
# In C++, failing tests will print a lot of noisy thread output. Use
|
# In C++, failing tests will print a lot of noisy thread output. Use
|
||||||
@ -44,8 +43,7 @@ build --show_progress_rate_limit=1
|
|||||||
|
|
||||||
import %workspace%/java/com/google/android/gmscore/blaze/blazerc
|
import %workspace%/java/com/google/android/gmscore/blaze/blazerc
|
||||||
build --config=gmscore_tap
|
build --config=gmscore_tap
|
||||||
test --config=gmscore_test
|
test --config=gmscore_test_debug
|
||||||
test --test_output=all
|
|
||||||
#
|
|
||||||
# https://g3doc.corp.google.com/devtools/blaze/g3doc/faq.md?cl=head#BlazeOom
|
# https://g3doc.corp.google.com/devtools/blaze/g3doc/faq.md?cl=head#BlazeOom
|
||||||
startup --host_jvm_args=-Xmx18G --host_jvm_args=-Xms18G
|
startup --host_jvm_args=-Xmx18G --host_jvm_args=-Xms18G
|
||||||
|
13
google/.hgrc
13
google/.hgrc
@ -16,15 +16,15 @@ opts.vimdiff = -d
|
|||||||
# opts.vimdiff = -c ':call ShowMercurialDiff(argv(0), argv(1))'
|
# opts.vimdiff = -c ':call ShowMercurialDiff(argv(0), argv(1))'
|
||||||
|
|
||||||
[extensions]
|
[extensions]
|
||||||
unsupported.tree =
|
# unsupported.tree =
|
||||||
unsupported.alices =
|
# unsupported.alices =
|
||||||
extdiff =
|
extdiff =
|
||||||
color =
|
# color =
|
||||||
beautifygraph =
|
beautifygraph =
|
||||||
|
|
||||||
[alices]
|
# [alices]
|
||||||
findings.extra_args = --proxy
|
# findings.extra_args = --proxy
|
||||||
summarize.extra_args = --proxy
|
# summarize.extra_args = --proxy
|
||||||
|
|
||||||
[merge-tools]
|
[merge-tools]
|
||||||
vimdiff.executable = nvim
|
vimdiff.executable = nvim
|
||||||
@ -51,6 +51,7 @@ dt = icdiff --pager=on
|
|||||||
dtex = dt -r exported(.)
|
dtex = dt -r exported(.)
|
||||||
dtp4 = dt -r p4base
|
dtp4 = dt -r p4base
|
||||||
dtup = dt -r .^
|
dtup = dt -r .^
|
||||||
|
ra = revert --all
|
||||||
|
|
||||||
whatsout = status -n --change . --template=hgshort_status
|
whatsout = status -n --change . --template=hgshort_status
|
||||||
what = status -n --change . --template=hgshort_status
|
what = status -n --change . --template=hgshort_status
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
parren
|
|
||||||
yurilev
|
|
@ -1,7 +0,0 @@
|
|||||||
# hgshort - Single Letter Shorthands for Fig
|
|
||||||
|
|
||||||
hgshort makes it really easy to work with files and revisions in Fig. Use
|
|
||||||
**single letter** shorthand names, instead of long paths and hash codes.
|
|
||||||
|
|
||||||
Documentation can be found
|
|
||||||
[here](http://g3doc/experimental/fig_contrib/g3doc/hgshort).
|
|
@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Creates the recommended alias definitions for hgshort when sourced.
|
|
||||||
|
|
||||||
HGSHORT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}}")" && pwd)"
|
|
||||||
|
|
||||||
alias hg="source $HGSHORT_DIR/hgshort.sh"
|
|
||||||
|
|
||||||
# There are two ways to customize:
|
|
||||||
# - define HGSHORT_CMDS_ADDITIONAL in your shell configuration to augment the
|
|
||||||
# following list.
|
|
||||||
# - define HGSHORT_CMDS directly in your shell configuration to override the
|
|
||||||
# following list.
|
|
||||||
if [[ -z "$HGSHORT_CMDS" ]]; then
|
|
||||||
HGSHORT_CMDS="$HGSHORT_CMDS_ADDITIONAL ls cat head tail mv cp rm chmod g4 diff merge patch meld vim emacs edit trim less more"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Doing the variable expansion with an 'echo' makes this compatible with zsh.
|
|
||||||
for c in $(echo "$HGSHORT_CMDS"); do
|
|
||||||
alias $c="source $HGSHORT_DIR/tobashargs.sh $c"
|
|
||||||
done
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
HGSHORT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}}")" && pwd)"
|
|
||||||
|
|
||||||
source $HGSHORT_DIR/aliases.sh
|
|
||||||
cd $(hg hgd "$@")
|
|
||||||
|
|
||||||
CITC="${PWD#/google/src/cloud/$USER/}"
|
|
||||||
CITC="${CITC%/google3}"
|
|
||||||
echo "CitC $CITC"
|
|
||||||
|
|
||||||
hg l --color=always
|
|
@ -1,73 +0,0 @@
|
|||||||
# .hgrc for use with hgshort.
|
|
||||||
#
|
|
||||||
# Adds generated single letter revision and file shorthand names to the outputs
|
|
||||||
# of 'hg l/xl/ll' and 'hg status'.
|
|
||||||
#
|
|
||||||
# * For hg l/xl/ll, modifies the defaults set by:
|
|
||||||
# http://google3/devtools/piper/hgfission/client/config/google-ui-tweaks.rc
|
|
||||||
#
|
|
||||||
# * For hg status, overrides the default template (no extensible template
|
|
||||||
# available), but with one that looks the same.
|
|
||||||
#
|
|
||||||
# To use, add the following line to your ~/.hgrc:
|
|
||||||
# %include /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgshort.hgrc
|
|
||||||
#
|
|
||||||
# To make hg and other commands actually recognize the outputted shorthand
|
|
||||||
# names, follow go/hgshort#initial-setup.
|
|
||||||
#
|
|
||||||
# If you have already customized the outputs of 'hg l/xl/ll' or 'hg status',
|
|
||||||
# including this file would override them. Instead:
|
|
||||||
#
|
|
||||||
# * If you only aliased or added default arguments for 'hg status', add the
|
|
||||||
# following argument:
|
|
||||||
# --template=hgshort_status
|
|
||||||
#
|
|
||||||
# * If you customized the outputs themselves, copy the "extensions" and
|
|
||||||
# optionally the "color" sections and use:
|
|
||||||
#
|
|
||||||
# + hgshort_revision_shorthand — in your log templates.
|
|
||||||
# + hgshort_file_shorthand — in your status templates.
|
|
||||||
|
|
||||||
[extensions]
|
|
||||||
hgshort = /google/src/head/depot/google3/experimental/fig_contrib/hgshort/hgshort.py
|
|
||||||
|
|
||||||
[color]
|
|
||||||
# The color used for hgshort's single letter aliases.
|
|
||||||
hgshort.alias = red bold
|
|
||||||
|
|
||||||
[color256]
|
|
||||||
# The color used for hgshort's single letter aliases.
|
|
||||||
hgshort.alias = orange bold
|
|
||||||
|
|
||||||
##### hg l/xl/ll configuration #####
|
|
||||||
|
|
||||||
[templatealias]
|
|
||||||
# Get an alias for the current revision (node) with an uppercase letter.
|
|
||||||
hgshort_revision_shorthand='{hgshort(node,"A")}'
|
|
||||||
# Add the revision hgshort shorthand name to the output of 'hg l/xl/ll'.
|
|
||||||
google_compact_line_1_part_1 = '{hgshort_revision_shorthand}{google_compact_uniq_id}'
|
|
||||||
|
|
||||||
##### hg status configuration #####
|
|
||||||
|
|
||||||
[templatealias]
|
|
||||||
# Get an alias for the current file with a lowercase letter.
|
|
||||||
hgshort_file_shorthand='{hgshort(relpath(path),"a")}'
|
|
||||||
# Get the right built-in label (style) for the file's status.
|
|
||||||
# See http://screen/8A5ynkOdEED.png for an example output,
|
|
||||||
# and 'hg help status' for details.
|
|
||||||
hgshort_status_label(status) = '{ifeq(status, "?", "status.unknown", ifeq(status, "!", "status.deleted", get(dict(A="status.added", M="status.modified", R="status.removed", I="status.ignored", C="status.clean"), status)))}'
|
|
||||||
hgshort_status_line1 = '{hgshort_file_shorthand}{label(hgshort_status_label(status), '{status} {relpath(path)}')}'
|
|
||||||
hgshort_status_line2 = '{if(source, " {label("status.copied", " {relpath(source)}")}")}'
|
|
||||||
|
|
||||||
[templates]
|
|
||||||
# Add the hgshort file shorthand name to the output of 'hg status'.
|
|
||||||
# In conflict resolution mode, we get empty entries. Filter them out.
|
|
||||||
hgshort_status = '{if(path,"{separate("\n", hgshort_status_line1, hgshort_status_line2)}\n","")}'
|
|
||||||
|
|
||||||
[defaults]
|
|
||||||
# Override the default 'hg status' command, but keep -n working.
|
|
||||||
status = --template=hgshort_status
|
|
||||||
|
|
||||||
[alias]
|
|
||||||
# Override the default 'hg pstatus' template.
|
|
||||||
pstatus = pstatus --template=hgshort_status
|
|
@ -1,82 +0,0 @@
|
|||||||
'''"shorthand" template filter to emit bash shorthand accessors.'''
|
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
from mercurial import error
|
|
||||||
from mercurial import i18n
|
|
||||||
from mercurial import registrar
|
|
||||||
from mercurial import templateutil
|
|
||||||
|
|
||||||
# dict of template built-in functions
|
|
||||||
funcs = {}
|
|
||||||
templatefunc = registrar.templatefunc(funcs)
|
|
||||||
templatefilter = registrar.templatefilter()
|
|
||||||
|
|
||||||
evalboolean = templateutil.evalboolean
|
|
||||||
evalstring = templateutil.evalstring
|
|
||||||
|
|
||||||
bashvarsfile = None
|
|
||||||
if sys.stdout.isatty():
|
|
||||||
if 'HGSHORT_BASH_VARS' in os.environ:
|
|
||||||
bashvarsfile = os.environ['HGSHORT_BASH_VARS']
|
|
||||||
|
|
||||||
nextaliasidbytype = {
|
|
||||||
b'a': ord(b'a'),
|
|
||||||
b'A': ord(b'A')}
|
|
||||||
|
|
||||||
|
|
||||||
def writealias(name, value):
|
|
||||||
if not bashvarsfile:
|
|
||||||
return
|
|
||||||
with open(bashvarsfile, 'a') as f:
|
|
||||||
f.write("export %s='%s'\n" % (name.decode('utf-8'), value.decode('utf-8')))
|
|
||||||
|
|
||||||
|
|
||||||
def nextaliaschar(aliastype):
|
|
||||||
if not bashvarsfile:
|
|
||||||
return None
|
|
||||||
aliasid = nextaliasidbytype[aliastype]
|
|
||||||
if aliasid < ord(aliastype) + 26:
|
|
||||||
nextaliasidbytype[aliastype] += 1
|
|
||||||
return chr(aliasid).encode('utf-8')
|
|
||||||
return None
|
|
||||||
|
|
||||||
|
|
||||||
def maybealias(value, aliastype):
|
|
||||||
"""Export as next bash alias and return id, or None."""
|
|
||||||
aliaschar = nextaliaschar(aliastype)
|
|
||||||
if not aliaschar: return None
|
|
||||||
writealias(b'hgshort%s' % aliaschar, value)
|
|
||||||
return aliaschar
|
|
||||||
|
|
||||||
|
|
||||||
@templatefilter(b'shorthand', intype=bytes)
|
|
||||||
def shorthand(text):
|
|
||||||
"""Export as next bash alias."""
|
|
||||||
if not bashvarsfile:
|
|
||||||
return b''
|
|
||||||
aliaschar = maybealias(text, b'a')
|
|
||||||
if not aliaschar:
|
|
||||||
return b' '
|
|
||||||
return b'%s ' % aliaschar
|
|
||||||
|
|
||||||
|
|
||||||
@templatefunc(
|
|
||||||
b'hgshort(text, aliastype)',
|
|
||||||
argspec=b'text aliastype',
|
|
||||||
requires={b'ui'})
|
|
||||||
def hgshort(context, mapping, args):
|
|
||||||
"""Export as next bash alias and return id, or None."""
|
|
||||||
if not bashvarsfile:
|
|
||||||
return b''
|
|
||||||
if b'text' not in args or b'aliastype' not in args:
|
|
||||||
raise error.ParseError(i18n._(b'hgshort() expects one to three arguments'))
|
|
||||||
text = evalstring(context, mapping, args[b'text'])
|
|
||||||
aliastype = evalstring(context, mapping, args[b'aliastype'])
|
|
||||||
aliaschar = maybealias(text, aliastype)
|
|
||||||
if not aliaschar:
|
|
||||||
return b' '
|
|
||||||
aliastext = b'%s ' % aliaschar
|
|
||||||
ui = context.resource(mapping, b'ui')
|
|
||||||
return ui.label(aliastext, b'hgshort.alias')
|
|
@ -1,20 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
HGSHORT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}}")" && pwd)"
|
|
||||||
|
|
||||||
export HGSHORT_BASH_VARS="/tmp/hgshort-bash-vars-$$.sh"
|
|
||||||
export HGSHORT_BASH_ARGS="/tmp/hgshort-bash-args-$$.sh"
|
|
||||||
|
|
||||||
if [[ -f $HGSHORT_BASH_VARS ]]; then
|
|
||||||
\rm $HGSHORT_BASH_VARS # don't call rm to avoid alias loop
|
|
||||||
fi
|
|
||||||
|
|
||||||
HGSHORT_IS_HG=1 $HGSHORT_DIR/tobashargs.py "$@" > $HGSHORT_BASH_ARGS
|
|
||||||
xargs --null --arg-file=$HGSHORT_BASH_ARGS \
|
|
||||||
hg --config extensions.hgshort=$HGSHORT_DIR/hgshort.py
|
|
||||||
\rm $HGSHORT_BASH_ARGS # don't call rm to avoid alias loop
|
|
||||||
|
|
||||||
if [[ -f $HGSHORT_BASH_VARS ]]; then
|
|
||||||
source $HGSHORT_BASH_VARS
|
|
||||||
\rm $HGSHORT_BASH_VARS # don't call rm to avoid alias loop
|
|
||||||
fi
|
|
@ -1,35 +0,0 @@
|
|||||||
#! /usr/bin/python3
|
|
||||||
"""Converts single letters like X to bash variable references like $hgshortX."""
|
|
||||||
|
|
||||||
import os
|
|
||||||
import re
|
|
||||||
import sys
|
|
||||||
|
|
||||||
# Shortands can be prefixed with an 'r', in which case several can be used in
|
|
||||||
# one argument. This is useful for revsets, for example: 'rA::rD'.
|
|
||||||
ALIAS_RE = re.compile(r'^([a-zA-Z])$|\br([A-Z])\b')
|
|
||||||
|
|
||||||
|
|
||||||
def subst(match):
|
|
||||||
char = match.group(1) or match.group(2)
|
|
||||||
|
|
||||||
var = 'hgshort%s' % char
|
|
||||||
if var in os.environ:
|
|
||||||
return os.getenv(var, '')
|
|
||||||
|
|
||||||
return match.group(0)
|
|
||||||
|
|
||||||
|
|
||||||
def substall(s):
|
|
||||||
return ALIAS_RE.sub(subst, s)
|
|
||||||
|
|
||||||
|
|
||||||
# Don't process first argument for `hg`, since it's often a command abbreviated
|
|
||||||
# to a single letter.
|
|
||||||
if 'HGSHORT_IS_HG' in os.environ:
|
|
||||||
args = sys.argv[1:2] + list(substall(a) for a in sys.argv[2:])
|
|
||||||
else:
|
|
||||||
args = list(substall(a) for a in sys.argv[1:])
|
|
||||||
|
|
||||||
# sys.stderr.write('%s\n' % repr(args)) # debug only
|
|
||||||
sys.stdout.write(chr(0).join(args))
|
|
@ -1,11 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
HGSHORT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}}")" && pwd)"
|
|
||||||
|
|
||||||
export HGSHORT_BASH_CMD="$1"
|
|
||||||
export HGSHORT_BASH_ARGS="/tmp/HGSHORT-bash-args-$$.sh"
|
|
||||||
|
|
||||||
shift
|
|
||||||
$HGSHORT_DIR/tobashargs.py "$@" > $HGSHORT_BASH_ARGS
|
|
||||||
xargs --null --arg-file=$HGSHORT_BASH_ARGS $HGSHORT_BASH_CMD
|
|
||||||
\rm $HGSHORT_BASH_ARGS # don't call rm to avoid alias loop
|
|
@ -52,10 +52,8 @@ set -g status on
|
|||||||
set-option -g status-interval 2
|
set-option -g status-interval 2
|
||||||
bind Escape confirm-before "kill-server"
|
bind Escape confirm-before "kill-server"
|
||||||
|
|
||||||
# Automatically set window title
|
# set-option -g automatic-rename on
|
||||||
set-window-option -g automatic-rename off
|
# set-option -g automatic-rename-format '#{?#{m/r:^(/google/src)?/cloud/,#{pane_current_path}},#{s|^(/google/src)?/cloud/[^/]+/([^/]+).+$|\2|:pane_current_path},#{b:pane_current_path}}'
|
||||||
set-window-option -g allow-rename on
|
|
||||||
#set-option -g set-titles on
|
|
||||||
|
|
||||||
set-window-option -g xterm-keys on
|
set-window-option -g xterm-keys on
|
||||||
set-option -g xterm-keys on
|
set-option -g xterm-keys on
|
||||||
@ -90,6 +88,8 @@ bind-key s split-window -v -c '#{pane_current_path}'
|
|||||||
|
|
||||||
bind -n M-s set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
|
bind -n M-s set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
|
||||||
|
|
||||||
|
# bind -n C-Space select-pane -D \; resize-pane -Z
|
||||||
|
|
||||||
bind -n M-z resize-pane -Z
|
bind -n M-z resize-pane -Z
|
||||||
|
|
||||||
bind -n M-j resize-pane -D 5
|
bind -n M-j resize-pane -D 5
|
||||||
@ -117,24 +117,57 @@ bind-key -r > swap-window -t +1\; select-window -t +1
|
|||||||
|
|
||||||
# loop through current window's panes while zoomed
|
# loop through current window's panes while zoomed
|
||||||
bind -r "'" select-pane -t .+1 \; resize-pane -Z
|
bind -r "'" select-pane -t .+1 \; resize-pane -Z
|
||||||
bind -r ";" select-pane -t .-1 \; resize-pane -Z
|
bind -r ";" select-pane -t .+1 \; resize-pane -Z \; copy-mode
|
||||||
|
|
||||||
bind-key C-a set-option -g prefix C-a
|
bind-key C-a set-option -g prefix C-a
|
||||||
|
|
||||||
# No delay for escape key press
|
# No delay for escape key press
|
||||||
set -sg escape-time 0
|
set -sg escape-time 0
|
||||||
|
|
||||||
|
run ~/.tmux/plugins/tmux/catppuccin.tmux
|
||||||
|
|
||||||
|
# text for the window when inactive
|
||||||
|
set -g @catppuccin_window_default_fill "number"
|
||||||
|
set -g @catppuccin_window_default_text '#{?#{m/r:^(/google/src)?/cloud/,#{pane_current_path}},#{s|^(/google/src)?/cloud/[^/]+/([^/]+).+$|\2|:pane_current_path},#{b:pane_current_path}}'
|
||||||
|
# text for the window when active
|
||||||
|
set -g @catppuccin_window_current_fill "number"
|
||||||
|
set -g @catppuccin_window_current_text '#{?#{m/r:^(/google/src)?/cloud/,#{pane_current_path}},#{s|^(/google/src)?/cloud/[^/]+/([^/]+).+$|\2|:pane_current_path},#{b:pane_current_path}}'
|
||||||
|
|
||||||
|
set -g @catppuccin_icon_window_bell ""
|
||||||
|
|
||||||
|
# Make the status line pretty and add some modules
|
||||||
|
|
||||||
|
set -g status-right-length 100
|
||||||
|
|
||||||
|
set -g status-left-length 100
|
||||||
|
|
||||||
|
set -g status-left ""
|
||||||
|
|
||||||
|
set -g status-right "#{E:@catppuccin_status_application}"
|
||||||
|
|
||||||
|
set -agF status-right "#{E:@catppuccin_status_cpu}"
|
||||||
|
|
||||||
|
set -ag status-right "#{E:@catppuccin_status_session}"
|
||||||
|
|
||||||
|
set -ag status-right "#{E:@catppuccin_status_uptime}"
|
||||||
|
|
||||||
|
set -agF status-right "#{E:@catppuccin_status_battery}"
|
||||||
|
|
||||||
|
|
||||||
# List of plugins
|
# List of plugins
|
||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||||
set -g @plugin 'tmux-plugins/tmux-cpu'
|
set -g @plugin 'tmux-plugins/tmux-cpu'
|
||||||
|
set -g @plugin 'xamut/tmux-weather'
|
||||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||||
set -g @plugin 'tmux-plugins/tmux-cowboy' # Kill process in pane w/ prefix+*
|
set -g @plugin 'tmux-plugins/tmux-cowboy' # Kill process in pane w/ prefix+*
|
||||||
set -g @plugin 'catppuccin/tmux'
|
set -g @plugin 'catppuccin/tmux'
|
||||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
set -g @plugin 'tmux-plugins/tmux-continuum'
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||||
|
set -g @plugin 'catppuccin/tmux#v2.1.2'
|
||||||
|
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-restore 'on'
|
||||||
set -g @resurrect-dir '$HOME/.tmux/resurrect'
|
set -g @resurrect-dir '$HOME/.tmux/resurrect'
|
||||||
|
@ -1,83 +0,0 @@
|
|||||||
######################
|
|
||||||
### DESIGN CHANGES ###
|
|
||||||
######################
|
|
||||||
|
|
||||||
# Variables
|
|
||||||
left_sep=''
|
|
||||||
right_sep=''
|
|
||||||
left_alt_sep=''
|
|
||||||
right_alt_sep=''
|
|
||||||
|
|
||||||
set -g @cpu_low_icon "=" # icon when cpu is low
|
|
||||||
set -g @cpu_medium_icon "≡" # icon when cpu is medium
|
|
||||||
set -g @cpu_high_icon "≣" # icon when cpu is high
|
|
||||||
|
|
||||||
set -g @ram_low_fg_color "#[fg=#000000]" # foreground color when ram is low
|
|
||||||
set -g @ram_medium_fg_color "#[fg=#000000]" # foreground color when ram is medium
|
|
||||||
set -g @ram_high_fg_color "#[fg=#000000]" # foreground color when ram is high
|
|
||||||
|
|
||||||
set -g @cpu_low_fg_color "#[fg=#000000]" # foreground color when cpu is low
|
|
||||||
set -g @cpu_medium_fg_color "#[fg=#000000]" # foreground color when cpu is medium
|
|
||||||
set -g @cpu_high_fg_color "#[fg=#000000]" # foreground color when cpu is high
|
|
||||||
|
|
||||||
set -g @cpu_low_bg_color "#[bg=green]" # background color when cpu is low
|
|
||||||
set -g @cpu_medium_bg_color "#[bg=yellow]" # background color when cpu is medium
|
|
||||||
set -g @cpu_high_bg_color "#[bg=red]" # background color when cpu is high
|
|
||||||
|
|
||||||
# set -g @cpu_low_fg_color "#[fg=#83bd68]"
|
|
||||||
# set -g @cpu_medium_fg_color "#[fg=#f0c674]"
|
|
||||||
# set -g @cpu_high_fg_color "#[fg=#cc6666]"
|
|
||||||
|
|
||||||
# panes
|
|
||||||
|
|
||||||
|
|
||||||
## Status Basr
|
|
||||||
set -g status-position bottom
|
|
||||||
set -g status-style bg=colour234,fg=colour238,dim
|
|
||||||
set -g status-left-length 20
|
|
||||||
set -g status-left ''
|
|
||||||
set -g status-interval 2
|
|
||||||
|
|
||||||
# Messages
|
|
||||||
set -g message-style bold,fg=colour232,bg=colour81
|
|
||||||
|
|
||||||
# Window Mode
|
|
||||||
|
|
||||||
|
|
||||||
# Window Status
|
|
||||||
set -g status-style fg=colour137,bg=colour234,dim
|
|
||||||
|
|
||||||
set-option -g visual-activity off
|
|
||||||
set-option -g visual-bell off
|
|
||||||
set-option -g visual-silence off
|
|
||||||
set-window-option -g monitor-activity off
|
|
||||||
set-option -g bell-action none
|
|
||||||
|
|
||||||
|
|
||||||
# Modes
|
|
||||||
setw -g clock-mode-colour colour135
|
|
||||||
setw -g mode-style bg=colour6,fg=colour0,bold,fg=colour46,bg=colour238
|
|
||||||
|
|
||||||
|
|
||||||
# Panes
|
|
||||||
setw -g clock-mode-colour cyan
|
|
||||||
|
|
||||||
set -g mode-style bg=brightcyan,fg=black
|
|
||||||
set -g message-style bg=brightblack,fg=cyan
|
|
||||||
set -g message-command-style bg=brightblack,fg=cyan
|
|
||||||
|
|
||||||
set -g status-style fg=white,bg=default
|
|
||||||
set -g status-left '#{?pane_synchronized, ¤ ,}#{?window_zoomed_flag, ↕ ,}'
|
|
||||||
|
|
||||||
set -g status-right "#{cpu_bg_color}#{cpu_fg_color} CPU:#{cpu_percentage} #{fg=black}$right_alt_sep#{ram_fg_color}#{ram_bg_color} RAM:#{ram_percentage} #{ram_bg_color} #[fg=black]$right_sep#[fg=default]#[bg=default] #H"
|
|
||||||
set -g status-right-length 55
|
|
||||||
|
|
||||||
set -g pane-border-style fg=brightblack,bg=default
|
|
||||||
set -g pane-active-border-style fg=colour104,bg=default
|
|
||||||
|
|
||||||
set-window-option -g window-status-style fg=colour104,bg=default
|
|
||||||
set-window-option -g window-status-current-style fg=colour147,bg=default
|
|
||||||
set-window-option -g window-status-activity-style bg=default,fg=yellow
|
|
||||||
set-window-option -g window-status-separator " #[fg=colour104]#[bg=default]$left_alt_sep "
|
|
||||||
|
|
||||||
# Custom styling, http://www.hamvocke.com/blog/a-guide-to-customizing-your-tmux-conf/
|
|
Submodule tmux/.tmux/plugins/tmux-continuum updated: 3e4bc35da4...0698e8f4b1
1
tmux/.tmux/plugins/tmux-prefix-highlight
Submodule
1
tmux/.tmux/plugins/tmux-prefix-highlight
Submodule
Submodule tmux/.tmux/plugins/tmux-prefix-highlight added at 489a961897
1
tmux/.tmux/plugins/tmux-weather
Submodule
1
tmux/.tmux/plugins/tmux-weather
Submodule
Submodule tmux/.tmux/plugins/tmux-weather added at 28a5fbe75b
@ -6,34 +6,22 @@ windows:
|
|||||||
layout: main-horizontal
|
layout: main-horizontal
|
||||||
panes:
|
panes:
|
||||||
- main:
|
- main:
|
||||||
- hgd gmscore
|
|
||||||
- vim
|
|
||||||
- other:
|
- other:
|
||||||
- hgd gmscore
|
|
||||||
|
|
||||||
- experiments:
|
- experiments:
|
||||||
layout: main-horizontal
|
layout: main-horizontal
|
||||||
panes:
|
panes:
|
||||||
- main:
|
- main:
|
||||||
- hgd experiments
|
|
||||||
- vim
|
|
||||||
- other:
|
- other:
|
||||||
- hgd experiments
|
|
||||||
|
|
||||||
- critique:
|
- critique:
|
||||||
layout: main-horizontal
|
layout: main-horizontal
|
||||||
panes:
|
panes:
|
||||||
- main:
|
- main:
|
||||||
- hgd google-comments
|
|
||||||
- vim
|
|
||||||
- other:
|
- other:
|
||||||
- hgd google-comments
|
|
||||||
|
|
||||||
- dotfiles:
|
- dotfiles:
|
||||||
layout: main-horizontal
|
layout: main-horizontal
|
||||||
panes:
|
panes:
|
||||||
- main:
|
- main:
|
||||||
- cd ~/dotfiles
|
|
||||||
- vim
|
|
||||||
- other:
|
- other:
|
||||||
- cd ~/dotfiles
|
|
||||||
|
@ -1,134 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
|
||||||
"Lua.workspace.checkThirdParty": false,
|
|
||||||
"Lua.workspace.library": [
|
|
||||||
"/usr/local/google/home/cnieves/.config/nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/vcscommand.vim",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/cmp-nvim-ciderlsp",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/nvim-lsp-installer",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/fzf",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/fzf.vim",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/ultisnips",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/vim-snippets",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/vim-ripgrep",
|
|
||||||
"/usr/share/vim/google/fzf-query",
|
|
||||||
"/usr/share/vim/google/outline-window",
|
|
||||||
"/usr/share/vim/google/g4",
|
|
||||||
"/usr/share/vim/google/relatedfiles",
|
|
||||||
"/usr/share/vim/google/buganizer",
|
|
||||||
"/usr/share/vim/google/launchbrowser",
|
|
||||||
"/usr/share/vim/google/blaze",
|
|
||||||
"/usr/share/vim/google/gtimporter",
|
|
||||||
"/usr/share/vim/google/piper",
|
|
||||||
"/usr/share/vim/google/critique",
|
|
||||||
"/usr/share/vim/google/googlepaths",
|
|
||||||
"/usr/share/vim/google/googlespell",
|
|
||||||
"/usr/share/vim/google/piperlib",
|
|
||||||
"/usr/share/vim/google/googlestyle",
|
|
||||||
"/usr/share/vim/google/google-filetypes",
|
|
||||||
"/usr/share/vim/google/ft-soy",
|
|
||||||
"/usr/share/vim/google/ft-python",
|
|
||||||
"/usr/share/vim/google/ft-proto",
|
|
||||||
"/usr/share/vim/google/ft-kotlin",
|
|
||||||
"/usr/share/vim/google/ft-javascript",
|
|
||||||
"/usr/share/vim/google/ft-java",
|
|
||||||
"/usr/share/vim/google/ft-gss",
|
|
||||||
"/usr/share/vim/google/ft-go",
|
|
||||||
"/usr/share/vim/google/ft-gin",
|
|
||||||
"/usr/share/vim/google/ft-cpp",
|
|
||||||
"/usr/share/vim/google/ft-clif",
|
|
||||||
"/usr/share/vim/google/ft-cel",
|
|
||||||
"/usr/share/vim/google/googlelib",
|
|
||||||
"/usr/share/vim/google/codefmt-google",
|
|
||||||
"/usr/share/vim/google/codefmt",
|
|
||||||
"/usr/share/vim/google/alert",
|
|
||||||
"/usr/share/vim/google/googler",
|
|
||||||
"/usr/share/vim/google/compatibility",
|
|
||||||
"/usr/share/vim/google/logmsgs",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/LuaSnip",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/MatchTagAlways",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/asyncrun.vim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/auto-session",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/catppuccin",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-document-symbol",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-path",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-under-comparator",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-vsnip",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/fidget.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/fzf.vim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/git-conflict.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/java-syntax.vim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/kotlin-vim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-brackets",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-dev",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-style",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-tags",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-vim-lib",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lsp_lines.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lualine.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/mkdir.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nerdcommenter",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nerdtree",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lightbulb",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-notify",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-scrollbar",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/registers.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/symbols-outline.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/telescope-codesearch.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/trouble.nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-better-whitespace",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-case-convert",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-indent-guides",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-nerdtree-syntax-highlight",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-obsession",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-quantum",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-ripgrep",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-signify",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-surround",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-titlecase",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-focus-events",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-navigator",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-tmux-syntax",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-vsnip",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-windowswap",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vimux",
|
|
||||||
"/squashfs-root/usr/share/nvim/runtime",
|
|
||||||
"/squashfs-root/usr/lib/nvim",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/catppuccin/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-buffer/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-cmdline/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-document-symbol/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-path/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/cmp-vsnip/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-brackets/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/lh-vim-lib/after",
|
|
||||||
"/usr/local/google/home/cnieves/.local/share/nvim/site/pack/packer/start/vim-nerdtree-syntax-highlight/after",
|
|
||||||
"/usr/local/google/home/cnieves/.vim",
|
|
||||||
"/usr/share/vim/google/glug",
|
|
||||||
"/usr/share/vim/google/maktaba",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/cmp-nvim-ciderlsp/after",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/plugged/ultisnips/after",
|
|
||||||
"/usr/local/google/home/cnieves/.vim/after",
|
|
||||||
"${3rd}/luassert/library",
|
|
||||||
"${3rd}/busted/library"
|
|
||||||
]
|
|
||||||
}
|
|
@ -1,40 +0,0 @@
|
|||||||
vim.cmd([[
|
|
||||||
function s:blazeExec(cmd, targets)
|
|
||||||
if len(a:targets) == 0
|
|
||||||
exe VimuxRunCommand("build_target.py " . expand('%:p') . " " . a:cmd)
|
|
||||||
else
|
|
||||||
exe VimuxRunCommand(a:cmd . " " . join(a:targets, ' '))
|
|
||||||
endif
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function BlazeRun() abort
|
|
||||||
call <SID>blazeExec("blaze run", blaze#GetTargets())
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function BlazeBuild() abort
|
|
||||||
call <SID>blazeExec("blaze build", blaze#GetTargets())
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function BlazeTest() abort
|
|
||||||
call <SID>blazeExec("blaze test", blaze#GetTargets())
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function BlazeTestDebug() abort
|
|
||||||
call <SID>blazeExec("blaze test --java_debug", blaze#GetTargets())
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function BuildCleanerFile() abort
|
|
||||||
exe VimuxRunCommand("build_cleaner " . expand('%'))
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function UnusedDeps() abort
|
|
||||||
exe VimuxRunCommand("unused_deps --nouse_build_api --blaze_options='--config=gmscore_tap' " . join(blaze#GetTargets(), ' '))
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function BuildCleanerTarget() abort
|
|
||||||
exe VimuxRunCommand("build_cleaner " . join(blaze#GetTargets(), ' '))
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
nnoremap <Leader>bc :call BuildCleanerFile()<cr>
|
|
||||||
nnoremap <Leader>ud :call UnusedDeps()<cr>
|
|
||||||
]])
|
|
@ -1,18 +1,33 @@
|
|||||||
local map = require("utils").map
|
local map = require("utils").map
|
||||||
|
|
||||||
if vim.env.SSH_TTY or vim.env.SSH_CLIENT or vim.env.SSH_CONNECTION then
|
if vim.fn.hostname() == "goblin" then
|
||||||
vim.g.clipboard = {
|
vim.g.clipboard = {
|
||||||
name = "lemonade",
|
name = "wayland",
|
||||||
copy = {
|
copy = {
|
||||||
["+"] = { "lemonade", "copy" },
|
["+"] = { "wl-copy" },
|
||||||
["*"] = { "lemonade", "copy" },
|
["*"] = { "wl-copy" },
|
||||||
},
|
},
|
||||||
paste = {
|
paste = {
|
||||||
["+"] = { "lemonade", "paste" },
|
["+"] = { "wl-paste" },
|
||||||
["*"] = { "lemonade", "paste" },
|
["*"] = { "wl-paste" },
|
||||||
},
|
},
|
||||||
cache_enabled = false,
|
cache_enabled = false,
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
if vim.env.SSH_TTY or vim.env.SSH_CLIENT or vim.env.SSH_CONNECTION then
|
||||||
|
vim.g.clipboard = {
|
||||||
|
name = "lemonade",
|
||||||
|
copy = {
|
||||||
|
["+"] = { "lemonade", "copy" },
|
||||||
|
["*"] = { "lemonade", "copy" },
|
||||||
|
},
|
||||||
|
paste = {
|
||||||
|
["+"] = { "lemonade", "paste" },
|
||||||
|
["*"] = { "lemonade", "paste" },
|
||||||
|
},
|
||||||
|
cache_enabled = false,
|
||||||
|
}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
map("v", "<leader>y", '"+y')
|
map("v", "<leader>y", '"+y')
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
local map = require("utils").map
|
|
||||||
local use_google = require("utils").use_google
|
|
||||||
|
|
||||||
if use_google() then
|
|
||||||
map("n", "<leader>tm", ":Telescope citc modified<CR>")
|
|
||||||
|
|
||||||
-- [F]ig [S]tatus
|
|
||||||
map("n", "<leader>fs", [[<cmd>lua require('telescope').extensions.fig.status{}<CR>]])
|
|
||||||
|
|
||||||
-- [F]ig [X]l
|
|
||||||
map("n", "<leader>fx", [[<cmd>lua require('telescope').extensions.fig.xl{}<CR>]])
|
|
||||||
|
|
||||||
-- [F]ig [W]hatsout
|
|
||||||
map("n", "<leader>fw", [[<cmd>lua require('telescope').extensions.fig.status{whatsout=true}<CR>]])
|
|
||||||
|
|
||||||
-- [F]ig [A]mend
|
|
||||||
map("n", "<leader>fa", [[<cmd>Hg amend<CR>]])
|
|
||||||
|
|
||||||
-- [F]ig [A]mend
|
|
||||||
map("n", "<leader>fe", [[<cmd>Hg evolve<CR>]])
|
|
||||||
|
|
||||||
-- [F]ig [N]ext
|
|
||||||
map("n", "<leader>fn", [[<cmd>Hg next<CR>]])
|
|
||||||
--
|
|
||||||
-- [F]ig [P]rev
|
|
||||||
map("n", "<leader>fp", [[<cmd>Hg prev<CR>]])
|
|
||||||
--
|
|
||||||
-- [F]ig [U]pload
|
|
||||||
map("n", "<leader>fu", [[<cmd>Hg upload tree<CR>]])
|
|
||||||
|
|
||||||
-- map('n', '<Leader>f', ':Figtree<CR>', { silent = true })
|
|
||||||
end
|
|
@ -1,129 +0,0 @@
|
|||||||
local use_google = require("utils").use_google
|
|
||||||
local M = {}
|
|
||||||
|
|
||||||
function M.setup(capabilities)
|
|
||||||
if use_google() then
|
|
||||||
local lspconfig = require("lspconfig")
|
|
||||||
local configs = require("lspconfig.configs")
|
|
||||||
configs.ciderlsp = {
|
|
||||||
default_config = {
|
|
||||||
cmd = {
|
|
||||||
"/google/bin/releases/cider/ciderlsp/ciderlsp",
|
|
||||||
"--tooltag=nvim-lsp",
|
|
||||||
"--forward_sync_responses",
|
|
||||||
"--debug_relay",
|
|
||||||
},
|
|
||||||
offset_encoding = "utf-8",
|
|
||||||
filetypes = {
|
|
||||||
"c",
|
|
||||||
"cpp",
|
|
||||||
"java",
|
|
||||||
"kotlin",
|
|
||||||
"objc",
|
|
||||||
"proto",
|
|
||||||
"textproto",
|
|
||||||
"go",
|
|
||||||
"python",
|
|
||||||
"bzl",
|
|
||||||
"typescript",
|
|
||||||
},
|
|
||||||
root_dir = lspconfig.util.root_pattern("BUILD"),
|
|
||||||
settings = {},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
configs.analysislsp = {
|
|
||||||
default_config = {
|
|
||||||
cmd = {
|
|
||||||
"/google/bin/users/lerm/glint-ale/analysis_lsp/server",
|
|
||||||
"--lint_on_save=false",
|
|
||||||
"--max_qps=10",
|
|
||||||
},
|
|
||||||
offset_encoding = "utf-8",
|
|
||||||
filetypes = {
|
|
||||||
"c",
|
|
||||||
"cpp",
|
|
||||||
"java",
|
|
||||||
"kotlin",
|
|
||||||
"objc",
|
|
||||||
"proto",
|
|
||||||
"textproto",
|
|
||||||
"go",
|
|
||||||
"python",
|
|
||||||
"bzl",
|
|
||||||
"markdown",
|
|
||||||
"typescript",
|
|
||||||
"javascript",
|
|
||||||
},
|
|
||||||
root_dir = function(fname)
|
|
||||||
return string.match(fname, "(/google/src/cloud/[%w_-]+/[%w_-]+/google3/).+$")
|
|
||||||
end,
|
|
||||||
settings = {},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
local my_on_attach = function(client, bufnr)
|
|
||||||
require("lualine").refresh()
|
|
||||||
vim.api.nvim_buf_set_option(bufnr, "omnifunc", "v:lua.vim.lsp.omnifunc")
|
|
||||||
if vim.lsp.formatexpr then -- Neovim v0.6.0+ only.
|
|
||||||
vim.api.nvim_buf_set_option(bufnr, "formatexpr", "v:lua.vim.lsp.formatexpr")
|
|
||||||
end
|
|
||||||
if vim.lsp.tagfunc then
|
|
||||||
vim.api.nvim_buf_set_option(bufnr, "tagfunc", "v:lua.vim.lsp.tagfunc")
|
|
||||||
end
|
|
||||||
|
|
||||||
local lsp_status = require("lsp-status")
|
|
||||||
lsp_status.on_attach(client)
|
|
||||||
end
|
|
||||||
|
|
||||||
local cider_on_attach = function(client, bufnr)
|
|
||||||
my_on_attach(client, bufnr)
|
|
||||||
vim.b["is_cider_lsp_attached"] = "no"
|
|
||||||
end
|
|
||||||
|
|
||||||
local cider_lsp_handlers = {
|
|
||||||
["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
|
|
||||||
underline = true,
|
|
||||||
}),
|
|
||||||
["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {
|
|
||||||
focusable = false,
|
|
||||||
}),
|
|
||||||
}
|
|
||||||
|
|
||||||
cider_lsp_handlers["$/syncResponse"] = function(_, result, ctx)
|
|
||||||
-- is_cider_lsp_attached has been setup via on_init, but hasn't received
|
|
||||||
-- sync response yet.
|
|
||||||
local first_fire = vim.b["is_cider_lsp_attached"] == "no"
|
|
||||||
vim.b["is_cider_lsp_attached"] = "yes"
|
|
||||||
if first_fire then
|
|
||||||
vim.notify("CiderLSP attached", "info")
|
|
||||||
require("lualine").refresh()
|
|
||||||
end
|
|
||||||
end
|
|
||||||
cider_lsp_handlers["window/showMessage"] = function(_, result, ctx)
|
|
||||||
local client = vim.lsp.get_client_by_id(ctx.client_id)
|
|
||||||
local lvl = ({ "ERROR", "WARN", "INFO", "DEBUG" })[result.type]
|
|
||||||
vim.notify({ result.message }, lvl, {
|
|
||||||
title = "LSP | " .. client.name,
|
|
||||||
keep = function()
|
|
||||||
return lvl == "ERROR" or lvl == "WARN"
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
capabilities = require("cmp_nvim_ciderlsp").update_capabilities(capabilities)
|
|
||||||
capabilities.workspace.codeLens = { refreshSupport = true }
|
|
||||||
capabilities.workspace.diagnostics = { refreshSupport = true }
|
|
||||||
|
|
||||||
lspconfig.ciderlsp.setup({
|
|
||||||
capabilities = capabilities,
|
|
||||||
on_attach = cider_on_attach,
|
|
||||||
handlers = cider_lsp_handlers,
|
|
||||||
})
|
|
||||||
lspconfig.analysislsp.setup({
|
|
||||||
capabilities = capabilities,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
@ -1,24 +0,0 @@
|
|||||||
--------- NERD Commenter
|
|
||||||
-- Create default mappings
|
|
||||||
vim.g.NERDCreateDefaultMappings = 0
|
|
||||||
|
|
||||||
-- Add spaces after comment delimiters by default
|
|
||||||
vim.g.NERDSpaceDelims = 1
|
|
||||||
|
|
||||||
-- Use compact syntax for prettified multi-line comments
|
|
||||||
vim.g.NERDCompactSexyComs = 1
|
|
||||||
|
|
||||||
-- Align line-wise comment delimiters flush left instead of following code indentation
|
|
||||||
vim.g.NERDDefaultAlign = "left"
|
|
||||||
|
|
||||||
-- Set a language to use its alternate delimiters by default
|
|
||||||
vim.g.NERDAltDelims_java = 1
|
|
||||||
|
|
||||||
-- Allow commenting and inverting empty lines (useful when commenting a region)
|
|
||||||
vim.g.NERDCommentEmptyLines = 1
|
|
||||||
|
|
||||||
-- Enable trimming of trailing whitespace when uncommenting
|
|
||||||
vim.g.NERDTrimTrailingWhitespace = 1
|
|
||||||
|
|
||||||
--Enable NERDCommenterToggle to check all selected lines is commented or not
|
|
||||||
vim.g.NERDToggleCheckAllLines = 1
|
|
@ -1,75 +0,0 @@
|
|||||||
local map = require("utils").map
|
|
||||||
|
|
||||||
local api = require("nvim-tree.api")
|
|
||||||
|
|
||||||
local function opts(desc)
|
|
||||||
return { desc = "nvim-tree: " .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
|
|
||||||
end
|
|
||||||
|
|
||||||
function on_attach(bufnr)
|
|
||||||
vim.keymap.set("n", "O", api.tree.change_root_to_node, opts("CD"))
|
|
||||||
vim.keymap.set("n", "?", api.tree.toggle_help, opts("Help"))
|
|
||||||
|
|
||||||
-- put some default mappings here
|
|
||||||
vim.keymap.set("n", "<C-e>", api.node.open.replace_tree_buffer, opts("Open: In Place"))
|
|
||||||
vim.keymap.set("n", "<C-k>", api.node.show_info_popup, opts("Info"))
|
|
||||||
vim.keymap.set("n", "<C-r>", api.fs.rename_sub, opts("Rename: Omit Filename"))
|
|
||||||
vim.keymap.set("n", "<C-t>", api.node.open.tab, opts("Open: New Tab"))
|
|
||||||
vim.keymap.set("n", "<C-v>", api.node.open.vertical, opts("Open: Vertical Split"))
|
|
||||||
vim.keymap.set("n", "<C-x>", api.node.open.horizontal, opts("Open: Horizontal Split"))
|
|
||||||
vim.keymap.set("n", "<BS>", api.node.navigate.parent_close, opts("Close Directory"))
|
|
||||||
vim.keymap.set("n", "<CR>", api.node.open.edit, opts("Open"))
|
|
||||||
vim.keymap.set("n", "<Tab>", api.node.open.preview, opts("Open Preview"))
|
|
||||||
vim.keymap.set("n", ">", api.node.navigate.sibling.next, opts("Next Sibling"))
|
|
||||||
vim.keymap.set("n", "<", api.node.navigate.sibling.prev, opts("Previous Sibling"))
|
|
||||||
vim.keymap.set("n", ".", api.node.run.cmd, opts("Run Command"))
|
|
||||||
vim.keymap.set("n", "-", api.tree.change_root_to_parent, opts("Up"))
|
|
||||||
vim.keymap.set("n", "a", api.fs.create, opts("Create"))
|
|
||||||
vim.keymap.set("n", "bmv", api.marks.bulk.move, opts("Move Bookmarked"))
|
|
||||||
vim.keymap.set("n", "B", api.tree.toggle_no_buffer_filter, opts("Toggle No Buffer"))
|
|
||||||
vim.keymap.set("n", "c", api.fs.copy.node, opts("Copy"))
|
|
||||||
-- vim.keymap.set('n', 'C', api.tree.toggle_git_clean_filter, opts('Toggle Git Clean'))
|
|
||||||
-- vim.keymap.set('n', '[c', api.node.navigate.git.prev, opts('Prev Git'))
|
|
||||||
-- vim.keymap.set('n', ']c', api.node.navigate.git.next, opts('Next Git'))
|
|
||||||
vim.keymap.set("n", "d", api.fs.remove, opts("Delete"))
|
|
||||||
vim.keymap.set("n", "D", api.fs.trash, opts("Trash"))
|
|
||||||
vim.keymap.set("n", "E", api.tree.expand_all, opts("Expand All"))
|
|
||||||
vim.keymap.set("n", "e", api.fs.rename_basename, opts("Rename: Basename"))
|
|
||||||
vim.keymap.set("n", "]e", api.node.navigate.diagnostics.next, opts("Next Diagnostic"))
|
|
||||||
vim.keymap.set("n", "[e", api.node.navigate.diagnostics.prev, opts("Prev Diagnostic"))
|
|
||||||
vim.keymap.set("n", "F", api.live_filter.clear, opts("Clean Filter"))
|
|
||||||
vim.keymap.set("n", "f", api.live_filter.start, opts("Filter"))
|
|
||||||
vim.keymap.set("n", "g?", api.tree.toggle_help, opts("Help"))
|
|
||||||
vim.keymap.set("n", "gy", api.fs.copy.absolute_path, opts("Copy Absolute Path"))
|
|
||||||
vim.keymap.set("n", "H", api.tree.toggle_hidden_filter, opts("Toggle Dotfiles"))
|
|
||||||
vim.keymap.set("n", "I", api.tree.toggle_gitignore_filter, opts("Toggle Git Ignore"))
|
|
||||||
vim.keymap.set("n", "J", api.node.navigate.sibling.last, opts("Last Sibling"))
|
|
||||||
vim.keymap.set("n", "K", api.node.navigate.sibling.first, opts("First Sibling"))
|
|
||||||
vim.keymap.set("n", "m", api.marks.toggle, opts("Toggle Bookmark"))
|
|
||||||
vim.keymap.set("n", "o", api.node.open.edit, opts("Open"))
|
|
||||||
-- vim.keymap.set('n', 'O', api.node.open.no_window_picker, opts('Open: No Window Picker'))
|
|
||||||
vim.keymap.set("n", "p", api.fs.paste, opts("Paste"))
|
|
||||||
vim.keymap.set("n", "P", api.node.navigate.parent, opts("Parent Directory"))
|
|
||||||
vim.keymap.set("n", "q", api.tree.close, opts("Close"))
|
|
||||||
vim.keymap.set("n", "r", api.fs.rename, opts("Rename"))
|
|
||||||
vim.keymap.set("n", "R", api.tree.reload, opts("Refresh"))
|
|
||||||
vim.keymap.set("n", "s", api.node.run.system, opts("Run System"))
|
|
||||||
vim.keymap.set("n", "S", api.tree.search_node, opts("Search"))
|
|
||||||
vim.keymap.set("n", "U", api.tree.toggle_custom_filter, opts("Toggle Hidden"))
|
|
||||||
vim.keymap.set("n", "W", api.tree.collapse_all, opts("Collapse"))
|
|
||||||
vim.keymap.set("n", "x", api.fs.cut, opts("Cut"))
|
|
||||||
vim.keymap.set("n", "y", api.fs.copy.filename, opts("Copy Name"))
|
|
||||||
vim.keymap.set("n", "Y", api.fs.copy.relative_path, opts("Copy Relative Path"))
|
|
||||||
end
|
|
||||||
|
|
||||||
require("nvim-tree").setup({
|
|
||||||
on_attach = on_attach,
|
|
||||||
update_focused_file = {
|
|
||||||
enable = true,
|
|
||||||
update_root = false,
|
|
||||||
ignore_list = {},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
map("n", "<C-T>", ":NvimTreeToggle<CR>")
|
|
||||||
map("n", "<C-F>", ":NvimTreeFindFileToggle<CR>")
|
|
@ -1,66 +0,0 @@
|
|||||||
require("refactoring").setup({})
|
|
||||||
|
|
||||||
-- load refactoring Telescope extension
|
|
||||||
require("telescope").load_extension("refactoring")
|
|
||||||
|
|
||||||
-- remap to open the Telescope refactoring menu in visual mode
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"v",
|
|
||||||
"<leader>rr",
|
|
||||||
"<Esc><cmd>lua require('telescope').extensions.refactoring.refactors()<CR>",
|
|
||||||
{ noremap = true }
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Remaps for the refactoring operations currently offered by the plugin
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"v",
|
|
||||||
"<leader>rx",
|
|
||||||
[[ <Esc><Cmd>lua require('refactoring').refactor('Extract Function')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"v",
|
|
||||||
"<leader>rxf",
|
|
||||||
[[ <Esc><Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"v",
|
|
||||||
"<leader>rxv",
|
|
||||||
[[ <Esc><Cmd>lua require('refactoring').refactor('Extract Variable')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"v",
|
|
||||||
"<leader>ri",
|
|
||||||
[[ <Esc><Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Extract block doesn't need visual mode
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"n",
|
|
||||||
"<leader>rxb",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Block')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"n",
|
|
||||||
"<leader>rxbf",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Block To File')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
|
|
||||||
-- Inline variable can also pick up the identifier currently under the cursor without visual mode
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"n",
|
|
||||||
"<leader>ri",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
||||||
vim.api.nvim_set_keymap(
|
|
||||||
"n",
|
|
||||||
"<leader>rx",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Variable')<CR>]],
|
|
||||||
{ noremap = true, silent = true, expr = false }
|
|
||||||
)
|
|
@ -1,43 +0,0 @@
|
|||||||
local home = vim.fn.expand("~/zettelkasten")
|
|
||||||
|
|
||||||
require("telekasten").setup({
|
|
||||||
home = home,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.cmd([[
|
|
||||||
nnoremap <leader>zf :lua require('telekasten').find_notes()<CR>
|
|
||||||
nnoremap <leader>zd :lua require('telekasten').find_daily_notes()<CR>
|
|
||||||
nnoremap <leader>zg :lua require('telekasten').search_notes()<CR>
|
|
||||||
nnoremap <leader>zz :lua require('telekasten').follow_link()<CR>
|
|
||||||
autocmd FileType markdown nnoremap <Enter> :lua require('telekasten').follow_link()<CR>
|
|
||||||
autocmd FileType markdown vnoremap <leader>zf :lua require('telekasten').follow_link()<CR>
|
|
||||||
nnoremap <leader>zT :lua require('telekasten').goto_today()<CR>
|
|
||||||
nnoremap <leader>zW :lua require('telekasten').goto_thisweek()<CR>
|
|
||||||
nnoremap <leader>zw :lua require('telekasten').find_weekly_notes()<CR>
|
|
||||||
nnoremap <leader>zn :lua require('telekasten').new_note()<CR>
|
|
||||||
nnoremap <leader>zN :lua require('telekasten').new_templated_note()<CR>
|
|
||||||
nnoremap <leader>zy :lua require('telekasten').yank_notelink()<CR>
|
|
||||||
nnoremap <leader>zc :lua require('telekasten').show_calendar()<CR>
|
|
||||||
nnoremap <leader>zC :CalendarT<CR>
|
|
||||||
nnoremap <leader>zi :lua require('telekasten').paste_img_and_link()<CR>
|
|
||||||
nnoremap <leader>zt :lua require('telekasten').toggle_todo()<CR>
|
|
||||||
nnoremap <leader>zb :lua require('telekasten').show_backlinks()<CR>
|
|
||||||
nnoremap <leader>zF :lua require('telekasten').find_friends()<CR>
|
|
||||||
nnoremap <leader>zI :lua require('telekasten').insert_img_link({ i=true })<CR>
|
|
||||||
nnoremap <leader>zp :lua require('telekasten').preview_img()<CR>
|
|
||||||
nnoremap <leader>zm :lua require('telekasten').browse_media()<CR>
|
|
||||||
nnoremap <leader>za :lua require('telekasten').show_tags()<CR>
|
|
||||||
nnoremap <leader># :lua require('telekasten').show_tags()<CR>
|
|
||||||
nnoremap <leader>zr :lua require('telekasten').rename_note()<CR>
|
|
||||||
|
|
||||||
" on hesitation, bring up the panel
|
|
||||||
nnoremap <leader>z :lua require('telekasten').panel()<CR>
|
|
||||||
|
|
||||||
" colors
|
|
||||||
hi tklink ctermfg=72 guifg=#689d6a cterm=bold,underline gui=bold,underline
|
|
||||||
hi tkBrackets ctermfg=gray guifg=gray
|
|
||||||
|
|
||||||
hi tkTagSep ctermfg=gray guifg=gray
|
|
||||||
hi tkTag ctermfg=175 guifg=#d3869B
|
|
||||||
]])
|
|
||||||
-- autocmd FileType markdown vnoremap <Enter> :norm ysiw\]ysa\]\] lua require('telekasten').follow_link()<CR>
|
|
31
vim/.vim/lua/config/tmpl.lua
Normal file
31
vim/.vim/lua/config/tmpl.lua
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
|
||||||
|
group = vim.api.nvim_create_augroup('gotmpl_highlight', { clear = true }),
|
||||||
|
pattern = '*.tmpl',
|
||||||
|
callback = function()
|
||||||
|
local filename = vim.fn.expand('%:t')
|
||||||
|
local ext = filename:match('.*%.(.-)%.tmpl$')
|
||||||
|
|
||||||
|
-- Add more extension to syntax mappings here if you need to.
|
||||||
|
local ext_filetypes = {
|
||||||
|
go = 'go',
|
||||||
|
html = 'html',
|
||||||
|
md = 'markdown',
|
||||||
|
yaml = 'yaml',
|
||||||
|
yml = 'yaml',
|
||||||
|
-- cc = 'cpp',
|
||||||
|
-- h = 'cpp',
|
||||||
|
}
|
||||||
|
|
||||||
|
if ext and ext_filetypes[ext] then
|
||||||
|
-- Set the primary filetype
|
||||||
|
vim.bo.filetype = ext_filetypes[ext]
|
||||||
|
|
||||||
|
-- Define embedded Go template syntax
|
||||||
|
vim.cmd([[
|
||||||
|
syntax include @gotmpl syntax/gotmpl.vim
|
||||||
|
syntax region gotmpl start="{{" end="}}" contains=@gotmpl containedin=ALL
|
||||||
|
syntax region gotmpl start="{%" end="%}" contains=@gotmpl containedin=ALL
|
||||||
|
]])
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
9
vim/.vim/lua/config/wgsl.lua
Normal file
9
vim/.vim/lua/config/wgsl.lua
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
|
||||||
|
pattern = "*.wgsl",
|
||||||
|
callback = function()
|
||||||
|
local lspconfig = require("lspconfig")
|
||||||
|
lspconfig.wgsl_analyzer.setup({})
|
||||||
|
|
||||||
|
vim.bo.filetype = "wgsl"
|
||||||
|
end,
|
||||||
|
})
|
6
vim/.vim/lua/config/zip.lua
Normal file
6
vim/.vim/lua/config/zip.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
vim.api.nvim_create_autocmd({ "BufReadCmd" }, {
|
||||||
|
pattern = "*.srcjar",
|
||||||
|
callback = function()
|
||||||
|
vim.api.nvim_command("call zip#Browse(expand('<amatch>'))")
|
||||||
|
end,
|
||||||
|
})
|
@ -1,16 +0,0 @@
|
|||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
|
||||||
vim.fn.system({
|
|
||||||
"git",
|
|
||||||
"clone",
|
|
||||||
"--filter=blob:none",
|
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
|
||||||
lazypath,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
vim.opt.rtp:prepend(lazypath)
|
|
||||||
|
|
||||||
package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
|
|
||||||
|
|
||||||
require("lazy").setup("plugins")
|
|
||||||
require("config.clipboard")
|
|
35
vim/.vim/lua/plugins/avante.lua
Normal file
35
vim/.vim/lua/plugins/avante.lua
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"yetone/avante.nvim",
|
||||||
|
build = "make",
|
||||||
|
enable = true,
|
||||||
|
branch = "working",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-treesitter/nvim-treesitter",
|
||||||
|
"stevearc/dressing.nvim",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
-- Add vintharas/avante-goose.nvim as a dependecy to avante.nvim
|
||||||
|
-- That'll ensure that you'll load avante-goose when you load avante.
|
||||||
|
{
|
||||||
|
"vintharas/avante-goose.nvim",
|
||||||
|
url = "sso://user/vintharas/avante-goose.nvim",
|
||||||
|
cond = use_google(),
|
||||||
|
opts = {
|
||||||
|
model = "gemini-for-google-2.5-pro", -- Select model from go/goose-models.
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
provider = "goose", -- Select goose as provider
|
||||||
|
vendors = {}, -- Makes sure there's a vendors table
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
-- Load provider from the plugin
|
||||||
|
opts.vendors["goose"] = require("avante-goose").getProvider()
|
||||||
|
require("avante").setup(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
@ -1,88 +1,162 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"kdheepak/lazygit.nvim",
|
{
|
||||||
"flwyd/vim-conjoin",
|
"folke/flash.nvim",
|
||||||
"vim-scripts/vcscommand.vim",
|
event = "VeryLazy",
|
||||||
"jghauser/mkdir.nvim",
|
---@type Flash.Config
|
||||||
"AndrewRadev/tagalong.vim",
|
opts = {},
|
||||||
{ "nvim-lua/plenary.nvim", lazy = false },
|
-- stylua: ignore
|
||||||
{ "squk/java-syntax.vim", ft = "java" },
|
keys = {
|
||||||
{ "udalov/kotlin-vim", ft = "kotlin" },
|
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||||
{ "ray-x/go.nvim", ft = "go" },
|
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||||
{ "ray-x/guihua.lua", ft = "go" },
|
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
|
||||||
{ "andymass/vim-matchup", event = "VimEnter" },
|
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
|
||||||
{ "squk/gdrama-syntax.vim", dir = vim.fn.expand("$HOME/dev/gdrama-syntax.vim") },
|
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||||
{
|
},
|
||||||
"NvChad/nvim-colorizer.lua",
|
},
|
||||||
ft = "lua",
|
"tikhomirov/vim-glsl",
|
||||||
config = function()
|
"sindrets/diffview.nvim",
|
||||||
require("colorizer").setup()
|
{ "folke/todo-comments.nvim", dependencies = { "nvim-lua/plenary.nvim" } },
|
||||||
end,
|
{
|
||||||
},
|
"MagicDuck/grug-far.nvim",
|
||||||
{
|
config = function()
|
||||||
|
require("grug-far").setup({
|
||||||
|
-- search and replace engines configuration
|
||||||
|
engines = {
|
||||||
|
-- see https://github.com/BurntSushi/ripgrep
|
||||||
|
ripgrep = {
|
||||||
|
-- ripgrep executable to use, can be a different path if you need to configure
|
||||||
|
path = "rg",
|
||||||
|
-- extraArgs = "-.",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"shellRaining/hlchunk.nvim",
|
||||||
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
|
opts = {
|
||||||
|
line_num = { enable = true },
|
||||||
|
chunk = {
|
||||||
|
enable = true,
|
||||||
|
priority = 15,
|
||||||
|
style = {
|
||||||
|
{ fg = "#393d4c" },
|
||||||
|
},
|
||||||
|
chars = {
|
||||||
|
horizontal_line = "─",
|
||||||
|
-- vertical_line = "│",
|
||||||
|
vertical_line = "┊",
|
||||||
|
left_top = "╭",
|
||||||
|
left_bottom = "╰",
|
||||||
|
right_arrow = ">",
|
||||||
|
},
|
||||||
|
use_treesitter = true,
|
||||||
|
textobject = "",
|
||||||
|
max_file_size = 1024 * 1024,
|
||||||
|
error_sign = true,
|
||||||
|
-- animation related
|
||||||
|
duration = 0,
|
||||||
|
delay = 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
"RRethy/vim-illuminate",
|
||||||
|
"kdheepak/lazygit.nvim",
|
||||||
|
"flwyd/vim-conjoin",
|
||||||
|
"rafcamlet/nvim-luapad",
|
||||||
|
"vim-scripts/vcscommand.vim",
|
||||||
|
"AndrewRadev/tagalong.vim",
|
||||||
|
"AndrewRadev/yankwin.vim",
|
||||||
|
{ "squk/gdrama-syntax.vim", ft = "gdrama" },
|
||||||
|
{ "nvim-lua/plenary.nvim", lazy = false },
|
||||||
|
{ "squk/java-syntax.vim", ft = "java" },
|
||||||
|
{ "udalov/kotlin-vim", event = "VeryLazy", ft = "kotlin" },
|
||||||
|
{ "andymass/vim-matchup", event = "VimEnter" },
|
||||||
|
{ "jghauser/mkdir.nvim", event = "BufWritePre" },
|
||||||
|
{
|
||||||
|
"rmagatti/auto-session",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-telescope/telescope.nvim", -- Only needed if you want to use session lens
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("auto-session").setup({
|
||||||
|
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/" },
|
||||||
|
args_allow_single_directory = false,
|
||||||
|
bypass_save_filetypes = { "netrw" },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
"tpope/vim-abolish",
|
||||||
|
{
|
||||||
|
"johmsalas/text-case.nvim",
|
||||||
|
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||||
|
config = function()
|
||||||
|
require("textcase").setup({})
|
||||||
|
require("telescope").load_extension("textcase")
|
||||||
|
end,
|
||||||
|
cmd = {
|
||||||
|
"Subs",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"NvChad/nvim-colorizer.lua",
|
||||||
|
ft = "lua",
|
||||||
|
config = function()
|
||||||
|
require("colorizer").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
|
||||||
"andweeb/presence.nvim",
|
"andweeb/presence.nvim",
|
||||||
cond = not use_google(),
|
cond = not use_google(),
|
||||||
config = function()
|
config = function()
|
||||||
require("presence").setup({
|
require("presence").setup({
|
||||||
main_image = "file",
|
main_image = "file",
|
||||||
show_time = false,
|
show_time = false,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"rafcamlet/nvim-luapad",
|
"ntpeters/vim-better-whitespace",
|
||||||
config = function()
|
config = function()
|
||||||
require("luapad").setup({
|
vim.g.better_whitespace_filetypes_blacklist = { "dashboard" }
|
||||||
eval_on_change = false,
|
end,
|
||||||
})
|
},
|
||||||
end,
|
{
|
||||||
},
|
"mbbill/undotree",
|
||||||
{
|
cmd = "UndotreeToggle",
|
||||||
"kosayoda/nvim-lightbulb",
|
config = function()
|
||||||
opts = {
|
vim.g.undotree_SetFocusWhenToggle = 1
|
||||||
autocmd = { enabled = true },
|
end,
|
||||||
virtual_text = {
|
-- stylua: ignore
|
||||||
enabled = true,
|
keys = { { "<leader>ut", ":UndotreeToggle<CR>" } },
|
||||||
text = " ",
|
},
|
||||||
hl = "DiagnosticWarn",
|
{
|
||||||
},
|
"stevearc/aerial.nvim",
|
||||||
sign = { enabled = false },
|
opts = {},
|
||||||
},
|
cmd = { "AerialToggle", "AerialOn" },
|
||||||
},
|
-- stylua: ignore
|
||||||
{
|
keys = { { "<leader>so", ":AerialToggle<CR>", desc = "[S]symbols [O]utline" } },
|
||||||
"ntpeters/vim-better-whitespace",
|
},
|
||||||
config = function()
|
{
|
||||||
vim.g.better_whitespace_filetypes_blacklist = { "dashboard" }
|
"andrewferrier/debugprint.nvim",
|
||||||
end,
|
opts = {},
|
||||||
},
|
-- Dependency only needed for NeoVim 0.8
|
||||||
{
|
dependencies = {
|
||||||
"mbbill/undotree",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
cmd = "UndotreeToggle",
|
},
|
||||||
config = function()
|
-- Remove the following line to use development versions,
|
||||||
vim.g.undotree_SetFocusWhenToggle = 1
|
-- not just the formal releases
|
||||||
end,
|
version = "*",
|
||||||
},
|
-- stylua: ignore
|
||||||
{
|
keys = {
|
||||||
"stevearc/aerial.nvim",
|
{ "<leader>dp", ":lua require('debugprint').debugprint()<cr>", desc = "Debug print" },
|
||||||
opts = {},
|
{ "<leader>dP", ":lua require('debugprint').debugprint({above = true})<cr>", desc = "Debug print" },
|
||||||
cmd = { "AerialToggle", "AerialOn" },
|
{ "<leader>dq", ":lua require('debugprint').debugprint({variable = true})<cr>", desc = "Debug print" },
|
||||||
keys = { { "<leader>so", ":AerialToggle<CR>", desc = "[S]symbols [O]utline" } },
|
{ "<leader>dQ", ":lua require('debugprint').debugprint({variable = true, above = true})<cr>", desc = "Debug print", },
|
||||||
},
|
},
|
||||||
{
|
},
|
||||||
"olimorris/persisted.nvim",
|
|
||||||
config = function()
|
|
||||||
require("persisted").setup({})
|
|
||||||
require("telescope").load_extension("persisted")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"iamcco/markdown-preview.nvim",
|
|
||||||
build = "cd app && npm install",
|
|
||||||
init = function()
|
|
||||||
vim.g.mkdp_filetypes = { "markdown" }
|
|
||||||
end,
|
|
||||||
ft = { "markdown" },
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
17
vim/.vim/lua/plugins/bevy.lua
Normal file
17
vim/.vim/lua/plugins/bevy.lua
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
return {
|
||||||
|
"lommix/bevy_inspector.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"nvim-telescope/telescope.nvim",
|
||||||
|
"nvim-lua/plenary.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("bevy_inspector").setup({})
|
||||||
|
end,
|
||||||
|
cmd = { "BevyInspect", "BevyInspectNamed", "BevyInspectQuery" },
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ "<leader>bia", ":BevyInspect<Cr>", desc = "Lists all entities" },
|
||||||
|
{ "<leader>bin", ":BevyInspectNamed<Cr>", desc = "List all named entities" },
|
||||||
|
{ "<leader>biq", ":BevyInspectQuery<Cr>", desc = "Query a single component, continues to list all matching entities", },
|
||||||
|
},
|
||||||
|
}
|
30
vim/.vim/lua/plugins/bigfile.lua
Normal file
30
vim/.vim/lua/plugins/bigfile.lua
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
return {
|
||||||
|
"LunarVim/bigfile.nvim",
|
||||||
|
opts = {
|
||||||
|
filesize = 2, -- size of the file in MiB, the plugin round file sizes to the closest MiB
|
||||||
|
pattern = function(bufnr, filesize_mib)
|
||||||
|
-- you can't use `nvim_buf_line_count` because this runs on BufReadPre
|
||||||
|
local file_contents = vim.fn.readfile(vim.api.nvim_buf_get_name(bufnr))
|
||||||
|
local file_lines = #file_contents
|
||||||
|
local filetype = vim.filetype.match({ buf = bufnr })
|
||||||
|
if filetype == "c" or filetype == "cpp" then
|
||||||
|
if file_lines > 1000 then
|
||||||
|
vim.b.codefmt_formatt = "" -- disable codefmt
|
||||||
|
vim.cmd(":FormatDisable") -- disable conform
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return filesize_mib > 1
|
||||||
|
end,
|
||||||
|
features = { -- features to disable
|
||||||
|
"indent_blankline",
|
||||||
|
"illuminate",
|
||||||
|
"lsp",
|
||||||
|
"treesitter",
|
||||||
|
-- "syntax",
|
||||||
|
"matchparen",
|
||||||
|
-- "vimopts",
|
||||||
|
-- "filetype",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
183
vim/.vim/lua/plugins/blink.lua
Normal file
183
vim/.vim/lua/plugins/blink.lua
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
local use_google = require("utils").use_google
|
||||||
|
local flags = require("utils").flags
|
||||||
|
local kind_icons = {
|
||||||
|
-- LLM Provider icons
|
||||||
|
claude = "",
|
||||||
|
openai = "",
|
||||||
|
codestral = "",
|
||||||
|
gemini = "",
|
||||||
|
nvim_ciderlsp = "",
|
||||||
|
Groq = "",
|
||||||
|
Openrouter = "",
|
||||||
|
Ollama = "",
|
||||||
|
["Llama.cpp"] = "",
|
||||||
|
Deepseek = "",
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"saghen/blink.compat",
|
||||||
|
-- use the latest release, via version = '*', if you also use the latest release for blink.cmp
|
||||||
|
version = "*",
|
||||||
|
-- lazy.nvim will automatically load the plugin when it's required by blink.cmp
|
||||||
|
lazy = true,
|
||||||
|
cond = flags.blink,
|
||||||
|
-- make sure to set opts so that lazy.nvim calls blink.compat's setup
|
||||||
|
opts = {
|
||||||
|
impersonate_nvim_cmp = true,
|
||||||
|
debug = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"saghen/blink.cmp",
|
||||||
|
lazy = false, -- lazy loading handled internally
|
||||||
|
cond = flags.blink,
|
||||||
|
dependencies = {
|
||||||
|
"chrisgrieser/cmp-nerdfont",
|
||||||
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
|
"mikavilpas/blink-ripgrep.nvim",
|
||||||
|
"moyiz/blink-emoji.nvim",
|
||||||
|
"rafamadriz/friendly-snippets", -- optional: provides snippets for the snippet source
|
||||||
|
"saghen/blink.compat",
|
||||||
|
},
|
||||||
|
version = "v0.*", -- use a release tag to download pre-built binaries
|
||||||
|
-- build = 'cargo build --release',
|
||||||
|
|
||||||
|
---@module 'blink.cmp'
|
||||||
|
---@type blink.cmp.Config
|
||||||
|
opts = {
|
||||||
|
-- stylua: ignore
|
||||||
|
keymap = {
|
||||||
|
preset = "none",
|
||||||
|
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
|
||||||
|
["<C-e>"] = { "hide", "fallback" },
|
||||||
|
["<CR>"] = { "accept", "fallback" },
|
||||||
|
|
||||||
|
["<Tab>"] = { "select_next", "snippet_forward", "accept", "fallback" },
|
||||||
|
["<S-Tab>"] = { "select_prev", "snippet_backward", "fallback" },
|
||||||
|
|
||||||
|
["<Up>"] = { "select_prev", "fallback" },
|
||||||
|
["<Down>"] = { "select_next", "fallback" },
|
||||||
|
|
||||||
|
["<S-Up>"] = { "scroll_documentation_up", "fallback" },
|
||||||
|
["<S-Down>"] = { "scroll_documentation_down", "fallback" },
|
||||||
|
},
|
||||||
|
appearance = {
|
||||||
|
use_nvim_cmp_as_default = true,
|
||||||
|
nerd_font_variant = "normal",
|
||||||
|
kind_icons = kind_icons,
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
default = function(ctx)
|
||||||
|
local providerToEnable = {
|
||||||
|
"lsp",
|
||||||
|
"path",
|
||||||
|
"snippets",
|
||||||
|
"ripgrep",
|
||||||
|
"emoji",
|
||||||
|
"nerdfont",
|
||||||
|
"buffer",
|
||||||
|
"avante",
|
||||||
|
}
|
||||||
|
if use_google() then
|
||||||
|
table.insert(providerToEnable, "nvim_ciderlsp")
|
||||||
|
table.insert(providerToEnable, "buganizer")
|
||||||
|
-- table.insert(providerToEnable, "avante")
|
||||||
|
else
|
||||||
|
-- table.insert(providerToEnable, "avante")
|
||||||
|
table.insert(providerToEnable, "minuet")
|
||||||
|
end
|
||||||
|
return providerToEnable
|
||||||
|
end,
|
||||||
|
providers = {
|
||||||
|
lsp = { name = "LSP", module = "blink.cmp.sources.lsp", score_offset = 90 },
|
||||||
|
-- dont show LuaLS require statements when lazydev has items
|
||||||
|
lazydev = { name = "LazyDev", module = "lazydev.integrations.blink", fallbacks = { "lsp" } },
|
||||||
|
ripgrep = {
|
||||||
|
module = "blink-ripgrep",
|
||||||
|
name = "Ripgrep",
|
||||||
|
-- the options below are optional, some default values are shown
|
||||||
|
---@module "blink-ripgrep"
|
||||||
|
---@type blink-ripgrep.Options
|
||||||
|
opts = {
|
||||||
|
prefix_min_len = 3,
|
||||||
|
context_size = 5,
|
||||||
|
max_filesize = "1M",
|
||||||
|
additional_rg_options = {},
|
||||||
|
},
|
||||||
|
score_offset = 20, -- the higher the number, the higher the priority
|
||||||
|
},
|
||||||
|
-- https://github.com/moyiz/blink-emoji.nvim
|
||||||
|
emoji = {
|
||||||
|
module = "blink-emoji",
|
||||||
|
name = "Emoji",
|
||||||
|
score_offset = 1, -- the higher the number, the higher the priority
|
||||||
|
opts = { insert = true }, -- Insert emoji (default) or complete its name
|
||||||
|
},
|
||||||
|
buffer = {
|
||||||
|
name = "Buffer",
|
||||||
|
enabled = true,
|
||||||
|
max_items = 3,
|
||||||
|
module = "blink.cmp.sources.buffer",
|
||||||
|
min_keyword_length = 4,
|
||||||
|
score_offset = 15, -- the higher the number, the higher the priority
|
||||||
|
},
|
||||||
|
-- compat sources
|
||||||
|
nerdfont = {
|
||||||
|
name = "nerdfont",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
score_offset = 1, -- the higher the number, the higher the priority
|
||||||
|
},
|
||||||
|
minuet = {
|
||||||
|
name = "minuet",
|
||||||
|
module = "minuet.blink",
|
||||||
|
score_offset = 100, -- Gives minuet higher priority among suggestions
|
||||||
|
},
|
||||||
|
-- avante = {
|
||||||
|
-- module = "blink-cmp-avante",
|
||||||
|
-- name = "Avante",
|
||||||
|
-- opts = {
|
||||||
|
-- -- options for blink-cmp-avante
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
nvim_ciderlsp = {
|
||||||
|
name = "nvim_ciderlsp",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
score_offset = 100,
|
||||||
|
},
|
||||||
|
buganizer = {
|
||||||
|
name = "nvim_buganizer",
|
||||||
|
module = "blink.compat.source",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- experimental signature help support
|
||||||
|
signature = { enabled = true },
|
||||||
|
completion = {
|
||||||
|
-- Recommended to avoid unnecessary request
|
||||||
|
trigger = { prefetch_on_insert = false },
|
||||||
|
list = {
|
||||||
|
-- stylua: ignore
|
||||||
|
selection = {
|
||||||
|
preselect = function(ctx) return ctx.mode ~= 'cmdline' end,
|
||||||
|
auto_insert = function(ctx) return ctx.mode ~= 'cmdline' end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
documentation = {
|
||||||
|
auto_show = true,
|
||||||
|
},
|
||||||
|
-- Displays a preview of the selected item on the current line
|
||||||
|
ghost_text = {
|
||||||
|
enabled = true,
|
||||||
|
},
|
||||||
|
trigger = {
|
||||||
|
show_on_x_blocked_trigger_characters = { "'", '"', "(", "{" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
-- allows extending the providers array elsewhere in your config
|
||||||
|
-- without having to redefine it
|
||||||
|
opts_extend = { "sources.default" },
|
||||||
|
},
|
||||||
|
}
|
@ -1,62 +1,30 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"tiagovla/scope.nvim",
|
|
||||||
config = function()
|
|
||||||
-- vim.opt.sessionoptions = { -- required
|
|
||||||
-- "buffers",
|
|
||||||
-- "tabpages",
|
|
||||||
-- "globals",
|
|
||||||
-- }
|
|
||||||
require("scope").setup({})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
version = "*",
|
version = "*",
|
||||||
dependencies = "nvim-tree/nvim-web-devicons",
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
config = function()
|
opts = {
|
||||||
vim.opt.termguicolors = true
|
options = {
|
||||||
require("bufferline").setup({
|
separator_style = "slope",
|
||||||
options = {
|
-- offsets = { {
|
||||||
-- separator_style = "slope",
|
-- filetype = "neo-tree",
|
||||||
separator_style = "slant",
|
-- text = "NeoTree",
|
||||||
hover = {
|
-- highlight = "Directory",
|
||||||
enabled = true,
|
-- separator = true, -- use a "true" to enable the default, or set your own character
|
||||||
delay = 200,
|
-- }, },
|
||||||
reveal = { "close" },
|
mode = "tabs",
|
||||||
},
|
diagnostics = "nvim_lsp",
|
||||||
indicator = {
|
-- diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
||||||
-- icon = "▎", -- this should be omitted if indicator style is not 'icon'
|
-- local symbols = { error = " ", warning = " ", info = " ", hint = " " }
|
||||||
style = "icon", -- | 'underline' | 'none',
|
-- local icon = symbols[level] or level
|
||||||
},
|
-- return "" .. icon .. count
|
||||||
offsets = {
|
-- end,
|
||||||
{
|
max_name_length = 30,
|
||||||
filetype = "NvimTree",
|
tab_size = 27,
|
||||||
text = "File Explorer",
|
truncate_name = false,
|
||||||
highlight = "Directory",
|
show_close_icon = false,
|
||||||
separator = true, -- use a "true" to enable the default, or set your own character
|
show_buffer_close_icons = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mode = "tabs",
|
|
||||||
diagnostics = "nvim_lsp",
|
|
||||||
diagnostics_indicator = function(count, level, diagnostics_dict, context)
|
|
||||||
local symbols = { error = " ", warning = " ", info = " ", hint = " " }
|
|
||||||
local icon = symbols[level] or level
|
|
||||||
return "" .. icon .. count
|
|
||||||
end,
|
|
||||||
max_name_length = 30,
|
|
||||||
truncate_name = false,
|
|
||||||
show_close_icon = false,
|
|
||||||
show_buffer_close_icons = false,
|
|
||||||
-- custom_areas = {
|
|
||||||
-- right = function()
|
|
||||||
-- local result = {}
|
|
||||||
-- table.insert(result, { text = " " .. vim.api.nvim_buf_get_name(0), fg = "#edf" })
|
|
||||||
-- return result
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,12 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
local flags = require("utils").flags
|
||||||
local function compare_by_ciderlsp_score(entry1, entry2)
|
|
||||||
if entry1.completion_item.score ~= nil and entry2.completion_item.score ~= nil then
|
|
||||||
print("LSP score " .. entry1.completion_item.score)
|
|
||||||
print("LSP score " .. entry2.completion_item.score)
|
|
||||||
return entry1.completion_item.score > entry2.completion_item.score
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local has_words_before = function()
|
|
||||||
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
|
|
||||||
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
event = { "InsertEnter", "CmdlineEnter" },
|
event = { "InsertEnter", "CmdlineEnter" },
|
||||||
|
cond = not flags.blink,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"Exafunction/codeium.nvim",
|
|
||||||
"FelipeLema/cmp-async-path",
|
"FelipeLema/cmp-async-path",
|
||||||
"amarakon/nvim-cmp-buffer-lines",
|
"amarakon/nvim-cmp-buffer-lines",
|
||||||
"chrisgrieser/cmp-nerdfont",
|
"chrisgrieser/cmp-nerdfont",
|
||||||
@ -30,7 +18,7 @@ return {
|
|||||||
"hrsh7th/cmp-emoji",
|
"hrsh7th/cmp-emoji",
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
"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",
|
||||||
"lukas-reineke/cmp-under-comparator",
|
"lukas-reineke/cmp-under-comparator",
|
||||||
"onsails/lspkind.nvim",
|
"onsails/lspkind.nvim",
|
||||||
@ -41,26 +29,29 @@ return {
|
|||||||
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
vim.opt.completeopt = { "menu", "menuone", "noselect" }
|
||||||
|
|
||||||
local cmp = require("cmp")
|
local cmp = require("cmp")
|
||||||
|
local luasnip = require("luasnip")
|
||||||
|
|
||||||
local compare = cmp.config.compare
|
local compare = cmp.config.compare
|
||||||
|
|
||||||
local conditionalSources = {}
|
local conditionalSources = {}
|
||||||
|
|
||||||
if use_google() then
|
if use_google() then
|
||||||
table.insert(conditionalSources, { name = "nvim_ciderlsp", priority = 8 })
|
table.insert(conditionalSources, { name = "nvim_ciderlsp", priority = 8 })
|
||||||
table.insert(conditionalSources, { name = "analysislsp" })
|
|
||||||
table.insert(conditionalSources, { name = "buganizer", option = { notifications_enabled = true } })
|
table.insert(conditionalSources, { name = "buganizer", option = { notifications_enabled = true } })
|
||||||
else
|
|
||||||
table.insert(conditionalSources, { name = "codeium", priority = 8 })
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local lspkind = require("lspkind")
|
local lspkind = require("lspkind")
|
||||||
lspkind.init()
|
lspkind.init()
|
||||||
|
|
||||||
|
cmp.setup.filetype("txt", {
|
||||||
|
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" },
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -68,7 +59,7 @@ return {
|
|||||||
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 = "nvim_lsp_signature_help", priority = 9 },
|
-- { name = "nvim_lsp_signature_help", priority = 9 },
|
||||||
{ name = "async_path" },
|
{ name = "async_path" },
|
||||||
{ name = "cmdline", option = { ignore_cmds = { "edit", "write", "tabedit" } } },
|
{ name = "cmdline", option = { ignore_cmds = { "edit", "write", "tabedit" } } },
|
||||||
}),
|
}),
|
||||||
@ -76,9 +67,17 @@ return {
|
|||||||
|
|
||||||
cmp.setup({
|
cmp.setup({
|
||||||
preselect = cmp.PreselectMode.None,
|
preselect = cmp.PreselectMode.None,
|
||||||
|
performance = {
|
||||||
|
-- debounce = 60,
|
||||||
|
-- throttle = 30,
|
||||||
|
fetching_timeout = 300,
|
||||||
|
-- confirm_resolve_timeout = 80,
|
||||||
|
-- async_budget = 1,
|
||||||
|
-- max_view_entries = 200,
|
||||||
|
},
|
||||||
sources = cmp.config.sources(
|
sources = cmp.config.sources(
|
||||||
require("utils").TableConcat(conditionalSources, {
|
require("utils").TableConcat(conditionalSources, {
|
||||||
{ name = "nvim_lsp_signature_help", priority = 9 },
|
-- { name = "nvim_lsp_signature_help", priority = 9 },
|
||||||
-- Conditional sources injected here.
|
-- Conditional sources injected here.
|
||||||
{ name = "luasnip", priority = 7 },
|
{ name = "luasnip", priority = 7 },
|
||||||
{ name = "nvim_lsp", priority = 6 },
|
{ name = "nvim_lsp", priority = 6 },
|
||||||
@ -90,10 +89,8 @@ return {
|
|||||||
{ name = "nerdfont" },
|
{ name = "nerdfont" },
|
||||||
{ name = "emoji" },
|
{ name = "emoji" },
|
||||||
},
|
},
|
||||||
{ -- fallback A
|
{ -- fallback
|
||||||
{ name = "treesitter" },
|
{ name = "treesitter" },
|
||||||
},
|
|
||||||
{ -- fallback B
|
|
||||||
{ name = "buffer" },
|
{ name = "buffer" },
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
@ -101,13 +98,11 @@ return {
|
|||||||
sorting = {
|
sorting = {
|
||||||
comparators = {
|
comparators = {
|
||||||
-- compare.score_offset, -- not good at all
|
-- compare.score_offset, -- not good at all
|
||||||
|
compare.priority,
|
||||||
compare.score, -- based on : score = score + ((#sources - (source_index - 1)) * sorting.priority_weight)
|
compare.score, -- based on : score = score + ((#sources - (source_index - 1)) * sorting.priority_weight)
|
||||||
compare.locality,
|
|
||||||
compare.recently_used,
|
compare.recently_used,
|
||||||
compare.offset,
|
compare.offset,
|
||||||
compare.order,
|
compare.order,
|
||||||
-- compare.scopes, -- what?
|
|
||||||
-- compare.sort_text,
|
|
||||||
-- compare.exact,
|
-- compare.exact,
|
||||||
compare.kind,
|
compare.kind,
|
||||||
-- compare.length, -- useless
|
-- compare.length, -- useless
|
||||||
@ -119,13 +114,11 @@ return {
|
|||||||
async_path = " path",
|
async_path = " path",
|
||||||
buffer = " Buf",
|
buffer = " Buf",
|
||||||
cmdline = " cmd",
|
cmdline = " cmd",
|
||||||
codeium = " Codeium",
|
|
||||||
crates = " rust",
|
crates = " rust",
|
||||||
luasnip = " snip",
|
luasnip = " snip",
|
||||||
buganizer = " Buganizer",
|
buganizer = " Buganizer",
|
||||||
nerdfont = " nerdfont",
|
nerdfont = " nerdfont",
|
||||||
nvim_ciderlsp = " Cider",
|
nvim_ciderlsp = " Cider",
|
||||||
analysislsp = " analysislsp",
|
|
||||||
nvim_lsp_signature_help = "",
|
nvim_lsp_signature_help = "",
|
||||||
nvim_lsp = " LSP",
|
nvim_lsp = " LSP",
|
||||||
nvim_lua = " lua",
|
nvim_lua = " lua",
|
||||||
@ -140,35 +133,36 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
experimental = {
|
|
||||||
native_menu = false,
|
|
||||||
ghost_text = true,
|
|
||||||
},
|
|
||||||
mapping = {
|
mapping = {
|
||||||
["<S-Up>"] = cmp.mapping.scroll_docs(-4),
|
["<S-Up>"] = cmp.mapping.scroll_docs(-4),
|
||||||
["<S-Down>"] = cmp.mapping.scroll_docs(4),
|
["<S-Down>"] = cmp.mapping.scroll_docs(4),
|
||||||
["<C-e>"] = cmp.mapping.close(),
|
["<C-e>"] = cmp.mapping.close(),
|
||||||
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
|
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
|
||||||
["<CR>"] = cmp.mapping.confirm({ select = true }),
|
["<CR>"] = cmp.mapping(function(fallback)
|
||||||
["<Tab>"] = cmp.mapping(function(fallback)
|
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
if #cmp.get_entries() == 1 then
|
if luasnip.expandable() then
|
||||||
cmp.confirm({ select = true })
|
luasnip.expand()
|
||||||
else
|
else
|
||||||
cmp.select_next_item()
|
cmp.confirm({
|
||||||
end
|
select = true,
|
||||||
elseif has_words_before() then
|
})
|
||||||
cmp.complete()
|
|
||||||
if #cmp.get_entries() == 1 then
|
|
||||||
cmp.confirm({ select = true })
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
fallback()
|
fallback()
|
||||||
end
|
end
|
||||||
|
end),
|
||||||
|
["<Tab>"] = cmp.mapping(function(fallback)
|
||||||
|
if cmp.visible() then
|
||||||
|
cmp.select_next_item()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
|
end
|
||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
["<S-Tab>"] = cmp.mapping(function()
|
["<S-Tab>"] = cmp.mapping(function(fallback)
|
||||||
if cmp.visible() then
|
if cmp.visible() then
|
||||||
cmp.select_prev_item()
|
cmp.select_prev_item()
|
||||||
|
else
|
||||||
|
fallback()
|
||||||
end
|
end
|
||||||
end, { "i", "s" }),
|
end, { "i", "s" }),
|
||||||
|
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
local use_google = require("utils").use_google
|
|
||||||
return {
|
|
||||||
{
|
|
||||||
"Exafunction/codeium.nvim",
|
|
||||||
-- commit = "b1ff0d6c993e3d87a4362d2ccd6c660f7444599f",
|
|
||||||
event = "VeryLazy",
|
|
||||||
-- event = "InsertEnter",
|
|
||||||
cond = not use_google(),
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("codeium").setup({})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
|
@ -1,67 +1,89 @@
|
|||||||
vim.api.nvim_create_user_command("FormatDisable", function(args)
|
local use_google = require("utils").use_google
|
||||||
if args.bang then
|
|
||||||
-- FormatDisable! will disable formatting just for this buffer
|
|
||||||
vim.b.disable_autoformat = true
|
|
||||||
else
|
|
||||||
vim.g.disable_autoformat = true
|
|
||||||
end
|
|
||||||
end, {
|
|
||||||
desc = "Disable autoformat-on-save",
|
|
||||||
bang = true,
|
|
||||||
})
|
|
||||||
vim.api.nvim_create_user_command("FormatEnable", function()
|
|
||||||
vim.b.disable_autoformat = false
|
|
||||||
vim.g.disable_autoformat = false
|
|
||||||
end, {
|
|
||||||
desc = "Re-enable autoformat-on-save",
|
|
||||||
})
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
event = { "BufWritePre" },
|
event = { "BufWritePre" },
|
||||||
cmd = { "ConformInfo" },
|
cmd = { "ConformInfo", "FormatDisable", "FormatEnable" },
|
||||||
keys = {
|
keys = {
|
||||||
{
|
-- stylua: ignore
|
||||||
"<leader>fmt",
|
{ "<leader>fmt", function() require("conform").format({ async = true, lsp_fallback = true }) end, mode = "", desc = "Format buffer", },
|
||||||
function()
|
{ "<leader>fj", ":%!python -m json.tool" },
|
||||||
require("conform").format({ async = true, lsp_fallback = true })
|
},
|
||||||
end,
|
config = function()
|
||||||
mode = "",
|
vim.g.disable_autoformat = false
|
||||||
desc = "Format buffer",
|
vim.api.nvim_create_user_command("FormatDisable", function(args)
|
||||||
},
|
if args.bang then
|
||||||
},
|
-- FormatDisable! will disable formatting just for this buffer
|
||||||
opts = {
|
vim.b.disable_autoformat = true
|
||||||
formatters_by_ft = {
|
else
|
||||||
-- Conform will run multiple formatters sequentially
|
vim.g.disable_autoformat = true
|
||||||
-- go = { "goimports", "gofmt" },
|
end
|
||||||
-- Use a sub-list to run only the first available formatter
|
end, {
|
||||||
-- javascript = { { "prettierd", "prettier" } },
|
desc = "Disable autoformat-on-save",
|
||||||
lua = { "stylua" },
|
bang = true,
|
||||||
-- Conform will run multiple formatters sequentially
|
})
|
||||||
python = { "isort", "black" },
|
vim.api.nvim_create_user_command("FormatEnable", function()
|
||||||
-- Use a sub-list to run only the first available formatter
|
vim.b.disable_autoformat = false
|
||||||
javascript = { { "prettierd", "prettier" } },
|
vim.g.disable_autoformat = false
|
||||||
gdscript = { "gdformat" },
|
end, {
|
||||||
dashboard = {},
|
desc = "Re-enable autoformat-on-save",
|
||||||
-- Use the "*" filetype to run formatters on all filetypes.
|
})
|
||||||
["*"] = { "codespell" },
|
|
||||||
-- Use the "_" filetype to run formatters on filetypes that don't
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
-- have other formatters configured.
|
pattern = "*",
|
||||||
["_"] = { "trim_whitespace" },
|
callback = function(args)
|
||||||
},
|
if vim.g.disable_autoformat or vim.b[args.buf].disable_autoformat then
|
||||||
format_on_save = function(bufnr)
|
return
|
||||||
-- Disable with a global or buffer-local variable
|
end
|
||||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
require("conform").format({ bufnr = args.buf })
|
||||||
return
|
end,
|
||||||
end
|
})
|
||||||
return { timeout_ms = 500, lsp_fallback = true }
|
|
||||||
end,
|
vim.api.nvim_create_user_command("Format", function(args)
|
||||||
formatters = {
|
local range = nil
|
||||||
gdformat = {
|
if args.count ~= -1 then
|
||||||
prepend_args = { "-l", "100" },
|
local end_line = vim.api.nvim_buf_get_lines(0, args.line2 - 1, args.line2, true)[1]
|
||||||
},
|
range = {
|
||||||
},
|
start = { args.line1, 0 },
|
||||||
},
|
["end"] = { args.line2, end_line:len() },
|
||||||
},
|
}
|
||||||
|
end
|
||||||
|
require("conform").format({ async = true })
|
||||||
|
end, { range = true })
|
||||||
|
|
||||||
|
require("conform").setup(
|
||||||
|
{
|
||||||
|
log_level = vim.log.levels.DEBUG,
|
||||||
|
formatters_by_ft = {
|
||||||
|
rust = { "rustfmt" },
|
||||||
|
-- Conform will run multiple formatters sequentially
|
||||||
|
-- go = { "goimports", "gofmt" },
|
||||||
|
-- Use a sub-list to run only the first available formatter
|
||||||
|
lua = { "stylua" },
|
||||||
|
-- Conform will run multiple formatters sequentially
|
||||||
|
python = { "isort" },
|
||||||
|
-- Use a sub-list to run only the first available formatter
|
||||||
|
javascript = { "prettier" },
|
||||||
|
gdscript = { "gdformat" },
|
||||||
|
ron = { "ronfmt" },
|
||||||
|
dashboard = {},
|
||||||
|
-- Use the "*" filetype to run formatters on all filetypes.
|
||||||
|
-- ["*"] = { "codespell" },
|
||||||
|
-- Use the "_" filetype to run formatters on filetypes that don't
|
||||||
|
-- have other formatters configured.
|
||||||
|
["_"] = { "trim_whitespace" },
|
||||||
|
},
|
||||||
|
formatters = {
|
||||||
|
-- ronfmt = {
|
||||||
|
-- command = "ronfmt",
|
||||||
|
-- args = { "-d", "$FILENAME" },
|
||||||
|
-- },
|
||||||
|
gdformat = {
|
||||||
|
prepend_args = { "-l", "100" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -3,12 +3,20 @@ return {
|
|||||||
"mfussenegger/nvim-jdtls",
|
"mfussenegger/nvim-jdtls",
|
||||||
config = function() end,
|
config = function() end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"theHamsta/nvim-dap-virtual-text",
|
||||||
|
"nvim-neotest/nvim-nio",
|
||||||
|
config = function()
|
||||||
|
require("nvim-dap-virtual-text").setup()
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
"nvim-telescope/telescope-dap.nvim",
|
"nvim-telescope/telescope-dap.nvim",
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>do", ":lua require'dapui'.open()<CR>" },
|
{ "<leader>do", ":lua require'dapui'.open()<CR>" },
|
||||||
-- { "<F5>", ":lua require'dap'.continue()<CR>" },
|
-- { "<F5>", ":lua require'dap'.continue()<CR>" },
|
||||||
@ -20,9 +28,34 @@ return {
|
|||||||
{ "<leader>dt", ":Telescope dap configurations<CR>" },
|
{ "<leader>dt", ":Telescope dap configurations<CR>" },
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
|
local use_google = require("utils").use_google
|
||||||
require("telescope").load_extension("dap")
|
require("telescope").load_extension("dap")
|
||||||
local dap = require("dap")
|
local dap = require("dap")
|
||||||
dap.adapters.java = {}
|
|
||||||
|
vim.fn.sign_define("DapBreakpoint", { text = "", texthl = "DiagnosticSignError" })
|
||||||
|
vim.fn.sign_define("DapBreakpointCondition", { text = "", texthl = "DiagnosticSignError" })
|
||||||
|
vim.fn.sign_define("DapBreakpointRejected", { text = "", texthl = "DiagnosticSignError" })
|
||||||
|
|
||||||
|
dap.adapters.cppdbg = {
|
||||||
|
id = "cppdbg",
|
||||||
|
type = "executable",
|
||||||
|
command = vim.fn.exepath("OpenDebugAD7"),
|
||||||
|
}
|
||||||
|
|
||||||
|
if use_google then
|
||||||
|
dap.adapters.lldb = {
|
||||||
|
type = "executable",
|
||||||
|
-- sudo apt install google-lldb-vscode
|
||||||
|
command = "/usr/share/code/resources/app/extensions/google-lldb-vscode/bin/lldb-dap",
|
||||||
|
name = "lldb",
|
||||||
|
sourceMap = {
|
||||||
|
{ "/proc/self/cwd", "${workspaceFolder}" },
|
||||||
|
},
|
||||||
|
cwd = "${workspaceFolder}",
|
||||||
|
debuggerRoot = "${workspaceFolder}",
|
||||||
|
sourcePath = "${workspaceFolder}",
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
dap.adapters.godot = {
|
dap.adapters.godot = {
|
||||||
type = "server",
|
type = "server",
|
||||||
@ -30,27 +63,72 @@ return {
|
|||||||
port = 6006,
|
port = 6006,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dap.configurations.cppdbg = {
|
||||||
|
{
|
||||||
|
name = "Attach to gdbserver :5555",
|
||||||
|
type = "cppdbg",
|
||||||
|
request = "launch",
|
||||||
|
MIMode = "gdb",
|
||||||
|
miDebuggerServerAddress = "localhost:5555",
|
||||||
|
miDebuggerPath = vim.fn.exepath("gdb"),
|
||||||
|
cwd = "${workspaceFolder}",
|
||||||
|
program = function()
|
||||||
|
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
dap.configurations.cpp = {
|
||||||
|
{
|
||||||
|
-- If you get an "Operation not permitted" error using this, try disabling YAMA:
|
||||||
|
-- echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
|
||||||
|
name = "Attach to process",
|
||||||
|
type = "lldb",
|
||||||
|
request = "attach",
|
||||||
|
pid = require("dap.utils").pick_process,
|
||||||
|
args = {},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name = "Wait for process name",
|
||||||
|
type = "lldb",
|
||||||
|
request = "attach",
|
||||||
|
program = function()
|
||||||
|
return vim.fn.input("Path to executable: ", vim.fn.getcwd() .. "/", "file")
|
||||||
|
end,
|
||||||
|
waitFor = true,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type = "lldb",
|
||||||
|
request = "attach",
|
||||||
|
mode = "remote",
|
||||||
|
name = "Attach Remote",
|
||||||
|
attachCommands = { "gdb-remote localhost:5555" },
|
||||||
|
},
|
||||||
|
}
|
||||||
|
-- dap.configurations.c = dap.configurations.cpp
|
||||||
|
|
||||||
dap.configurations.java = {
|
dap.configurations.java = {
|
||||||
{
|
{
|
||||||
type = "java",
|
type = "java",
|
||||||
request = "attach",
|
request = "attach",
|
||||||
mode = "remote",
|
mode = "remote",
|
||||||
name = "Java - Attach Remote",
|
name = "Attach Remote",
|
||||||
cwd = "${workspaceFolder}",
|
cwd = "${workspaceFolder}",
|
||||||
hostName = "127.0.0.1",
|
hostName = "127.0.0.1",
|
||||||
port = 5005,
|
port = 5005,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
dap.configurations.gdscript = {
|
dap.configurations.gdscript = {
|
||||||
{
|
{
|
||||||
name = "Godot - Launch Project",
|
name = "Launch Project",
|
||||||
type = "godot",
|
type = "godot",
|
||||||
request = "launch",
|
request = "launch",
|
||||||
project = "${workspaceFolder}",
|
project = "${workspaceFolder}",
|
||||||
additional_options = "",
|
additional_options = "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "Godot - Launch Current File",
|
name = "Launch Current File",
|
||||||
type = "godot",
|
type = "godot",
|
||||||
request = "launch",
|
request = "launch",
|
||||||
scene = "current",
|
scene = "current",
|
||||||
@ -97,15 +175,17 @@ return {
|
|||||||
})
|
})
|
||||||
|
|
||||||
local dapui = require("dapui")
|
local dapui = require("dapui")
|
||||||
vim.cmd("set mouse=n")
|
|
||||||
dapui.setup()
|
dapui.setup()
|
||||||
dap.listeners.after.event_initialized["dapui_config"] = function()
|
dap.listeners.after.event_initialized["dapui_config"] = function()
|
||||||
|
vim.cmd("set mouse=a")
|
||||||
dapui.open()
|
dapui.open()
|
||||||
end
|
end
|
||||||
dap.listeners.before.event_terminated["dapui_config"] = function()
|
dap.listeners.before.event_terminated["dapui_config"] = function()
|
||||||
|
vim.cmd("set mouse=")
|
||||||
dapui.close()
|
dapui.close()
|
||||||
end
|
end
|
||||||
dap.listeners.before.event_exited["dapui_config"] = function()
|
dap.listeners.before.event_exited["dapui_config"] = function()
|
||||||
|
vim.cmd("set mouse=")
|
||||||
dapui.close()
|
dapui.close()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
@ -13,7 +13,9 @@ return {
|
|||||||
{
|
{
|
||||||
desc = " cwd session",
|
desc = " cwd session",
|
||||||
group = "Number",
|
group = "Number",
|
||||||
action = "SessionLoad",
|
action = function()
|
||||||
|
require("persistence").load()
|
||||||
|
end,
|
||||||
key = ".",
|
key = ".",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -40,6 +42,6 @@ return {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
keys = { { "<C-Space>", ":Dashboard<CR>" } },
|
-- keys = { { "<C-Space>", ":Dashboard<CR>" } },
|
||||||
dependencies = { { "nvim-tree/nvim-web-devicons" } },
|
dependencies = { { "nvim-tree/nvim-web-devicons" } },
|
||||||
}
|
}
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
return {
|
|
||||||
"andrewferrier/debugprint.nvim",
|
|
||||||
opts = {},
|
|
||||||
-- Dependency only needed for NeoVim 0.8
|
|
||||||
dependencies = {
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
},
|
|
||||||
-- Remove the following line to use development versions,
|
|
||||||
-- not just the formal releases
|
|
||||||
version = "*",
|
|
||||||
}
|
|
6
vim/.vim/lua/plugins/dev.lua
Normal file
6
vim/.vim/lua/plugins/dev.lua
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
-- {
|
||||||
|
-- "squk/google3.nvim",
|
||||||
|
-- dev = true,
|
||||||
|
-- },
|
||||||
|
}
|
@ -1,11 +1,21 @@
|
|||||||
|
-- disable underline
|
||||||
|
local use_google = require("utils").use_google
|
||||||
|
vim.diagnostic.handlers.underline.show = function() end
|
||||||
|
|
||||||
|
local signs = {
|
||||||
|
Error = " ",
|
||||||
|
Warning = " ",
|
||||||
|
Warn = " ",
|
||||||
|
Hint = "",
|
||||||
|
Info = " ",
|
||||||
|
Other = "",
|
||||||
|
}
|
||||||
|
for type, icon in pairs(signs) do
|
||||||
|
local hl = "DiagnosticSign" .. type
|
||||||
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
|
||||||
"luozhiya/lsp-virtual-improved.nvim",
|
|
||||||
event = { "LspAttach" },
|
|
||||||
config = function()
|
|
||||||
require("lsp-virtual-improved").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
event = { "LspAttach" },
|
event = { "LspAttach" },
|
||||||
@ -15,75 +25,82 @@ return {
|
|||||||
use_diagnostic_signs = true, -- enabling this will use the signs defined in your lsp client
|
use_diagnostic_signs = true, -- enabling this will use the signs defined in your lsp client
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>xt", "<cmd>:Telescope diagnostics<CR>" },
|
{ "<leader>xt", ":Telescope diagnostics<CR>" },
|
||||||
{ "<leader>xw", "<cmd>:Trouble workspace_diagnostics<CR>" },
|
{ "gr", ":Telescope lsp_references<CR>" },
|
||||||
{ "<leader>xd", "<cmd>:Trouble document_diagnostics<CR>" },
|
{ "<leader>xd", ":Trouble diagnostics toggle <CR>" },
|
||||||
{ "[g", "<cmd>lua vim.diagnostic.goto_prev()<CR>" },
|
{ "<leader>xbd", ":Trouble diagnostics toggle filter.buf=0<CR>" },
|
||||||
{ "]g", "<cmd>lua vim.diagnostic.goto_next()<CR>" },
|
{ "<leader>xe", ":Trouble diagnostics toggle filter.severity=vim.diagnostic.severity.ERROR<CR>" },
|
||||||
|
{ "[g", ":lua vim.diagnostic.goto_prev()<CR>" },
|
||||||
|
{ "]g", ":lua vim.diagnostic.goto_next()<CR>" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Maan2003/lsp_lines.nvim",
|
"rachartier/tiny-inline-diagnostic.nvim",
|
||||||
|
event = "LspAttach",
|
||||||
|
priority = 1000, -- needs to be loaded in first
|
||||||
|
cond = not use_google(),
|
||||||
|
config = function()
|
||||||
|
vim.diagnostic.config({ virtual_text = false })
|
||||||
|
|
||||||
|
require("tiny-inline-diagnostic").setup({
|
||||||
|
preset = "classic", -- Can be: "modern", "classic", "minimal", "powerline", ghost", "simple", "nonerdfont", "amongus"
|
||||||
|
|
||||||
|
-- Show the source of the diagnostic.
|
||||||
|
show_source = false,
|
||||||
|
|
||||||
|
-- Use your defined signs in the diagnostic config table.
|
||||||
|
use_icons_from_diagnostic = true,
|
||||||
|
|
||||||
|
-- Enable diagnostic message on all lines.
|
||||||
|
multilines = true,
|
||||||
|
|
||||||
|
-- Show all diagnostics on the cursor line.
|
||||||
|
show_all_diags_on_cursorline = false,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ErichDonGubler/lsp_lines.nvim",
|
||||||
event = { "LspAttach" },
|
event = { "LspAttach" },
|
||||||
name = "lsp_lines.nvim",
|
name = "lsp_lines.nvim",
|
||||||
|
cond = use_google(),
|
||||||
config = function()
|
config = function()
|
||||||
local signs = {
|
|
||||||
Error = " ",
|
|
||||||
Warning = " ",
|
|
||||||
Warn = " ",
|
|
||||||
Hint = "",
|
|
||||||
Info = " ",
|
|
||||||
Other = "",
|
|
||||||
}
|
|
||||||
for type, icon in pairs(signs) do
|
|
||||||
local hl = "DiagnosticSign" .. type
|
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
|
||||||
end
|
|
||||||
|
|
||||||
-- local colors = {
|
|
||||||
-- Error = { primary = "#f28b82", secondary = "#ab0101", invert = true },
|
|
||||||
-- Warning = { primary = "#f2b066", secondary = "#ab7a00", invert = false },
|
|
||||||
-- Hint = { primary = "#b4f9f8", secondary = "#008080", invert = true },
|
|
||||||
-- Info = { primary = "#abf2b0", secondary = "#008080", invert = true },
|
|
||||||
-- Other = { primary = "#abf2b0", secondary = "#008080", invert = true },
|
|
||||||
-- }
|
|
||||||
-- for type, colorpair in pairs(colors) do
|
|
||||||
-- local hl = "DiagnosticVirtualText" .. type
|
|
||||||
-- if not colorpair.invert then
|
|
||||||
-- vim.api.nvim_set_hl(0, hl, { fg = colorpair.primary, bg = colorpair.secondary })
|
|
||||||
-- else
|
|
||||||
-- vim.api.nvim_set_hl(0, hl, { fg = colorpair.secondary, bg = colorpair.primary })
|
|
||||||
-- end
|
|
||||||
-- end
|
|
||||||
|
|
||||||
require("lsp_lines").setup()
|
require("lsp_lines").setup()
|
||||||
|
|
||||||
vim.schedule(function()
|
-- vim.schedule(function()
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({
|
||||||
severity_sort = true,
|
severity_sort = true,
|
||||||
virtual_text = false,
|
virtual_text = false,
|
||||||
virtual_improved = {
|
virtual_improved = {
|
||||||
current_line = "hide",
|
severity = { min = vim.diagnostic.severity.WARN },
|
||||||
},
|
current_line = "hide",
|
||||||
virtual_lines = { highlight_whole_line = false, only_current_line = true },
|
},
|
||||||
})
|
virtual_lines = {
|
||||||
end)
|
severity = { min = vim.diagnostic.severity.HINT },
|
||||||
|
highlight_whole_line = false,
|
||||||
|
only_current_line = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
-- end)
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>l",
|
"<leader>l",
|
||||||
function()
|
function()
|
||||||
local new_value = not vim.diagnostic.config().virtual_lines.only_current_line
|
if vim.diagnostic.config().virtual_improved then
|
||||||
vim.diagnostic.config({
|
vim.diagnostic.config({ virtual_improved = false })
|
||||||
virtual_improved = {
|
else
|
||||||
current_line = new_value and "default" or "hide",
|
vim.diagnostic.config({
|
||||||
},
|
virtual_improved = {
|
||||||
virtual_lines = { only_current_line = new_value },
|
severity = { min = vim.diagnostic.severity.WARN },
|
||||||
})
|
current_line = "hide",
|
||||||
return new_value
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
desc = "Toggle LSP Lines",
|
desc = "Toggle Virtual Text",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -4,19 +4,14 @@ if not use_google() then
|
|||||||
return {}
|
return {}
|
||||||
end
|
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 veryLazy = require("nvgoog.util").veryLazy
|
local superlazy = require("nvgoog.util.superlazy")
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{ url = "sso://user/fentanes/nvgoog" },
|
{ import = "nvgoog.google.format" },
|
||||||
-- Prevent long sessions from losing cwd
|
|
||||||
-- Load google paths like //google/* with `gf`
|
|
||||||
{ import = "nvgoog.google.misc" },
|
|
||||||
-- maktaba is required by all google plugins
|
-- maktaba is required by all google plugins
|
||||||
glug("maktaba", {
|
glug("maktaba", {
|
||||||
lazy = true,
|
lazy = true,
|
||||||
@ -25,44 +20,33 @@ return {
|
|||||||
vim.cmd("source /usr/share/vim/google/glug/bootstrap.vim")
|
vim.cmd("source /usr/share/vim/google/glug/bootstrap.vim")
|
||||||
end,
|
end,
|
||||||
}),
|
}),
|
||||||
glug("core"),
|
|
||||||
glug("glaive"),
|
|
||||||
glug("alert"),
|
|
||||||
glug("csearch"),
|
|
||||||
glug("languages"),
|
|
||||||
-- glug("googlestyle"),
|
|
||||||
glug("googlespell"),
|
|
||||||
-- Enable logmsgs ASAP to avoid maktaba's log message queue filling up
|
|
||||||
glug("logmsgs", {
|
|
||||||
event = "VeryLazy",
|
|
||||||
}),
|
|
||||||
glug("googler", {
|
glug("googler", {
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
}),
|
}),
|
||||||
|
glug("glaive"),
|
||||||
|
glug("alert"),
|
||||||
|
glug("googlespell"),
|
||||||
-- Add support for google filetypes
|
-- Add support for google filetypes
|
||||||
glug("google-filetypes", {
|
glug("google-filetypes", { event = { "BufReadPre", "BufNewFile" }, dependencies = {} }),
|
||||||
event = "BufReadPre",
|
|
||||||
}),
|
glug("add_usings"),
|
||||||
-- Set up syntax, indent, and core settings for various filetypes
|
|
||||||
veryLazy(glug("ft-cel")),
|
|
||||||
veryLazy(glug("ft-clif")),
|
|
||||||
veryLazy(glug("ft-cpp")),
|
|
||||||
veryLazy(glug("ft-gin")),
|
|
||||||
veryLazy(glug("ft-go")),
|
|
||||||
veryLazy(glug("ft-java")),
|
|
||||||
veryLazy(glug("ft-javascript")),
|
|
||||||
veryLazy(glug("ft-kotlin")),
|
|
||||||
veryLazy(glug("ft-proto")),
|
|
||||||
veryLazy(glug("ft-python")),
|
|
||||||
veryLazy(glug("ft-soy")),
|
|
||||||
-- Configures nvim to respect Google's coding style
|
|
||||||
veryLazy(glug("googlestyle")),
|
|
||||||
-- Autogens boilerplate when creating new files
|
-- Autogens boilerplate when creating new files
|
||||||
glug("autogen", {
|
glug("autogen", {
|
||||||
event = "BufNewFile",
|
event = "BufNewFile",
|
||||||
}),
|
}),
|
||||||
-- 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"),
|
||||||
@ -90,20 +74,13 @@ return {
|
|||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
glug("relatedfiles", {
|
glug("relatedfiles", {
|
||||||
keys = {
|
-- stylua: ignore
|
||||||
{
|
keys = {
|
||||||
"<leader>rb",
|
{ "<leader>rb", ":exec relatedfiles#selector#JumpToBuild()<CR>" },
|
||||||
":exec relatedfiles#selector#JumpToBuild()<CR>",
|
{ "<leader>rt", ":exec relatedfiles#selector#JumpToTestFile()<CR>" },
|
||||||
},
|
{ "<leader>rh", ":exec relatedfiles#selector#JumpToHeader()<CR>" },
|
||||||
{
|
{ "<leader>rc", ":exec relatedfiles#selector#JumpToCodeFile()<CR>" },
|
||||||
"<leader>rt",
|
},
|
||||||
":exec relatedfiles#selector#JumpToTestFile()<CR>",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rc",
|
|
||||||
":exec relatedfiles#selector#JumpToCodeFile()<CR>",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
{ "junegunn/fzf", dir = "~/.fzf", build = "./install --all" },
|
{ "junegunn/fzf", dir = "~/.fzf", build = "./install --all" },
|
||||||
{ "junegunn/fzf.vim", dependencies = { "junegunn/fzf" } },
|
{ "junegunn/fzf.vim", dependencies = { "junegunn/fzf" } },
|
||||||
@ -145,7 +122,8 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
cmd = { "FormatLines", "FormatCode", "AutoFormatBuffer" },
|
cmd = { "FormatLines", "FormatCode", "AutoFormatBuffer" },
|
||||||
event = "BufWritePre",
|
event = "VimEnter",
|
||||||
|
|
||||||
-- Setting up autocmds in init allows deferring loading the plugin until
|
-- Setting up autocmds in init allows deferring loading the plugin until
|
||||||
-- the `BufWritePre` event. One caveat is we must call `codefmt#FormatBuffer()`
|
-- the `BufWritePre` event. One caveat is we must call `codefmt#FormatBuffer()`
|
||||||
-- manually the first time since the plugin relies on the `BufWritePre` command to call it,
|
-- manually the first time since the plugin relies on the `BufWritePre` command to call it,
|
||||||
@ -170,16 +148,7 @@ return {
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
-- Build opts from possible parent specs since lazy.nvim doesn't provide it in `init`
|
-- Build opts from possible parent specs since lazy.nvim doesn't provide it in `init`
|
||||||
local plugin_opts = {}
|
local plugin_opts = require("lazy.core.plugin").values(plugin, "opts", false)
|
||||||
local curr_plugin = plugin
|
|
||||||
while curr_plugin do
|
|
||||||
if type(curr_plugin.opts) == "table" then
|
|
||||||
plugin_opts = require("lazy.core.util").merge(curr_plugin.opts, plugin_opts)
|
|
||||||
elseif type(curr_plugin.opts) == "function" then
|
|
||||||
plugin_opts = curr_plugin.opts(plugin, plugin_opts)
|
|
||||||
end
|
|
||||||
curr_plugin = curr_plugin._ and curr_plugin._.super or nil
|
|
||||||
end
|
|
||||||
for filetypes, formatter in pairs(plugin_opts.auto_format or {}) do
|
for filetypes, formatter in pairs(plugin_opts.auto_format or {}) do
|
||||||
autocmd(filetypes, formatter)
|
autocmd(filetypes, formatter)
|
||||||
end
|
end
|
||||||
@ -203,40 +172,37 @@ return {
|
|||||||
"BlazeDebugFinish",
|
"BlazeDebugFinish",
|
||||||
"BlazeDepsUpdate",
|
"BlazeDepsUpdate",
|
||||||
},
|
},
|
||||||
config = function()
|
|
||||||
require("config.blaze")
|
|
||||||
end,
|
|
||||||
keys = function()
|
keys = function()
|
||||||
local function runCmd(cmd)
|
local function runCommandWithTarget(cmd)
|
||||||
return function()
|
return function()
|
||||||
vim.g._calling_blaze_cmd = 1
|
local targets = table.concat(vim.fn["blaze#GetTargets"](), " ")
|
||||||
vim.cmd(cmd)
|
local command = "VimuxRunCommand('" .. cmd .. " " .. targets .. "')"
|
||||||
-- Clear the "blaze: SUCCESS" that blaze.vim will print
|
print(vim.inspect(command))
|
||||||
if vim.g._call_blaze_query then
|
vim.cmd(command)
|
||||||
print("")
|
|
||||||
end
|
|
||||||
vim.g._calling_blaze_cmd = 0
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
{ "<leader>b", desc = "Blaze" },
|
{ "<leader>b", desc = "Blaze" },
|
||||||
{ "<leader>bt", ":call BlazeTest()<CR>", desc = "Blaze Test" },
|
{ "<leader>bb", runCommandWithTarget("blaze build"), desc = "Blaze Build" },
|
||||||
{ "<leader>bb", ":call BlazeBuild()<CR>", desc = "Blaze Build" },
|
{ "<leader>br", runCommandWithTarget("blaze run"), desc = "Blaze Run" },
|
||||||
{ "<leader>br", ":call BlazeRun()<CR>", desc = "Blaze Run" },
|
{ "<leader>bt", runCommandWithTarget("blaze test"), desc = "Blaze Test" },
|
||||||
|
{ "<leader>bc", runCommandWithTarget("build_cleaner"), desc = "Blaze Run" },
|
||||||
{
|
{
|
||||||
"<leader>yb",
|
"<leader>yb",
|
||||||
":let t = join(blaze#GetTargets(), ' ') | echo t | let @+ = t <CR>",
|
":let t = join(blaze#GetTargets(), ' ') | echo t | let @+ = t | let @\" = t<CR>",
|
||||||
desc = "Yank Blaze Target",
|
desc = "Yank Blaze Target",
|
||||||
},
|
},
|
||||||
{ "<leader>bf", runCmd("call blaze#TestCurrentFile()"), desc = "Blaze test current file" },
|
{
|
||||||
{ "<leader>bm", runCmd("call blaze#TestCurrentMethod()"), desc = "Blaze test current method" },
|
"<leader>bq",
|
||||||
{ "<leader>bd", desc = "Blaze debug" },
|
function()
|
||||||
{ "<leader>bdf", runCmd("BlazeDebugCurrentFileTest"), desc = "Blaze debug current file" },
|
local targets = vim.fn["blaze#GetTargets"]()
|
||||||
{ "<leader>bdm", runCmd("BlazeDebugCurrentTestMethod"), desc = "Blaze debug current method" },
|
for _, t in ipairs(targets) do
|
||||||
{ "<leader>bda", runCmd("BlazeDebugAddBreakpoint"), desc = "Blaze debug add breakpoint" },
|
print(vim.inspect(t))
|
||||||
{ "<leader>bdc", runCmd("BlazeDebugClearBreakpoint"), desc = "Blaze debug clear breakpoint" },
|
vim.cmd("VimuxRunCommand('blaze query " .. t:gsub(":.+", "") .. ":\\*" .. "')")
|
||||||
{ "<leader>bdf", runCmd("BlazeDebugFinish"), desc = "Blaze debug finish" },
|
end
|
||||||
{ "<leader>bu", runCmd("BlazeDepsUpdate"), desc = "Blaze update dependencies" },
|
end,
|
||||||
|
desc = "Blaze query the current package",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
}),
|
}),
|
||||||
@ -256,9 +222,14 @@ return {
|
|||||||
},
|
},
|
||||||
cmd = { "ImpSuggest", "ImpFirst" },
|
cmd = { "ImpSuggest", "ImpFirst" },
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>i", ":ImpSuggest <C-r><C-w><cr>" },
|
{ "<leader>I", ":ImpSuggest <C-r><C-w><cr>" },
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
{
|
||||||
|
url = "sso://user/fentanes/googlepaths.nvim",
|
||||||
|
event = { "VeryLazy", "BufReadCmd //*", "BufReadCmd google3/*" },
|
||||||
|
opts = {},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name = "ai.nvim",
|
name = "ai.nvim",
|
||||||
url = "sso://googler@user/vvvv/ai.nvim",
|
url = "sso://googler@user/vvvv/ai.nvim",
|
||||||
@ -267,26 +238,31 @@ return {
|
|||||||
name = "cmp-nvim-ciderlsp",
|
name = "cmp-nvim-ciderlsp",
|
||||||
url = "sso://googler@user/piloto/cmp-nvim-ciderlsp",
|
url = "sso://googler@user/piloto/cmp-nvim-ciderlsp",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = {
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "ciderlsp-nvim",
|
name = "ciderlsp-nvim",
|
||||||
url = "sso://googler@user/kdark/ciderlsp-nvim",
|
url = "sso://googler@user/kdark/ciderlsp-nvim",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
dependencies = {
|
},
|
||||||
"hrsh7th/nvim-cmp",
|
{
|
||||||
|
url = "sso://user/jackcogdill/nvim-figtree",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<Leader>ft",
|
||||||
|
function()
|
||||||
|
require("figtree").toggle()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
-- see |figtree-configuration| for all possible options
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- {
|
|
||||||
-- name = "nvim_figtree",
|
|
||||||
-- url = "sso://googler@user/jackcogdill/nvim-figtree",
|
|
||||||
-- },
|
|
||||||
{
|
{
|
||||||
name = "telescope_codesearch",
|
name = "telescope_codesearch",
|
||||||
url = "sso://googler@user/vintharas/telescope-codesearch.nvim",
|
url = "sso://googler@user/vintharas/telescope-codesearch.nvim",
|
||||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
dependencies = { "nvim-telescope/telescope.nvim" },
|
||||||
|
config = function() end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name = "telescope_citc",
|
name = "telescope_citc",
|
||||||
@ -301,29 +277,32 @@ return {
|
|||||||
{
|
{
|
||||||
name = "critique-nvim",
|
name = "critique-nvim",
|
||||||
dir = "~/critique-nvim/",
|
dir = "~/critique-nvim/",
|
||||||
|
lazy = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rktjmp/time-ago.vim",
|
"rktjmp/time-ago.vim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
"runiq/neovim-throttle-debounce",
|
"runiq/neovim-throttle-debounce",
|
||||||
},
|
},
|
||||||
|
-- here are some mappings you might want:
|
||||||
|
keys = {
|
||||||
|
{ "<Leader>lc", ":CritiqueToggleLineComment<CR>" },
|
||||||
|
{ "<Leader>ac", ":CritiqueToggleAllComments<CR>" },
|
||||||
|
{ "<Leader>uc", ":CritiqueToggleUnresolvedComments<CR>" },
|
||||||
|
{ "<Leader>fc", ":CritiqueFetchComments<CR>" },
|
||||||
|
{ "<Leader>tc", ":CritiqueCommentsTelescope<CR>" },
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
-- Here are all the options and their default values:
|
-- Here are all the options and their default values:
|
||||||
require("critique.comments").setup({
|
require("critique.comments").setup({
|
||||||
|
-- debug = 1, -- default = 0
|
||||||
-- Fetch the comments after calling `setup`.
|
-- Fetch the comments after calling `setup`.
|
||||||
auto_fetch = true, -- default = true
|
auto_fetch = true, -- default = true
|
||||||
|
auto_render = true, -- default = true
|
||||||
-- Allow checking for comments on BufEnter events. This is throttled to once every 10 seconds.
|
-- Allow checking for comments on BufEnter events. This is throttled to once every 10 seconds.
|
||||||
frequent_fetch = true, -- default = false
|
frequent_fetch = true, -- default = false
|
||||||
|
verbose_notifications = true,
|
||||||
})
|
})
|
||||||
local map = require("utils").map
|
|
||||||
-- here are some mappings you might want:
|
|
||||||
map("n", "]c", [[<Cmd>CritiqueGotoNextComment<CR>]])
|
|
||||||
map("n", "[c", [[<Cmd>CritiqueGotoPrevComment<CR>]])
|
|
||||||
map("n", "<Leader>lc", [[<Cmd>CritiqueToggleLineComment<CR>]])
|
|
||||||
map("n", "<Leader>uc", [[<Cmd>CritiqueToggleUnresolvedComments<CR>]])
|
|
||||||
map("n", "<Leader>ac", [[<Cmd>CritiqueToggleAllComments<CR>]])
|
|
||||||
map("n", "<Leader>fc", [[<Cmd>CritiqueFetchComments<CR>]])
|
|
||||||
map("n", "<Leader>tc", [[<Cmd>CritiqueCommentsTelescope<CR>]])
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -337,7 +316,6 @@ return {
|
|||||||
url = "sso://googler@user/smwang/hg.nvim",
|
url = "sso://googler@user/smwang/hg.nvim",
|
||||||
dependencies = { "ipod825/libp.nvim" },
|
dependencies = { "ipod825/libp.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
require("config.fig")
|
|
||||||
require("hg").setup()
|
require("hg").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
11
vim/.vim/lua/plugins/lazydev.lua
Normal file
11
vim/.vim/lua/plugins/lazydev.lua
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
"folke/lazydev.nvim",
|
||||||
|
ft = "lua", -- only load on lua files
|
||||||
|
opts = {
|
||||||
|
library = {
|
||||||
|
-- See the configuration section for more details
|
||||||
|
-- Load luvit types when the `vim.uv` word is found
|
||||||
|
{ path = "${3rd}/luv/library", words = { "vim%.uv" } },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
return {
|
|
||||||
"ggandor/leap.nvim",
|
|
||||||
config = function()
|
|
||||||
require("leap").add_default_mappings()
|
|
||||||
end,
|
|
||||||
}
|
|
@ -1,95 +1,140 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
local flags = require("utils").flags
|
||||||
|
|
||||||
|
local function add_import()
|
||||||
|
vim.lsp.buf.code_action({
|
||||||
|
apply = true,
|
||||||
|
context = {
|
||||||
|
only = { "quickfix.addImports" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
local deps = {
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
"nvim-lua/lsp-status.nvim",
|
|
||||||
"VonHeikemen/lsp-zero.nvim",
|
|
||||||
"ray-x/go.nvim",
|
|
||||||
"ray-x/guihua.lua",
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"kosayoda/nvim-lightbulb",
|
||||||
build = "make install_jsregexp",
|
commit = "1cae7b7153ae98dcf1b11173a443ac1b6d8e3d49",
|
||||||
config = function()
|
event = { "LspAttach" },
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
opts = {
|
||||||
end,
|
autocmd = { enabled = true },
|
||||||
dependencies = { "rafamadriz/friendly-snippets" },
|
virtual_text = {
|
||||||
},
|
enabled = true,
|
||||||
{
|
text = " ",
|
||||||
"hinell/lsp-timeout.nvim",
|
hl = "DiagnosticWarn",
|
||||||
dependencies = { "neovim/nvim-lspconfig" },
|
},
|
||||||
cond = not use_google(),
|
sign = { enabled = false },
|
||||||
config = function()
|
},
|
||||||
vim.g.lspTimeoutConfig = {
|
},
|
||||||
filetypes = {
|
{
|
||||||
ignore = { -- filetypes to ignore; empty by default
|
"L3MON4D3/LuaSnip",
|
||||||
"gdscript",
|
build = "make install_jsregexp",
|
||||||
"rust",
|
config = function()
|
||||||
}, -- for these filetypes
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
},
|
end,
|
||||||
}
|
dependencies = { "rafamadriz/friendly-snippets" },
|
||||||
end,
|
},
|
||||||
},
|
{
|
||||||
{
|
"ray-x/go.nvim",
|
||||||
"neovim/nvim-lspconfig",
|
dependencies = { -- optional packages
|
||||||
dependencies = deps,
|
"ray-x/guihua.lua",
|
||||||
keys = {
|
"neovim/nvim-lspconfig",
|
||||||
{ "<leader>rn", "<cmd>lua vim.lsp.buf.rename()<CR>" },
|
"nvim-treesitter/nvim-treesitter",
|
||||||
-- { "?", "<cmd>lua vim.lsp.buf.code_action()<CR>" },
|
},
|
||||||
{ "L", "<cmd>lua vim.lsp.buf.hover()<CR>" },
|
-- cond = not use_google(),
|
||||||
{ "g0", "<cmd>lua vim.lsp.buf.document_symbol()<CR>" },
|
config = function()
|
||||||
{ "gr", "<Cmd>Telescope lsp_references<CR>" },
|
local capabilities = flags.blink
|
||||||
{ "gW", "<cmd>lua vim.lsp.buf.workspace_symbol()<CR>" },
|
and require("blink.cmp").get_lsp_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
{ "gd", "<cmd>lua vim.lsp.buf.definition()<CR>" },
|
or require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
{ "gD", "<cmd>tab split | lua vim.lsp.buf.definition()<CR>" },
|
capabilities.offsetEncoding = { "utf-16" }
|
||||||
{ "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>" },
|
require("go").setup({
|
||||||
{ "gI", "<cmd>lua vim.lsp.buf.implementation()<CR>" },
|
lsp_cfg = { capabilities = capabilities },
|
||||||
{ "gR", "<cmd>lua vim.lsp.buf.references()<CR>" },
|
lsp_keymaps = false,
|
||||||
{ "<C-g>", "<cmd>lua vim.lsp.buf.signature_help()<CR>" },
|
lsp_inlay_hints = {
|
||||||
{ "gt", "<cmd>lua vim.lsp.buf.type_definition()<CR>" },
|
enable = not use_google(), -- doesn't work with ciderlsp
|
||||||
{ "<C-g>", "<cmd>lua vim.lsp.buf.signature_help()<CR>", mode = "i" },
|
},
|
||||||
{ "<leader>ca", "<cmd>lua vim.lsp.buf.code_action()<CR>", mode = "v" },
|
})
|
||||||
},
|
-- Run gofmt + goimports on save
|
||||||
config = function()
|
|
||||||
local lsp_status = require("lsp-status")
|
|
||||||
lsp_status.register_progress()
|
|
||||||
|
|
||||||
vim.opt.spell = true
|
local format_sync_grp = vim.api.nvim_create_augroup("goimports", {})
|
||||||
vim.opt.spelllang = { "en_us" }
|
|
||||||
|
|
||||||
local capabilities =
|
|
||||||
require("cmp_nvim_lsp").default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
|
||||||
capabilities = vim.tbl_extend("keep", capabilities or {}, lsp_status.capabilities)
|
|
||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
|
||||||
local configs = require("lspconfig.configs")
|
|
||||||
require("config.lsp-google").setup(capabilities)
|
|
||||||
|
|
||||||
-- Godot
|
|
||||||
lspconfig.gdscript.setup({
|
|
||||||
-- flags = {
|
|
||||||
-- debounce_text_changes = 2000, -- Wait 5 seconds before sending didChange
|
|
||||||
-- },
|
|
||||||
})
|
|
||||||
vim.cmd([[autocmd FileType gdscript setlocal commentstring=#\ %s]])
|
|
||||||
vim.cmd([[autocmd FileType gdscript setlocal autoindent noexpandtab tabstop=4 shiftwidth=4]])
|
|
||||||
|
|
||||||
-- Golang
|
|
||||||
require("go").setup({
|
|
||||||
lsp_cfg = {
|
|
||||||
capabilities = capabilities,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
|
|
||||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||||
pattern = "*.go",
|
pattern = "*.go",
|
||||||
callback = function()
|
callback = function()
|
||||||
require("go.format").goimport()
|
require("go.format").goimports()
|
||||||
end,
|
end,
|
||||||
group = format_sync_grp,
|
group = format_sync_grp,
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
|
ft = { "go", "gomod" },
|
||||||
|
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
"hrsh7th/nvim-cmp",
|
||||||
|
"saghen/blink.cmp",
|
||||||
|
"saghen/blink.compat",
|
||||||
|
"nvim-lua/lsp-status.nvim",
|
||||||
|
"VonHeikemen/lsp-zero.nvim",
|
||||||
|
},
|
||||||
|
keys = {
|
||||||
|
{ "<leader>F", ":lua vim.lsp.buf.format()<CR>" },
|
||||||
|
{ "<leader>i", add_import },
|
||||||
|
{ "<leader>rn", ":lua vim.lsp.buf.rename()<CR>" },
|
||||||
|
{ "L", ":lua vim.lsp.buf.hover()<CR>" },
|
||||||
|
{ "gr", ":Telescope lsp_references<CR>" },
|
||||||
|
{ "gd", ":lua vim.lsp.buf.definition()<CR>" },
|
||||||
|
-- { "gd", "<cmd>Telescope lsp_definitions<CR>" },
|
||||||
|
{ "gD", ":tab split | lua vim.lsp.buf.definition()<CR>" },
|
||||||
|
{ "gi", ":lua vim.lsp.buf.implementation()<CR>" },
|
||||||
|
{ "gI", ":lua vim.lsp.buf.implementation()<CR>" },
|
||||||
|
{ "gR", ":lua vim.lsp.buf.references()<CR>" },
|
||||||
|
{ "gt", ":lua vim.lsp.buf.type_definition()<CR>" },
|
||||||
|
{ "<C-g>", ":lua vim.lsp.buf.signature_help()<CR>" },
|
||||||
|
{ "<C-g>", ":lua vim.lsp.buf.signature_help()<CR>", mode = "i" },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
local lspconfig = require("lspconfig")
|
||||||
|
local lsp_configs = require("lspconfig.configs")
|
||||||
|
|
||||||
|
lsp_configs.ciderlsp = {
|
||||||
|
default_config = {
|
||||||
|
cmd = {
|
||||||
|
"/google/bin/releases/cider/ciderlsp/ciderlsp",
|
||||||
|
"--tooltag=nvim-lsp",
|
||||||
|
"--noforward_sync_responses",
|
||||||
|
},
|
||||||
|
filetypes = {
|
||||||
|
"c",
|
||||||
|
"cpp",
|
||||||
|
"java",
|
||||||
|
"kotlin",
|
||||||
|
"objc",
|
||||||
|
"proto",
|
||||||
|
"textproto",
|
||||||
|
"go",
|
||||||
|
"python",
|
||||||
|
"bzl",
|
||||||
|
"typescript",
|
||||||
|
},
|
||||||
|
offset_encoding = "utf-8",
|
||||||
|
root_dir = lspconfig.util.root_pattern(".citc"),
|
||||||
|
settings = {},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
if use_google() then
|
||||||
|
lspconfig.ciderlsp.setup({})
|
||||||
|
end
|
||||||
|
|
||||||
|
lspconfig.gdscript.setup({})
|
||||||
|
-- require('lspconfig').gdscript.setup { cmd = { "ncat", "localhost", "6005" }, root_dir = function()
|
||||||
|
-- return vim.fs.dirname(vim.fs.find('project.godot', { upward = true })[1])
|
||||||
|
-- end
|
||||||
|
-- }
|
||||||
|
|
||||||
|
vim.cmd([[autocmd FileType gdscript setlocal commentstring=#\ %s]])
|
||||||
|
vim.cmd([[autocmd FileType gdscript setlocal autoindent noexpandtab tabstop=4 shiftwidth=4 wrap]])
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,84 +1,41 @@
|
|||||||
local split = function(inputstr, sep)
|
|
||||||
local t = {}
|
|
||||||
for str in string.gmatch(inputstr, "([^" .. sep .. "]+)") do
|
|
||||||
table.insert(t, str)
|
|
||||||
end
|
|
||||||
return t
|
|
||||||
end
|
|
||||||
local function getCitc()
|
|
||||||
local fname = vim.api.nvim_buf_get_name(0)
|
|
||||||
if string.find(fname, "/google/src/cloud/", 1, true) then
|
|
||||||
local parts = split(fname, "/")
|
|
||||||
return parts[5]
|
|
||||||
end
|
|
||||||
end
|
|
||||||
local function isCiderLspAttached()
|
|
||||||
if vim.b["is_cider_lsp_attached"] then
|
|
||||||
if vim.b["is_cider_lsp_attached"] == "yes" then
|
|
||||||
return "✓"
|
|
||||||
else
|
|
||||||
return "x"
|
|
||||||
end
|
|
||||||
else
|
|
||||||
return ""
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local function getLightbulb()
|
|
||||||
return require("nvim-lightbulb").get_status_text()
|
|
||||||
end
|
|
||||||
|
|
||||||
local function getLGTMs()
|
|
||||||
local comments = require("google.comments")
|
|
||||||
local tracker = require("google.comments.tracker")
|
|
||||||
local dump = require("utils").dump
|
|
||||||
|
|
||||||
print(dump(tracker.get_all_comments()))
|
|
||||||
local lgtm = comments.get_lgtms()
|
|
||||||
local appr = comments.get_approvals()
|
|
||||||
print("lgtms" .. dump(lgtm))
|
|
||||||
print("approvals" .. dump(appr))
|
|
||||||
return "LGTM:" .. table.concat(lgtm, ",") .. " Approval:" .. table.concat(appr, ",")
|
|
||||||
end
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
config = function()
|
config = function()
|
||||||
local lsp_status = require("lsp-status")
|
local lsp_status = require("lsp-status")
|
||||||
|
|
||||||
require("lualine").setup({
|
require("lualine").setup({
|
||||||
options = {
|
options = {
|
||||||
theme = "auto",
|
theme = "auto",
|
||||||
globalstatus = false,
|
globalstatus = false,
|
||||||
refresh = {
|
refresh = {
|
||||||
statusline = 1000,
|
statusline = 100,
|
||||||
-- tabline = 1000,
|
tabline = 100,
|
||||||
winbar = 1000,
|
winbar = 100,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = { "branch", "diff", getCitc, isCiderLspAttached },
|
lualine_b = { "branch", "diff" },
|
||||||
lualine_c = {
|
lualine_c = {
|
||||||
getLightbulb,
|
require("nvim-lightbulb").get_status_text,
|
||||||
{
|
{
|
||||||
"filename",
|
"filename",
|
||||||
path = 4, -- 0 = just filename, 1 = relative path, 2 = absolute path
|
path = 4, -- 0 = just filename, 1 = relative path, 2 = absolute path
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
lualine_x = {
|
lualine_x = {
|
||||||
"",
|
"",
|
||||||
{
|
{
|
||||||
"diagnostics",
|
"diagnostics",
|
||||||
sources = { "nvim_lsp" },
|
sources = { "nvim_lsp" },
|
||||||
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
symbols = { error = " ", warn = " ", info = " ", hint = " " },
|
||||||
},
|
},
|
||||||
"filetype",
|
"filetype",
|
||||||
},
|
},
|
||||||
lualine_y = { "progress" },
|
lualine_y = { "progress" },
|
||||||
lualine_z = { "location" },
|
lualine_z = { "location" },
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
return {
|
|
||||||
{
|
|
||||||
"L3MON4D3/LuaSnip",
|
|
||||||
-- follow latest release.
|
|
||||||
version = "<CurrentMajor>.*", -- Replace <CurrentMajor> by the latest released major (first number of latest release)
|
|
||||||
-- install jsregexp (optional!).
|
|
||||||
build = "make install_jsregexp",
|
|
||||||
},
|
|
||||||
{ "saadparwaiz1/cmp_luasnip" },
|
|
||||||
}
|
|
@ -16,13 +16,13 @@ return {
|
|||||||
"bashls",
|
"bashls",
|
||||||
"dotls",
|
"dotls",
|
||||||
"golangci_lint_ls",
|
"golangci_lint_ls",
|
||||||
|
"gopls",
|
||||||
}
|
}
|
||||||
|
|
||||||
if not use_google() then
|
if not use_google() then
|
||||||
TableConcat(lsps, {
|
TableConcat(lsps, {
|
||||||
"pyright",
|
"pyright",
|
||||||
"omnisharp_mono",
|
"omnisharp_mono",
|
||||||
"tsserver",
|
|
||||||
"docker_compose_language_service",
|
"docker_compose_language_service",
|
||||||
"dockerls",
|
"dockerls",
|
||||||
"graphql",
|
"graphql",
|
||||||
@ -34,93 +34,95 @@ return {
|
|||||||
|
|
||||||
require("mason").setup()
|
require("mason").setup()
|
||||||
require("mason-lspconfig").setup({
|
require("mason-lspconfig").setup({
|
||||||
automatic_installation = true,
|
automatic_installation = false,
|
||||||
ensure_installed = lsps,
|
ensure_installed = lsps,
|
||||||
})
|
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)
|
||||||
|
-- vim.notify("Mason LSP:" .. server_name)
|
||||||
|
require("lspconfig")[server_name].setup({})
|
||||||
|
end,
|
||||||
|
-- Prevent mason from setting up rust_analyzer since that's handled by rustaceanvim
|
||||||
|
["rust_analyzer"] = function() end,
|
||||||
|
["omnisharp_mono"] = function()
|
||||||
|
require("lspconfig").omnisharp_mono.setup({
|
||||||
|
handlers = {
|
||||||
|
["textDocument/definition"] = require("omnisharp_extended").handler,
|
||||||
|
},
|
||||||
|
-- cmd = { "dotnet", "/path/to/omnisharp/OmniSharp.dll" },
|
||||||
|
|
||||||
require("mason-lspconfig").setup_handlers({
|
-- Enables support for reading code style, naming convention and analyzer
|
||||||
-- The first entry (without a key) will be the default handler
|
-- settings from .editorconfig.
|
||||||
-- and will be called for each installed server that doesn't have
|
enable_editorconfig_support = true,
|
||||||
-- a dedicated handler.
|
|
||||||
function(server_name) -- default handler (optional)
|
|
||||||
require("lspconfig")[server_name].setup({})
|
|
||||||
end,
|
|
||||||
["omnisharp_mono"] = function()
|
|
||||||
require("lspconfig").omnisharp_mono.setup({
|
|
||||||
handlers = {
|
|
||||||
["textDocument/definition"] = require("omnisharp_extended").handler,
|
|
||||||
},
|
|
||||||
-- cmd = { "dotnet", "/path/to/omnisharp/OmniSharp.dll" },
|
|
||||||
|
|
||||||
-- Enables support for reading code style, naming convention and analyzer
|
-- If true, MSBuild project system will only load projects for files that
|
||||||
-- settings from .editorconfig.
|
-- were opened in the editor. This setting is useful for big C# codebases
|
||||||
enable_editorconfig_support = true,
|
-- and allows for faster initialization of code navigation features only
|
||||||
|
-- for projects that are relevant to code that is being edited. With this
|
||||||
|
-- setting enabled OmniSharp may load fewer projects and may thus display
|
||||||
|
-- incomplete reference lists for symbols.
|
||||||
|
enable_ms_build_load_projects_on_demand = false, -- default false
|
||||||
|
|
||||||
-- If true, MSBuild project system will only load projects for files that
|
-- Enables support for roslyn analyzers, code fixes and rulesets.
|
||||||
-- were opened in the editor. This setting is useful for big C# codebases
|
enable_roslyn_analyzers = true, -- default false
|
||||||
-- and allows for faster initialization of code navigation features only
|
|
||||||
-- for projects that are relevant to code that is being edited. With this
|
|
||||||
-- setting enabled OmniSharp may load fewer projects and may thus display
|
|
||||||
-- incomplete reference lists for symbols.
|
|
||||||
enable_ms_build_load_projects_on_demand = false, -- default false
|
|
||||||
|
|
||||||
-- Enables support for roslyn analyzers, code fixes and rulesets.
|
-- Specifies whether 'using' directives should be grouped and sorted during
|
||||||
enable_roslyn_analyzers = true, -- default false
|
-- document formatting.
|
||||||
|
organize_imports_on_format = true, -- default false
|
||||||
|
|
||||||
-- Specifies whether 'using' directives should be grouped and sorted during
|
-- Enables support for showing unimported types and unimported extension
|
||||||
-- document formatting.
|
-- methods in completion lists. When committed, the appropriate using
|
||||||
organize_imports_on_format = true, -- default false
|
-- directive will be added at the top of the current file. This option can
|
||||||
|
-- have a negative impact on initial completion responsiveness,
|
||||||
|
-- particularly for the first few completion sessions after opening a
|
||||||
|
-- solution.
|
||||||
|
enable_import_completion = true, -- default false
|
||||||
|
|
||||||
-- Enables support for showing unimported types and unimported extension
|
-- Specifies whether to include preview versions of the .NET SDK when
|
||||||
-- methods in completion lists. When committed, the appropriate using
|
-- determining which version to use for project loading.
|
||||||
-- directive will be added at the top of the current file. This option can
|
sdk_include_prereleases = true,
|
||||||
-- have a negative impact on initial completion responsiveness,
|
|
||||||
-- particularly for the first few completion sessions after opening a
|
|
||||||
-- solution.
|
|
||||||
enable_import_completion = true, -- default false
|
|
||||||
|
|
||||||
-- Specifies whether to include preview versions of the .NET SDK when
|
-- Only run analyzers against open files when 'enableRoslynAnalyzers' is
|
||||||
-- determining which version to use for project loading.
|
-- true
|
||||||
sdk_include_prereleases = true,
|
analyze_open_documents_only = true, -- default false
|
||||||
|
})
|
||||||
-- Only run analyzers against open files when 'enableRoslynAnalyzers' is
|
end,
|
||||||
-- true
|
["lua_ls"] = function()
|
||||||
analyze_open_documents_only = true, -- default false
|
require("lspconfig").lua_ls.setup({
|
||||||
})
|
settings = {
|
||||||
end,
|
Lua = {
|
||||||
["lua_ls"] = function()
|
runtime = {
|
||||||
require("lspconfig").lua_ls.setup({
|
-- Tell the language server which version of Lua you're using
|
||||||
settings = {
|
-- (most likely LuaJIT in the case of Neovim)
|
||||||
Lua = {
|
version = "LuaJIT",
|
||||||
runtime = {
|
|
||||||
-- Tell the language server which version of Lua you're using
|
|
||||||
-- (most likely LuaJIT in the case of Neovim)
|
|
||||||
version = "LuaJIT",
|
|
||||||
},
|
|
||||||
diagnostics = {
|
|
||||||
-- Get the language server to recognize the `vim` global
|
|
||||||
globals = {
|
|
||||||
"vim",
|
|
||||||
"require",
|
|
||||||
},
|
},
|
||||||
},
|
diagnostics = {
|
||||||
workspace = {
|
-- Get the language server to recognize the `vim` global
|
||||||
checkThirdParty = false, -- stop a annoying dialog on startup
|
globals = {
|
||||||
-- Make the server aware of Neovim runtime files
|
"vim",
|
||||||
-- library = vim.api.nvim_get_runtime_file("", true),
|
"require",
|
||||||
library = {
|
},
|
||||||
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
|
},
|
||||||
[vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true,
|
workspace = {
|
||||||
|
checkThirdParty = false, -- stop a annoying dialog on startup
|
||||||
|
-- Make the server aware of Neovim runtime files
|
||||||
|
-- library = vim.api.nvim_get_runtime_file("", true),
|
||||||
|
library = {
|
||||||
|
[vim.fn.expand("$VIMRUNTIME/lua")] = true,
|
||||||
|
[vim.fn.expand("$VIMRUNTIME/lua/vim/lsp")] = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
-- Do not send telemetry data containing a randomized but unique identifier
|
||||||
|
telemetry = {
|
||||||
|
enable = false,
|
||||||
},
|
},
|
||||||
},
|
|
||||||
-- Do not send telemetry data containing a randomized but unique identifier
|
|
||||||
telemetry = {
|
|
||||||
enable = false,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
})
|
||||||
})
|
end,
|
||||||
end,
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
17
vim/.vim/lua/plugins/mini.lua
Normal file
17
vim/.vim/lua/plugins/mini.lua
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
return {
|
||||||
|
-- { "echasnovski/mini.clue", version = "*" },
|
||||||
|
-- { "echasnovski/mini.comment", version = "*" },
|
||||||
|
{
|
||||||
|
"echasnovski/mini.icons",
|
||||||
|
opts = {},
|
||||||
|
lazy = true,
|
||||||
|
specs = { { "nvim-tree/nvim-web-devicons", enabled = false, optional = true } },
|
||||||
|
init = function()
|
||||||
|
package.preload["nvim-web-devicons"] = function() -- needed since it will be false when loading and mini will fail
|
||||||
|
package.loaded["nvim-web-devicons"] = {}
|
||||||
|
require("mini.icons").mock_nvim_web_devicons()
|
||||||
|
return package.loaded["nvim-web-devicons"]
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
44
vim/.vim/lua/plugins/minuet.lua
Normal file
44
vim/.vim/lua/plugins/minuet.lua
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
return {
|
||||||
|
'milanglacier/minuet-ai.nvim',
|
||||||
|
config = function()
|
||||||
|
require('minuet').setup {
|
||||||
|
provider = 'gemini',
|
||||||
|
provider_options = {
|
||||||
|
gemini = {
|
||||||
|
optional = {
|
||||||
|
generationConfig = {
|
||||||
|
maxOutputTokens = 256,
|
||||||
|
},
|
||||||
|
safetySettings = {
|
||||||
|
{
|
||||||
|
-- HARM_CATEGORY_HATE_SPEECH,
|
||||||
|
-- HARM_CATEGORY_HARASSMENT
|
||||||
|
-- HARM_CATEGORY_SEXUALLY_EXPLICIT
|
||||||
|
category = 'HARM_CATEGORY_DANGEROUS_CONTENT',
|
||||||
|
-- BLOCK_NONE
|
||||||
|
threshold = 'BLOCK_ONLY_HIGH',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
virtualtext = {
|
||||||
|
auto_trigger_ft = {},
|
||||||
|
keymap = {
|
||||||
|
-- accept whole completion
|
||||||
|
accept = '<A-A>',
|
||||||
|
-- accept one line
|
||||||
|
accept_line = '<A-a>',
|
||||||
|
-- accept n lines (prompts for number)
|
||||||
|
-- e.g. "A-z 2 CR" will accept 2 lines
|
||||||
|
accept_n_lines = '<A-z>',
|
||||||
|
-- Cycle to prev completion item, or manually invoke completion
|
||||||
|
prev = '<A-[>',
|
||||||
|
-- Cycle to next completion item, or manually invoke completion
|
||||||
|
next = '<A-]>',
|
||||||
|
dismiss = '<A-e>',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
end,
|
||||||
|
}
|
@ -1,8 +0,0 @@
|
|||||||
return {
|
|
||||||
"folke/neodev.nvim",
|
|
||||||
config = function()
|
|
||||||
require("neodev").setup({
|
|
||||||
library = { plugins = { "nvim-dap-ui" }, types = true },
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
return {
|
|
||||||
"smartpde/neoscopes",
|
|
||||||
config = function()
|
|
||||||
require("neoscopes").setup({
|
|
||||||
scopes = {
|
|
||||||
{
|
|
||||||
name = "earlycheckin",
|
|
||||||
dirs = {
|
|
||||||
"java/com/google/android/gmscore/tools/earlycheckin/",
|
|
||||||
"javatests/com/google/android/gmscore/tools/earlycheckin/",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{ name = "experimental", dirs = { "experimental/users/cnieves" } },
|
|
||||||
},
|
|
||||||
-- add_dirs_to_all_scopes = {
|
|
||||||
-- "~/dotfiles",
|
|
||||||
-- },
|
|
||||||
})
|
|
||||||
|
|
||||||
local scopes = require("neoscopes")
|
|
||||||
scopes.add_startup_scope()
|
|
||||||
end,
|
|
||||||
}
|
|
@ -1,56 +1,57 @@
|
|||||||
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
-- {
|
||||||
|
-- "cmdtree",
|
||||||
|
-- dir = "~/cmdtree",
|
||||||
|
-- },
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
branch = "v2.x",
|
branch = "v3.x",
|
||||||
config = function()
|
lazy = false, -- neo-tree will lazily load itself
|
||||||
require("neo-tree").setup({
|
|
||||||
sources = {
|
|
||||||
"filesystem",
|
|
||||||
"buffers",
|
|
||||||
"git_status",
|
|
||||||
"diagnostics",
|
|
||||||
-- ...and any additional source
|
|
||||||
},
|
|
||||||
hijack_netrw_behavior = "open_current",
|
|
||||||
window = {
|
|
||||||
mappings = {
|
|
||||||
["O"] = "expand_all_nodes",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
event_handlers = {
|
|
||||||
{
|
|
||||||
event = "neo_tree_buffer_enter",
|
|
||||||
handler = function(arg)
|
|
||||||
vim.opt.mouse = "a"
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
event = "neo_tree_window_after_open",
|
|
||||||
handler = function(args)
|
|
||||||
vim.opt.mouse = "a"
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
event = "neo_tree_buffer_leave",
|
|
||||||
handler = function(arg)
|
|
||||||
vim.opt.mouse = ""
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
event = "neo_tree_window_after_close",
|
|
||||||
handler = function(arg)
|
|
||||||
vim.opt.mouse = ""
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
|
-- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information
|
||||||
},
|
},
|
||||||
keys = {
|
-----@module "neo-tree"
|
||||||
{ "<C-n>", ":Neotree filesystem reveal toggle reveal_force_cwd<cr>", desc = "Open NeoTree" },
|
-----@type neotree.Config
|
||||||
|
opts = {
|
||||||
|
filesystem = {
|
||||||
|
hijack_netrw_behavior = "open_default",
|
||||||
|
filtered_items = {
|
||||||
|
hide_dotfiles = false,
|
||||||
|
},
|
||||||
|
-- follow_current_file = {
|
||||||
|
-- enabled = true,
|
||||||
|
-- leave_dirs_open = false,
|
||||||
|
-- },
|
||||||
|
group_empty_dirs = true,
|
||||||
|
},
|
||||||
|
sources = {
|
||||||
|
"filesystem",
|
||||||
|
"buffers",
|
||||||
|
"git_status",
|
||||||
|
--"cmdtree",
|
||||||
|
-- ...and any additional source
|
||||||
|
},
|
||||||
|
window = {
|
||||||
|
mappings = {
|
||||||
|
["O"] = "expand_all_nodes",
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
(function()
|
||||||
|
-- if use_google() then
|
||||||
|
-- return { "<C-n>m", ":Neotree float cmdtree<CR>", desc = "Open NeoTree CWD float" }
|
||||||
|
-- end
|
||||||
|
return { "<C-n>m", ":Neotree float git_status<CR>", desc = "Open NeoTree CWD float" }
|
||||||
|
end)(),
|
||||||
|
{ "<C-n>", ":Neotree reveal left<cr>" },
|
||||||
|
{ "<C-n>.", ":Neotree reveal left dir=%:p:h<cr>" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,49 +1,47 @@
|
|||||||
return {
|
return {
|
||||||
{
|
|
||||||
"rcarriga/nvim-notify",
|
|
||||||
event = "VimEnter",
|
|
||||||
cond = false,
|
|
||||||
lazy = true,
|
|
||||||
config = function()
|
|
||||||
-- local colors = require("catppuccin.palettes").get_palette()
|
|
||||||
require("notify").setup({
|
|
||||||
-- background_colour = colors.base,
|
|
||||||
fps = 20, -- default 30
|
|
||||||
-- stages = "slide", -- default fade_in_slide_out
|
|
||||||
timeout = 5000, -- default 5000
|
|
||||||
render = "wrapped-compact",
|
|
||||||
})
|
|
||||||
vim.notify = require("notify")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"j-hui/fidget.nvim",
|
|
||||||
event = "VimEnter",
|
|
||||||
cond = true,
|
|
||||||
opts = {
|
|
||||||
progress = {
|
|
||||||
display = {
|
|
||||||
done_ttl = 5,
|
|
||||||
done_icon = " ",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
notification = {
|
|
||||||
override_vim_notify = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- {
|
-- {
|
||||||
-- "echasnovski/mini.notify",
|
-- "rcarriga/nvim-notify",
|
||||||
-- version = false,
|
-- event = "VimEnter",
|
||||||
-- dependencies = {
|
-- cond = true,
|
||||||
-- "rcarriga/nvim-notify",
|
-- lazy = true,
|
||||||
-- "j-hui/fidget.nvim",
|
|
||||||
-- },
|
|
||||||
-- config = function()
|
-- config = function()
|
||||||
-- vim.notify = function(msg, level, opts)
|
-- -- local colors = require("catppuccin.palettes").get_palette()
|
||||||
-- require("fidget").notify(msg, level, opts)
|
-- require("notify").setup({
|
||||||
-- require("mini.notify").make_notify()(msg, level, opts)
|
-- -- background_colour = colors.base,
|
||||||
-- end
|
-- fps = 20, -- default 30
|
||||||
|
-- stages = "slide", -- default fade_in_slide_out
|
||||||
|
-- timeout = 5000, -- default 5000
|
||||||
|
-- render = "wrapped-compact",
|
||||||
|
-- })
|
||||||
|
-- vim.notify = require("notify")
|
||||||
-- end,
|
-- end,
|
||||||
-- },
|
-- },
|
||||||
|
-- {
|
||||||
|
-- "j-hui/fidget.nvim",
|
||||||
|
-- event = "VimEnter",
|
||||||
|
-- -- cond = false,
|
||||||
|
-- opts = {
|
||||||
|
-- progress = {
|
||||||
|
-- display = {
|
||||||
|
-- done_ttl = 5,
|
||||||
|
-- done_icon = " ",
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- notification = {
|
||||||
|
-- override_vim_notify = true,
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
{
|
||||||
|
"echasnovski/mini.notify",
|
||||||
|
version = false,
|
||||||
|
dependencies = {
|
||||||
|
"rcarriga/nvim-notify",
|
||||||
|
-- "j-hui/fidget.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
vim.api.nvim_create_user_command("Notifications", require("mini.notify").show_history, {})
|
||||||
|
vim.notify = require("mini.notify").make_notify()
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
@ -48,21 +48,7 @@ return {
|
|||||||
if lang == "gdrama" then
|
if lang == "gdrama" then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
return false
|
||||||
local max_filesize = 200 * 1024 -- 200 KB
|
|
||||||
local fname = vim.api.nvim_buf_get_name(buf)
|
|
||||||
local ok, stats = pcall(vim.loop.fs_stat, fname)
|
|
||||||
if ok and stats and stats.size > max_filesize then
|
|
||||||
vim.schedule(function()
|
|
||||||
vim.notify(
|
|
||||||
string.format(
|
|
||||||
"Disabling treesitter. File %s exceeds maximum configured size.",
|
|
||||||
fname
|
|
||||||
)
|
|
||||||
)
|
|
||||||
end)
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||||
|
@ -1,75 +0,0 @@
|
|||||||
return {
|
|
||||||
"PrestonKnopp/tree-sitter-gdscript",
|
|
||||||
{
|
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
|
||||||
config = function()
|
|
||||||
require("treesitter-context").setup({
|
|
||||||
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
|
||||||
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
|
||||||
min_window_height = 0, -- Minimum editor window height to enable context. Values <= 0 mean no limit.
|
|
||||||
line_numbers = true,
|
|
||||||
multiline_threshold = 20, -- Maximum number of lines to show for a single context
|
|
||||||
trim_scope = "outer", -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
|
||||||
mode = "cursor", -- Line used to calculate context. Choices: 'cursor', 'topline'
|
|
||||||
-- Separator between context and content. Should be a single character string, like '-'.
|
|
||||||
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
|
|
||||||
separator = nil,
|
|
||||||
zindex = 20, -- The Z-index of the context window
|
|
||||||
on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
build = ":TSUpdate",
|
|
||||||
config = function()
|
|
||||||
require("nvim-treesitter.configs").setup({
|
|
||||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
|
||||||
ensure_installed = "all",
|
|
||||||
|
|
||||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
|
||||||
sync_install = false,
|
|
||||||
|
|
||||||
-- Automatically install missing parsers when entering buffer
|
|
||||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
|
||||||
auto_install = false,
|
|
||||||
|
|
||||||
indent = { enable = true },
|
|
||||||
-- List of parsers to ignore installing (or "all")
|
|
||||||
-- ignore_install = { "" },
|
|
||||||
|
|
||||||
---- If you need to change the installation directory of the parsers (see -> Advanced Setup)
|
|
||||||
-- parser_install_dir = "/some/path/to/store/parsers", -- Remember to run vim.opt.runtimepath:append("/some/path/to/store/parsers")!
|
|
||||||
|
|
||||||
highlight = {
|
|
||||||
enable = true,
|
|
||||||
|
|
||||||
-- NOTE: these are the names of the parsers and not the filetype. (for example if you want to
|
|
||||||
-- disable highlighting for the `tex` filetype, you need to include `latex` in this list as this is
|
|
||||||
-- the name of the parser)
|
|
||||||
-- list of language that will be disabled
|
|
||||||
-- Or use a function for more flexibility, e.g. to disable slow treesitter highlight for large files
|
|
||||||
disable = function(lang, buf)
|
|
||||||
--TODO write a custom Java treesitter parser for comments
|
|
||||||
--@link
|
|
||||||
--
|
|
||||||
-- if lang == "java" then
|
|
||||||
-- return true
|
|
||||||
-- end
|
|
||||||
|
|
||||||
local max_filesize = 100 * 1024 -- 100 KB
|
|
||||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
|
||||||
if ok and stats and stats.size > max_filesize then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
|
||||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
|
||||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
|
||||||
-- Instead of true it can also be a list of languages
|
|
||||||
additional_vim_regex_highlighting = { "java", "kotlin" },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
lazy = false,
|
|
||||||
}
|
|
57
vim/.vim/lua/plugins/paint.lua
Normal file
57
vim/.vim/lua/plugins/paint.lua
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
return {
|
||||||
|
"folke/paint.nvim",
|
||||||
|
config = function()
|
||||||
|
vim.api.nvim_set_hl(0, "NievesLightPurple", { fg = "#7f67c5" })
|
||||||
|
vim.api.nvim_set_hl(0, "NievesViolet", { fg = "#4000f0", bold = true })
|
||||||
|
|
||||||
|
require("paint").setup({
|
||||||
|
highlights = {
|
||||||
|
-- Highlight /** @something */
|
||||||
|
{
|
||||||
|
filter = { filetype = "java" },
|
||||||
|
pattern = "%*.-(@[%w_]+)%s?",
|
||||||
|
hl = "Constant",
|
||||||
|
},
|
||||||
|
-- Highlight /** @param something */
|
||||||
|
{
|
||||||
|
filter = { filetype = "java" },
|
||||||
|
pattern = "%*.*@param%s+([%w_+]+)%s?",
|
||||||
|
hl = "Identifier",
|
||||||
|
},
|
||||||
|
-- Highlight /** {@link} */
|
||||||
|
-- {
|
||||||
|
-- filter = { filetype = "java" },
|
||||||
|
-- pattern = "%*.*{%s?(@link)%s+[%w_+]+%s?}",
|
||||||
|
-- hl = "Red",
|
||||||
|
-- },
|
||||||
|
-- -- Highlight /** {@link something} */
|
||||||
|
-- {
|
||||||
|
-- filter = { filetype = "java" },
|
||||||
|
-- pattern = "%*.*{%s?@link%s+([%w_+]+)%s?}",
|
||||||
|
-- hl = "Yellow",
|
||||||
|
-- },
|
||||||
|
--
|
||||||
|
-- WASM
|
||||||
|
-- { pattern = "(W)ASM", hl = "LightRed", filter = {} },
|
||||||
|
-- { pattern = "W(A)SM", hl = "LightBlue", filter = {} },
|
||||||
|
-- { pattern = "WA(S)M", hl = "LightGreen", filter = {} },
|
||||||
|
-- { pattern = "WAS(M)", hl = "LightYellow", filter = {} },
|
||||||
|
|
||||||
|
-- Google
|
||||||
|
-- { pattern = "Google", hl = "LightBlue", filter = {} },
|
||||||
|
-- { pattern = "(G)oogle", hl = "LightBlue", filter = {} },
|
||||||
|
-- { pattern = "G(o)ogle", hl = "LightRed", filter = {} },
|
||||||
|
-- { pattern = "Go(o)gle", hl = "LightYellow", filter = {} },
|
||||||
|
-- { pattern = "Goo(g)le", hl = "LightBlue", filter = {} },
|
||||||
|
-- { pattern = "Goog(l)e", hl = "LightGreen", filter = {} },
|
||||||
|
-- { pattern = "Googl(e)", hl = "LightRed", filter = {} },
|
||||||
|
|
||||||
|
-- cnieves
|
||||||
|
-- { pattern = "cnieves", hl = "LightPurple", filter = {} },
|
||||||
|
-- { pattern = "Christian Nieves", hl = "LightPurple", filter = {} },
|
||||||
|
{ pattern = "Christian Nieves", hl = "NievesViolet", filter = {} },
|
||||||
|
{ pattern = "Christian Nieves", hl = "NievesLightPurple", filter = {} },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
}
|
@ -5,37 +5,16 @@ return {
|
|||||||
{ "nvim-lua/plenary.nvim" },
|
{ "nvim-lua/plenary.nvim" },
|
||||||
{ "nvim-treesitter/nvim-treesitter" },
|
{ "nvim-treesitter/nvim-treesitter" },
|
||||||
},
|
},
|
||||||
config = function()
|
-- stylua: ignore
|
||||||
require("config.refactoring")
|
|
||||||
end,
|
|
||||||
keys = {
|
keys = {
|
||||||
-- remap to open the Telescope refactoring menu in visual mode
|
-- remap to open the Telescope refactoring menu in visual mode
|
||||||
{
|
{ "<leader>R", "<cmd>lua require('telescope').extensions.refactoring.refactors()<CR>", },
|
||||||
"<leader>R",
|
|
||||||
"<cmd>lua require('telescope').extensions.refactoring.refactors()<CR>",
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Remaps for the refactoring operations currently offered by the plugin
|
-- Remaps for the refactoring operations currently offered by the plugin
|
||||||
{
|
{ "<leader>rx", [[ <Cmd>lua require('refactoring').refactor('Extract Function')<CR>]], mode = "v", },
|
||||||
"<leader>rx",
|
{ "<leader>rxf", [[ <Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>]], mode = "v", },
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Function')<CR>]],
|
{ "<leader>rxv", [[ <Cmd>lua require('refactoring').refactor('Extract Variable')<CR>]], mode = "v", },
|
||||||
mode = "v",
|
{ "<leader>ri", [[ <Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]], mode = "v", },
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rxf",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>]],
|
|
||||||
mode = "v",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>rxv",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Extract Variable')<CR>]],
|
|
||||||
mode = "v",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<leader>ri",
|
|
||||||
[[ <Cmd>lua require('refactoring').refactor('Inline Variable')<CR>]],
|
|
||||||
mode = "v",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,24 +1,63 @@
|
|||||||
return {
|
return {
|
||||||
{
|
{ "ron-rs/ron.vim" },
|
||||||
"vxpm/ferris.nvim",
|
|
||||||
ft = "rust",
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"mrcjkb/rustaceanvim",
|
"mrcjkb/rustaceanvim",
|
||||||
version = "^3", -- Recommended
|
version = vim.fn.has("nvim-0.10.0") == 0 and "^4" or false,
|
||||||
ft = { "rust" },
|
ft = { "rust" },
|
||||||
keys = {
|
config = function(_, opts)
|
||||||
{ "<leader>rd", ":RustLsp renderDiagnostic<CR>" },
|
vim.g.rustaceanvim = vim.tbl_deep_extend("keep", vim.g.rustaceanvim or {}, opts or {})
|
||||||
{ "<leader>ree", ":RustLsp explainError<CR>" },
|
|
||||||
{ "<leader>rem", ":RustLsp expandMacro<CR>" },
|
for _, method in ipairs({ "textDocument/diagnostic", "workspace/diagnostic" }) do
|
||||||
|
local default_diagnostic_handler = vim.lsp.handlers[method]
|
||||||
|
vim.lsp.handlers[method] = function(err, result, context, config)
|
||||||
|
if err ~= nil and err.code == -32802 then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
return default_diagnostic_handler(err, result, context, config)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
opts = {
|
||||||
|
server = {
|
||||||
|
default_settings = {
|
||||||
|
-- rust-analyzer language server configuration
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
cargo = {
|
||||||
|
allFeatures = true,
|
||||||
|
loadOutDirsFromCheck = true,
|
||||||
|
buildScripts = {
|
||||||
|
enable = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
procMacro = {
|
||||||
|
enable = true,
|
||||||
|
ignored = {
|
||||||
|
["async-trait"] = { "async_trait" },
|
||||||
|
["napi-derive"] = { "napi" },
|
||||||
|
["async-recursion"] = { "async_recursion" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
files = {
|
||||||
|
excludeDirs = {
|
||||||
|
".direnv",
|
||||||
|
".git",
|
||||||
|
".github",
|
||||||
|
".gitlab",
|
||||||
|
"bin",
|
||||||
|
"node_modules",
|
||||||
|
"target",
|
||||||
|
"venv",
|
||||||
|
".venv",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"saecki/crates.nvim",
|
"saecki/crates.nvim",
|
||||||
ft = "rust",
|
event = { "BufRead Cargo.toml" },
|
||||||
version = "v0.3.0",
|
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
config = function()
|
||||||
require("crates").setup()
|
require("crates").setup()
|
||||||
end,
|
end,
|
||||||
|
@ -1,18 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
-- {
|
|
||||||
-- "dstein64/nvim-scrollview",
|
|
||||||
-- config = function()
|
|
||||||
-- require("scrollview").setup({
|
|
||||||
-- excluded_filetypes = { "nerdtree" },
|
|
||||||
-- current_only = true,
|
|
||||||
-- -- base = "buffer",
|
|
||||||
-- -- column = 80,
|
|
||||||
-- signs_on_startup = { "all" },
|
|
||||||
-- diagnostics_severities = { vim.diagnostic.severity.ERROR },
|
|
||||||
-- })
|
|
||||||
-- end,
|
|
||||||
-- },
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"petertriho/nvim-scrollbar",
|
"petertriho/nvim-scrollbar",
|
||||||
config = function()
|
config = function()
|
||||||
@ -30,22 +16,4 @@ return {
|
|||||||
end,
|
end,
|
||||||
lazy = false,
|
lazy = false,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"kevinhwang91/nvim-hlslens",
|
|
||||||
config = function()
|
|
||||||
require("hlslens").setup({
|
|
||||||
nearest_only = true,
|
|
||||||
build_position_cb = function(plist, _, _, _)
|
|
||||||
require("scrollbar.handlers.search").handler.show(plist.start_pos)
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.cmd([[
|
|
||||||
augroup scrollbar_search_hide
|
|
||||||
autocmd!
|
|
||||||
autocmd CmdlineLeave : lua require('scrollbar.handlers.search').handler.hide()
|
|
||||||
augroup END
|
|
||||||
]])
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
@ -1,74 +1,88 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
local function setup_mercurial(hg_args)
|
local function change_diffbase(hg_revision, git_revision)
|
||||||
local git_cmd = "git diff --no-color --no-ext-diff -U0 -- %f"
|
vim.g.signify_vcs_cmds = {
|
||||||
local rcs_cmd = "rcsdiff -U0 %f 2>%n"
|
git = "git diff --no-color --diff-algorithm=histogram --no-ext-diff -U0 " .. git_revision .. " -- %f",
|
||||||
local svn_cmd = "svn diff --diff-cmd %d -x -U0 -- %f"
|
yadm = 'yadm diff --no-color --no-ext-diff -U0 -- %f',
|
||||||
vim.cmd(string.format(
|
hg = 'chg --config alias.diff=diff diff '.. hg_revision .. ' --color=never --nodates -U0 -- %f',
|
||||||
[[
|
svn = 'svn diff --diff-cmd %d -x -U0 -- %f',
|
||||||
let g:signify_vcs_cmds = {
|
bzr = 'bzr diff --using %d --diff-options=-U0 -- %f',
|
||||||
\ 'git': '%s',
|
darcs = 'darcs diff --no-pause-for-gui --no-unified --diff-opts=-U0 -- %f',
|
||||||
\ 'rcs': '%s',
|
fossil = 'fossil diff --unified -c 0 -- %f',
|
||||||
\ 'svn': '%s',
|
cvs = 'cvs diff -U0 -- %f',
|
||||||
\ 'hg': 'hg diff %s',
|
rcs = 'rcsdiff -U0 %f 2>%n',
|
||||||
\ }
|
accurev = 'accurev diff %f -- -U0',
|
||||||
let g:signify_vcs_cmds_diffmode = {
|
tfs = 'tf diff -version=W -noprompt -format=Unified %f'
|
||||||
\ 'hg': 'hg cat %s',
|
}
|
||||||
\ }
|
vim.g.signify_vcs_cmds_diffmode = {
|
||||||
]],
|
git = "git show " .. git_revision .. ":./%f",
|
||||||
git_cmd,
|
hg = "chg cat " .. hg_revision .. " -- %f",
|
||||||
rcs_cmd,
|
yadm = 'yadm show HEAD:./%f',
|
||||||
svn_cmd,
|
svn = 'svn cat %f',
|
||||||
hg_args,
|
bzr = 'bzr cat %f',
|
||||||
hg_args
|
darcs = 'darcs show contents -- %f',
|
||||||
))
|
fossil = 'fossil cat %f',
|
||||||
|
cvs = 'cvs up -p -- %f 2>%n',
|
||||||
|
rcs = 'co -q -p %f',
|
||||||
|
accurev = 'accurev cat %f',
|
||||||
|
perforce = 'p4 print %f',
|
||||||
|
tfs = 'tf view -version:W -noprompt %f',
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.signify_dtup = function()
|
_G.signify_dtup = function()
|
||||||
setup_mercurial('-r ".^" %f')
|
change_diffbase('-r ".^"', 'HEAD^')
|
||||||
vim.cmd([[:SignifyRefresh]])
|
vim.cmd([[:SignifyEnable]])
|
||||||
|
vim.cmd([[:SignifyRefresh]])
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.signify_normal = function()
|
_G.signify_normal = function()
|
||||||
setup_mercurial("--color=never config aliases.diff= --nodates -U0 -- %f")
|
change_diffbase("-r .", "")
|
||||||
vim.cmd([[:SignifyRefresh]])
|
vim.cmd([[:SignifyEnable]])
|
||||||
|
vim.cmd([[:SignifyRefresh]])
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.signify_dtp4 = function()
|
_G.signify_dtp4 = function()
|
||||||
setup_mercurial('-r "p4base" %f')
|
change_diffbase("-r p4head", "main")
|
||||||
vim.cmd([[:SignifyRefresh]])
|
vim.cmd([[:SignifyEnable]])
|
||||||
|
vim.cmd([[:SignifyRefresh]])
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.signify_dtex = function()
|
_G.signify_dtex = function()
|
||||||
setup_mercurial('-r "exported(.)" %f')
|
change_diffbase("-r exported(.)", "origin/main")
|
||||||
vim.cmd([[:SignifyRefresh]])
|
vim.cmd([[:SignifyEnable]])
|
||||||
|
vim.cmd([[:SignifyRefresh]])
|
||||||
end
|
end
|
||||||
return {
|
return {
|
||||||
"mhinz/vim-signify",
|
"mhinz/vim-signify",
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
keys = {
|
-- stylua: ignore
|
||||||
{ "]d", "<plug>(signify-next-hunk)" },
|
keys = {
|
||||||
{ "[d", "<plug>(signify-prev-hunk)" },
|
{ "]d", "<plug>(signify-next-hunk)" },
|
||||||
{ "<leader>sd", ":SignifyDiff<CR>" },
|
{ "[d", "<plug>(signify-prev-hunk)" },
|
||||||
{ "<leader>sn", ":lua signify_normal()<CR>" },
|
{ "<leader>sd", ":SignifyDiff<CR>" },
|
||||||
{ "<leader>sup", ":lua signify_dtup()<CR>" },
|
{ "<leader>sn", ":lua signify_normal()<CR>" },
|
||||||
{ "<leader>sex", ":lua signify_dtex()<CR>" },
|
{ "<leader>sup", ":lua signify_dtup()<CR>" },
|
||||||
{ "<leader>sp4", ":lua signify_dtp4()<CR>" },
|
{ "<leader>sex", ":lua signify_dtex()<CR>" },
|
||||||
},
|
{ "<leader>sp4", ":lua signify_dtp4()<CR>" },
|
||||||
config = function()
|
{ "<leader>sb", ":lua signify_dtp4()<CR>" },
|
||||||
vim.g.signify_vcs_list = { "hg", "git" }
|
},
|
||||||
local one_eighth = "▏"
|
config = function()
|
||||||
local one_quarter = "▎"
|
vim.g.signify_vcs_list = { "hg", "git" }
|
||||||
local three_eighths = "▍"
|
vim.g.signify_disable_by_default = 0
|
||||||
vim.g.signify_sign_add = one_quarter
|
-- vim.g.signify_number_highlight = 1
|
||||||
vim.g.signify_sign_delete = one_quarter
|
vim.g.signify_sign_show_count = 0
|
||||||
vim.g.signify_sign_change = one_quarter
|
local s = "▕"
|
||||||
local red = "#f8a6a0"
|
vim.g.signify_sign_add = s
|
||||||
vim.api.nvim_set_hl(0, "SignifySignAdd", { fg = "#9cc9b8" })
|
vim.g.signify_sign_delete = s
|
||||||
vim.api.nvim_set_hl(0, "SignifySignChange", { fg = "#84cee3" })
|
vim.g.signify_sign_change = s
|
||||||
vim.api.nvim_set_hl(0, "SignifySignChangeDelete", { fg = red })
|
vim.api.nvim_set_hl(0, "SignifySignAdd", { fg = "#9cd9b8" })
|
||||||
vim.api.nvim_set_hl(0, "SignifySignDelete", { fg = red })
|
vim.api.nvim_set_hl(0, "SignifySignChange", { fg = "#849ee3" })
|
||||||
vim.api.nvim_set_hl(0, "SignifySignDeleteDeleteFirstLine", { fg = red })
|
|
||||||
-- vim.cmd("highlight SignColumn ctermbg=NONE cterm=NONE guibg=NONE gui=NONE")
|
local myred = "#f296a0"
|
||||||
end,
|
vim.api.nvim_set_hl(0, "SignifySignChangeDelete", { fg = myred })
|
||||||
|
vim.api.nvim_set_hl(0, "SignifySignDelete", { fg = myred })
|
||||||
|
vim.api.nvim_set_hl(0, "SignifyLineDelete", { fg = myred })
|
||||||
|
vim.api.nvim_set_hl(0, "SignifySignDeleteDeleteFirstLine", { fg = myred })
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,12 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
local exec = require("utils").exec
|
||||||
local TableConcat = require("utils").TableConcat
|
local TableConcat = require("utils").TableConcat
|
||||||
local scopes = require("neoscopes")
|
|
||||||
|
|
||||||
_G.find_files = function()
|
_G.find_files = function(search_dirs)
|
||||||
require("telescope.builtin").find_files({
|
require("telescope.builtin").find_files({ search_dirs = search_dirs })
|
||||||
search_dirs = scopes.get_current_dirs(),
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
-- Helper functions to fetch the current scope and set `search_dirs`
|
-- Helper functions to fetch the current scope and set `search_dirs`
|
||||||
_G.find_dotfiles = function()
|
_G.find_dotfiles = function() end
|
||||||
require("telescope.builtin").find_files({
|
|
||||||
search_dirs = { vim.fn.expand("$HOME/dotfiles") },
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
_G.search_cwd = function()
|
_G.search_cwd = function()
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
@ -20,48 +14,56 @@ _G.search_cwd = function()
|
|||||||
builtin.find_files({ cwd = utils.buffer_dir() })
|
builtin.find_files({ cwd = utils.buffer_dir() })
|
||||||
end
|
end
|
||||||
|
|
||||||
_G.live_grep = function()
|
local function exe(cmd)
|
||||||
require("telescope.builtin").live_grep({
|
return vim.split(vim.fn.system(cmd), "\n")
|
||||||
search_dirs = scopes.get_current_dirs(),
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function get_visual_selection()
|
local function fig_modified()
|
||||||
-- Yank current visual selection into the 'v' register
|
return exe("chg pstatus -ma -n --no-status --template= | sort")
|
||||||
--
|
|
||||||
-- Note that this makes no effort to preserve this register
|
|
||||||
vim.cmd('noau normal! "vy"')
|
|
||||||
|
|
||||||
return vim.fn.getreg("v")
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function fig_all_modified()
|
||||||
|
return exe("chg status -ma -n --rev p4base --no-status --template= | sort")
|
||||||
|
end
|
||||||
|
|
||||||
|
-- stylua: ignore
|
||||||
local keys = {
|
local keys = {
|
||||||
{ "<leader>ts", "<cmd>lua live_grep()<CR>", desc = "Search in CWD" },
|
{ "<leader>e", ":lua search_cwd()<CR>", desc = "Find Files in Buffer Directory" },
|
||||||
{ "<leader>tk", "<cmd>Telescope Keymaps<CR>", desc = "Search Keymaps" },
|
{ "<leader>tb", ":Telescope buffers<CR>" },
|
||||||
{ "<C-P>", "<cmd>lua find_files()<CR>", desc = "Find Files in CWD" },
|
-- { "<leader>ts", require('telescope.builtin').live_grep },
|
||||||
{ "<leader>tf", "<cmd>lua find_files()<CR>", desc = "Find Files in CWD" },
|
-- { "<leader>TS", function() require('telescope.builtin').live_grep { default_text = vim.fn.expand("<cword>") } end, },
|
||||||
{ "<leader>td", "<cmd>lua find_dotfiles()<CR>", desc = "Find Dotfiles" },
|
{
|
||||||
{ "<leader>tn", ":Telescope notify<CR>", desc = "Notifications" },
|
"<leader>t.",
|
||||||
{ "<leader>tk", ":Telescope keymaps<CR>", desc = "Keymaps" },
|
function()
|
||||||
{ "<leader>tf.", "<cmd>lua vim.error('use <leader>e')<CR>", desc = "Find Files in Buffer Directory" },
|
require("telescope.builtin").git_files({
|
||||||
{ "<leader>e", "<cmd>lua search_cwd()<CR>", desc = "Find Files in Buffer Directory" },
|
cwd = vim.fn.expand("$HOME/dotfiles"), })
|
||||||
{ "<leader>tg", ":Telescope git_files<CR>", desc = "Git Files" },
|
end
|
||||||
{ "<leader>tl", ":Telescope resume<CR>", desc = "Last Query" },
|
,
|
||||||
{ "<leader>tr", ":Telescope oldfiles<CR>", desc = "Recent Files" },
|
desc = "Find Dotfiles"
|
||||||
{ "<leader>th", "<cmd>lua require('telescope.builtin').help_tags{}<CR>", desc = "[T]elescope [H]elp" },
|
},
|
||||||
{ "<leader>tns", [[<cmd>lua require("neoscopes").select()<CR>]], desc = "NeoScopes" },
|
{ "<leader>tC", ":Telescope textcase<CR>", desc = "Text case" },
|
||||||
|
{ "<leader>tc", ":CritiqueCommentsTelescope<CR>", desc = "Critique all comments" },
|
||||||
|
{ "<leader>tg", ":Telescope git_files<CR>", desc = "Git Files" },
|
||||||
|
{ "<leader>tk", ":Telescope keymaps<CR>", desc = "Keymaps" },
|
||||||
|
{ "<leader>tn", ":Telescope notify<CR>", desc = "Notifications" },
|
||||||
|
{ "<leader>tr", ":Telescope resume<CR>", desc = "Telescope Resume" },
|
||||||
|
{ "<leader>th", ":lua require('telescope.builtin').help_tags{}<CR>", desc = "[T]elescope [H]elp" },
|
||||||
}
|
}
|
||||||
|
|
||||||
if use_google() then
|
if use_google() then
|
||||||
TableConcat(keys, {
|
local find_files = require("telescope.builtin").find_files
|
||||||
{ "<C-P>", [[<cmd>lua require('telescope').extensions.codesearch.find_files{}<CR>]], "n" },
|
local cs_query = require("telescope").extensions.codesearch.find_query
|
||||||
{ "<leader>cs", [[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]] },
|
-- stylua: ignore
|
||||||
{ "<leader>cs", [[<cmd>lua require('telescope').extensions.codesearch.find_query{}<CR>]], mode = "v" },
|
TableConcat(keys, {
|
||||||
{
|
{ "<leader>tm", function() find_files({ search_dirs = fig_modified() }) end, desc = "list modified Fig files." },
|
||||||
"<leader>CS",
|
{ "<leader>tM", function() find_files({ search_dirs = fig_all_modified() }) end, desc = "List *all* modified Fig files" },
|
||||||
[[<cmd>lua require('telescope').extensions.codesearch.find_query{default_text_expand='<cword>'}<CR>]],
|
{ "<leader>tf", function() find_files({ search_dirs = fig_modified() }) end, desc = "Grep modified Fig files." },
|
||||||
},
|
{ "<leader>tF", function() find_files({ search_dirs = fig_modified() }) end, desc = "Grep *all* modified Fig files." },
|
||||||
})
|
{ "<C-P>", require("telescope").extensions.codesearch.find_files, desc = "Code search files" },
|
||||||
|
{ "<leader>cs", require("telescope").extensions.codesearch.find_query, desc = "Code search query" },
|
||||||
|
{ "<leader>cs", cs_query, desc = "Code search query", mode = "v" },
|
||||||
|
{ "<leader>CS", function() cs_query({ default_text_expand = '<cword>' }) end, desc = "Code search query <cword>" },
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
@ -89,14 +91,12 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"johmsalas/text-case.nvim",
|
"smartpde/telescope-recent-files",
|
||||||
dependencies = { "nvim-telescope/telescope.nvim" },
|
|
||||||
config = function()
|
config = function()
|
||||||
require("textcase").setup({})
|
require("telescope").load_extension("recent_files")
|
||||||
require("telescope").load_extension("textcase")
|
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>t", "<cmd>TextCaseOpenTelescope<CR>", mode = { "n", "v" }, desc = "Telescope" },
|
{ "<leader>to", [[<cmd>lua require('telescope').extensions.recent_files.pick()<CR>]] },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -105,13 +105,44 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require("telescope").load_extension("import")
|
require("telescope").load_extension("import")
|
||||||
end,
|
end,
|
||||||
|
keys = function()
|
||||||
|
if not use_google() then
|
||||||
|
return {
|
||||||
|
{ "<leader>i", ":Telescope import<CR>" },
|
||||||
|
}
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"nvim-telescope/telescope-live-grep-args.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>i", ":Telescope import<CR>" },
|
{
|
||||||
|
"<leader>ts",
|
||||||
|
function()
|
||||||
|
require("telescope").extensions.live_grep_args.live_grep_args()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>TS",
|
||||||
|
function()
|
||||||
|
require("telescope").extensions.live_grep_args.live_grep_args({
|
||||||
|
default_text = vim.fn.expand("<cword>"),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
config = function()
|
||||||
|
require("telescope").load_extension("live_grep_args")
|
||||||
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
dependencies = {},
|
dependencies = {
|
||||||
|
"nvim-telescope/telescope-live-grep-args.nvim",
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
"smartpde/telescope-recent-files",
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").setup({
|
require("telescope").setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
@ -146,19 +177,60 @@ return {
|
|||||||
return path
|
return path
|
||||||
end,
|
end,
|
||||||
mappings = {
|
mappings = {
|
||||||
|
n = {
|
||||||
|
["<C-c>"] = "close",
|
||||||
|
["<Esc>"] = "close",
|
||||||
|
},
|
||||||
i = {
|
i = {
|
||||||
["<S-Down>"] = function()
|
-- ["<cr>"] = function(bufnr)
|
||||||
require("telescope.actions").cycle_history_next()
|
-- require("telescope.actions.set").edit(bufnr, "tab drop")
|
||||||
end,
|
-- end,
|
||||||
["<S-Up>"] = function()
|
["<C-c>"] = "close",
|
||||||
require("telescope.actions").cycle_history_prev()
|
["<Esc>"] = "close",
|
||||||
end,
|
["<S-Down>"] = "cycle_history_next",
|
||||||
|
["<S-Up>"] = "cycle_history_prev",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extensions = {
|
extensions = {
|
||||||
codesearch = {
|
codesearch = {
|
||||||
experimental = true, -- enable results from google3/experimental
|
experimental = true, -- enable results from google3/experimental
|
||||||
|
},
|
||||||
|
live_grep_args = {
|
||||||
|
auto_quoting = true, -- enable/disable auto-quoting
|
||||||
|
-- define mappings, e.g.
|
||||||
|
mappings = { -- extend mappings
|
||||||
|
i = {
|
||||||
|
["<C-k>"] = require("telescope-live-grep-args.actions").quote_prompt(),
|
||||||
|
["<C-i>"] = require("telescope-live-grep-args.actions").quote_prompt({ postfix = " --iglob " }),
|
||||||
|
-- freeze the current list and start a fuzzy search in the frozen list
|
||||||
|
["<C-.>"] = require("telescope-live-grep-args.actions").to_fuzzy_refine,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
recent_files = {
|
||||||
|
-- This function rewrites all file paths to the current workspace.
|
||||||
|
-- For example, if w2 is the current workspace, then
|
||||||
|
-- /google/.../w1/google3/my_file.cc becomes /google/.../w2/google3/my_file.cc,
|
||||||
|
transform_file_path = function(path)
|
||||||
|
local neocitc = require("neocitc")
|
||||||
|
local path_func = neocitc.path_in_current_workspace_or_head
|
||||||
|
or neocitc.path_in_current_workspace
|
||||||
|
return path_func(path)
|
||||||
|
end,
|
||||||
|
-- This is a useful option to speed up Telescope by avoiding the check
|
||||||
|
-- for file existence.
|
||||||
|
stat_files = false,
|
||||||
|
-- Ignore common patterns that can show up from other google plugins
|
||||||
|
ignore_patterns = {
|
||||||
|
"/%.git/COMMIT_EDITING$",
|
||||||
|
"/%.git/COMMIT_EDITMSG$",
|
||||||
|
"/%.git/MERGE_MSG$",
|
||||||
|
"^/tmp/%.pipertmp-",
|
||||||
|
"/Related_Files$",
|
||||||
|
"^term:",
|
||||||
|
";#toggleterm#",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
persisted = {},
|
persisted = {},
|
||||||
import = {
|
import = {
|
||||||
|
@ -2,41 +2,77 @@ local use_google = require("utils").use_google
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"sainnhe/sonokai",
|
"squk/ableton.nvim",
|
||||||
cond = false,
|
lazy = false,
|
||||||
config = function()
|
|
||||||
vim.g.sonokai_diagnostic_virtual_text = "highlighted"
|
|
||||||
vim.g.sonokai_style = "andromeda"
|
|
||||||
vim.g.sonokai_dim_inactive_windows = 1
|
|
||||||
vim.cmd("colorscheme sonokai")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rebelot/kanagawa.nvim",
|
|
||||||
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
|
||||||
cond = not use_google(),
|
cond = not use_google(),
|
||||||
|
priority = 1000,
|
||||||
|
-- dir = "~/neovim-plugins/squk/ableton.nvim",
|
||||||
|
opts = {
|
||||||
|
variant = "cooler",
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd("colorscheme kanagawa-wave")
|
vim.cmd("colorscheme ableton")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nyoom-engineering/oxocarbon.nvim",
|
"dgox16/oldworld.nvim",
|
||||||
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
lazy = false,
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
cond = not use_google(),
|
||||||
cond = false,
|
priority = 1000,
|
||||||
|
opts = {
|
||||||
|
variant = "cooler",
|
||||||
|
},
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd("colorscheme oxocarbon")
|
-- vim.cmd("colorscheme oldworld")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"uloco/bluloco.nvim",
|
"bluz71/vim-moonfly-colors",
|
||||||
dependencies = { "rktjmp/lush.nvim" },
|
name = "moonfly",
|
||||||
lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
-- cond = not use_google(),
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
|
||||||
cond = false,
|
cond = false,
|
||||||
|
lazy = false,
|
||||||
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd("colorscheme bluloco")
|
local custom_highlight = vim.api.nvim_create_augroup("CustomHighlight", {})
|
||||||
|
vim.api.nvim_create_autocmd("colorscheme", {
|
||||||
|
pattern = "moonfly",
|
||||||
|
callback = function()
|
||||||
|
local p = require("moonfly").palette
|
||||||
|
local unused = p.test
|
||||||
|
local highlights = { "", "VirtualText", "Underline", "Sign", "Floating" }
|
||||||
|
for _, h in ipairs(highlights) do
|
||||||
|
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Error", { fg = p.crimson, bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Warn", { fg = p.yellow, bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Info", { fg = p.sky, bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Hint", { fg = p.turqoise, bold = true })
|
||||||
|
vim.api.nvim_set_hl(0, "Diagnostic" .. h .. "Ok", { fg = p.emerald, bold = true })
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
group = custom_highlight,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.g.moonflyCursorColor = true
|
||||||
|
vim.g.moonflyItalics = true
|
||||||
|
vim.g.moonflyUnderlineMatchParen = true
|
||||||
|
vim.g.moonflyVirtualTextColor = true
|
||||||
|
|
||||||
|
vim.cmd("colorscheme moonfly")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
-- {
|
||||||
|
-- "EdenEast/nightfox.nvim",
|
||||||
|
-- lazy = use_google(), -- make sure we load this during startup if it is your main colorscheme
|
||||||
|
-- priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
|
-- cond = not use_google(),
|
||||||
|
-- config = function()
|
||||||
|
-- -- vim.cmd("colorscheme nightfox")
|
||||||
|
-- -- vim.cmd("colorscheme carbonfox")
|
||||||
|
-- -- vim.cmd("colorscheme terafox")
|
||||||
|
-- vim.cmd("colorscheme duskfox")
|
||||||
|
-- -- vim.cmd("colorscheme nordfox")
|
||||||
|
-- -- vim.cmd("colorscheme dayfox")
|
||||||
|
-- -- vim.cmd("colorscheme dawnfox")
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
}
|
}
|
||||||
|
@ -1,117 +1,93 @@
|
|||||||
local use_google = require("utils").use_google
|
local use_google = require("utils").use_google
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"Shatur/neovim-ayu",
|
"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
|
||||||
lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
|
lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
|
||||||
cond = use_google(),
|
cond = use_google(),
|
||||||
config = function()
|
config = function()
|
||||||
require("ayu").setup({
|
-- require("onedark").setup()
|
||||||
mirage = false, -- Set to `true` to use `mirage` variant instead of `dark` for dark background.
|
end,
|
||||||
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"),
|
"catppuccin/nvim",
|
||||||
})
|
name = "catppuccin",
|
||||||
end,
|
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(),
|
||||||
"ramojus/mellifluous.nvim",
|
config = function()
|
||||||
priority = 1000, -- make sure to load this before all the other start plugins
|
vim.g.catppuccin_flavour = "macchiato" -- latte, frappe, macchiato, mocha
|
||||||
lazy = not use_google(), -- make sure we load this during startup if it is your main colorscheme
|
local colors = require("catppuccin.palettes").get_palette()
|
||||||
cond = use_google(),
|
|
||||||
config = function()
|
|
||||||
require("mellifluous").setup({ --[[...]]
|
|
||||||
}) -- optional, see configuration section.
|
|
||||||
-- vim.cmd("colorscheme mellifluous")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"ful1e5/onedark.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("onedark").setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"catppuccin/nvim",
|
|
||||||
name = "catppuccin",
|
|
||||||
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()
|
|
||||||
vim.g.catppuccin_flavour = "mocha" -- latte, frappe, macchiato, mocha
|
|
||||||
local colors = require("catppuccin.palettes").get_palette()
|
|
||||||
|
|
||||||
require("catppuccin").setup({
|
require("catppuccin").setup({
|
||||||
flavour = "mocha",
|
flavour = "mocha",
|
||||||
integrations = {
|
integrations = {
|
||||||
cmp = true,
|
cmp = true,
|
||||||
-- coc_nvim = false,
|
-- coc_nvim = false,
|
||||||
dashboard = true,
|
dashboard = true,
|
||||||
-- fern = false,
|
-- fern = false,
|
||||||
fidget = true,
|
fidget = true,
|
||||||
gitgutter = true,
|
gitgutter = true,
|
||||||
gitsigns = true,
|
gitsigns = true,
|
||||||
-- hop = false,
|
-- hop = false,
|
||||||
illuminate = true,
|
illuminate = true,
|
||||||
-- leap = false,
|
leap = false,
|
||||||
-- lightspeed = false,
|
-- lightspeed = false,
|
||||||
-- lsp_saga = false,
|
-- lsp_saga = false,
|
||||||
lsp_trouble = true,
|
lsp_trouble = true,
|
||||||
mason = true,
|
mason = true,
|
||||||
markdown = true,
|
markdown = true,
|
||||||
-- neogit = false,
|
-- neogit = false,
|
||||||
-- neotest = false,
|
-- neotest = false,
|
||||||
neotree = true,
|
neotree = true,
|
||||||
notify = true,
|
notify = true,
|
||||||
-- nvimtree = true,
|
nvimtree = true,
|
||||||
-- overseer = false,
|
-- overseer = false,
|
||||||
-- pounce = false,
|
-- pounce = false,
|
||||||
symbols_outline = true,
|
symbols_outline = true,
|
||||||
telescope = true,
|
telescope = true,
|
||||||
treesitter = true,
|
treesitter = true,
|
||||||
treesitter_context = false,
|
treesitter_context = true,
|
||||||
-- ts_rainbow = false,
|
-- ts_rainbow = false,
|
||||||
-- vim_sneak = false,
|
-- vim_sneak = false,
|
||||||
-- vimwiki = false,
|
-- vimwiki = false,
|
||||||
which_key = true,
|
which_key = true,
|
||||||
-- Special integrations, see https://github.com/catppuccin/nvim#special-integrations
|
-- Special integrations, see https://github.com/catppuccin/nvim#special-integrations
|
||||||
dap = {
|
dap = true,
|
||||||
enabled = false,
|
dap_ui = true,
|
||||||
enable_ui = false,
|
indent_blankline = {
|
||||||
},
|
enabled = true,
|
||||||
indent_blankline = {
|
colored_indent_levels = false,
|
||||||
enabled = true,
|
},
|
||||||
colored_indent_levels = false,
|
},
|
||||||
},
|
native_lsp = {
|
||||||
native_lsp = {
|
enabled = true,
|
||||||
enabled = true,
|
virtual_text = {
|
||||||
-- virtual_text = {
|
errors = { "italic" },
|
||||||
-- errors = { "italic" },
|
hints = { "italic" },
|
||||||
-- hints = { "italic" },
|
warnings = { "italic" },
|
||||||
-- warnings = { "italic" },
|
information = { "italic" },
|
||||||
-- information = { "italic" },
|
},
|
||||||
-- },
|
underlines = {
|
||||||
underlines = {
|
errors = { "underline" },
|
||||||
errors = { "underline" },
|
hints = { "underline" },
|
||||||
hints = { "underline" },
|
warnings = { "underline" },
|
||||||
warnings = { "underline" },
|
information = { "underline" },
|
||||||
information = { "underline" },
|
},
|
||||||
},
|
inlay_hints = {
|
||||||
},
|
background = true,
|
||||||
},
|
},
|
||||||
custom_highlights = {
|
},
|
||||||
Identifier = { fg = colors.lavender },
|
custom_highlights = {
|
||||||
Statement = { fg = colors.rosewater },
|
-- Identifier = { fg = colors.lavender },
|
||||||
-- Identifier = { fg = colors.sapphire },
|
-- Statement = { fg = colors.rosewater },
|
||||||
Function = { fg = colors.mauve },
|
-- Identifier = { fg = colors.sapphire },
|
||||||
},
|
-- Function = { fg = colors.mauve },
|
||||||
})
|
},
|
||||||
|
})
|
||||||
|
|
||||||
vim.api.nvim_command("colorscheme catppuccin")
|
vim.api.nvim_command("colorscheme catppuccin")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
return {
|
return {
|
||||||
"preservim/vimux",
|
"preservim/vimux",
|
||||||
"tmux-plugins/vim-tmux",
|
"tmux-plugins/vim-tmux",
|
||||||
"christoomey/vim-tmux-navigator",
|
"christoomey/vim-tmux-navigator",
|
||||||
"whatyouhide/vim-tmux-syntax",
|
"whatyouhide/vim-tmux-syntax",
|
||||||
"tmux-plugins/vim-tmux-focus-events",
|
"tmux-plugins/vim-tmux-focus-events",
|
||||||
-- 'jabirali/vim-tmux-yank',
|
-- 'jabirali/vim-tmux-yank',
|
||||||
"skywind3000/asyncrun.vim",
|
"skywind3000/asyncrun.vim",
|
||||||
}
|
}
|
||||||
|
@ -7,14 +7,11 @@ return {
|
|||||||
end,
|
end,
|
||||||
config = function()
|
config = function()
|
||||||
require("which-key").setup({})
|
require("which-key").setup({})
|
||||||
-- local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
--
|
wk.register({
|
||||||
-- wk.register({ [";"] = { ":" } }, { mode = "v" })
|
["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
|
||||||
-- wk.register({ [";"] = { ":" } }, { mode = "n" })
|
["%."] = { "<C-R>%", "Current File" },
|
||||||
--
|
}, { mode = "c" })
|
||||||
-- wk.register({
|
|
||||||
-- ["%%"] = { '<C-R>=fnameescape(expand("%:p:h")."/")<CR>', "Current File Directory" },
|
|
||||||
-- }, { mode = "c" })
|
|
||||||
--
|
--
|
||||||
-- wk.register({
|
-- wk.register({
|
||||||
-- ["jk"] = { "<esc>" },
|
-- ["jk"] = { "<esc>" },
|
||||||
|
@ -2,7 +2,7 @@ return {
|
|||||||
"folke/zen-mode.nvim",
|
"folke/zen-mode.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
window = {
|
window = {
|
||||||
width = 140,
|
width = 0.8,
|
||||||
},
|
},
|
||||||
plugins = {
|
plugins = {
|
||||||
tmux = { enabled = false },
|
tmux = { enabled = false },
|
||||||
|
@ -1,83 +1,60 @@
|
|||||||
local M = {}
|
local M = {
|
||||||
|
use_google_cache = nil,
|
||||||
|
flags = { blink = true },
|
||||||
|
}
|
||||||
|
|
||||||
|
function M.exec(command, args)
|
||||||
|
local Job = require("plenary.job")
|
||||||
|
local job = Job:new({
|
||||||
|
command = command,
|
||||||
|
args = args,
|
||||||
|
})
|
||||||
|
job:sync()
|
||||||
|
job:wait()
|
||||||
|
return job:result()
|
||||||
|
end
|
||||||
|
|
||||||
function M.map(mode, lhs, rhs, opts)
|
function M.map(mode, lhs, rhs, opts)
|
||||||
local options = { noremap = true }
|
local options = { noremap = true }
|
||||||
if opts then
|
if opts then
|
||||||
options = vim.tbl_extend("force", options, opts)
|
options = vim.tbl_extend("force", options, opts)
|
||||||
end
|
end
|
||||||
-- vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
-- vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||||
vim.keymap.set(mode, lhs, rhs, options)
|
vim.keymap.set(mode, lhs, rhs, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.use_google()
|
function M.use_google()
|
||||||
return M.file_exists(os.getenv("HOME") .. "/use_google")
|
if M.use_google_cache == nil then
|
||||||
|
M.use_google_cache = M.file_exists(vim.env.HOME .. "/use_google")
|
||||||
|
end
|
||||||
|
return M.use_google_cache
|
||||||
end
|
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
|
if f ~= nil then
|
||||||
io.close(f)
|
io.close(f)
|
||||||
return true
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
function M.dump(o)
|
|
||||||
if type(o) == "table" then
|
|
||||||
local s = "{ "
|
|
||||||
for k, v in pairs(o) do
|
|
||||||
if type(k) ~= "number" then
|
|
||||||
k = '"' .. k .. '"'
|
|
||||||
end
|
|
||||||
s = s .. "[" .. k .. "] = " .. M.dump(v) .. ","
|
|
||||||
end
|
|
||||||
return s .. "} "
|
|
||||||
else
|
|
||||||
return tostring(o)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function M.tprint(tbl, indent)
|
|
||||||
if not indent then
|
|
||||||
indent = 0
|
|
||||||
end
|
|
||||||
local toprint = string.rep(" ", indent) .. "{\r\n"
|
|
||||||
indent = indent + 2
|
|
||||||
for k, v in pairs(tbl) do
|
|
||||||
toprint = toprint .. string.rep(" ", indent)
|
|
||||||
if type(k) == "number" then
|
|
||||||
toprint = toprint .. "[" .. k .. "] = "
|
|
||||||
elseif type(k) == "string" then
|
|
||||||
toprint = toprint .. k .. "= "
|
|
||||||
end
|
|
||||||
if type(v) == "number" then
|
|
||||||
toprint = toprint .. v .. ",\r\n"
|
|
||||||
elseif type(v) == "string" then
|
|
||||||
toprint = toprint .. '"' .. v .. '",\r\n'
|
|
||||||
elseif type(v) == "table" then
|
|
||||||
toprint = toprint .. M.tprint(v, indent + 2) .. ",\r\n"
|
|
||||||
else
|
|
||||||
toprint = toprint .. '"' .. tostring(v) .. '",\r\n'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
toprint = toprint .. string.rep(" ", indent - 2) .. "}"
|
|
||||||
return toprint
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.log(message)
|
function M.log(message)
|
||||||
local log_file_path = vim.fn.expand("$HOME/nvim.log")
|
local log_file_path = vim.fn.expand("$HOME/nvim.log")
|
||||||
local log_file = io.open(log_file_path, "a")
|
local log_file = io.open(log_file_path, "a")
|
||||||
io.output(log_file)
|
io.output(log_file)
|
||||||
io.write(message .. "\n")
|
io.write(message .. "\n")
|
||||||
io.close(log_file)
|
io.close(log_file)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M.TableConcat(t1, t2)
|
function M.TableConcat(t1, t2)
|
||||||
for i = 1, #t2 do
|
for i = 1, #t2 do
|
||||||
t1[#t1 + 1] = t2[i]
|
t1[#t1 + 1] = t2[i]
|
||||||
end
|
end
|
||||||
return t1
|
return t1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
M.flags.blink = not M.use_google()
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -15,7 +15,7 @@ map <leader>` ysiw`
|
|||||||
vmap <leader>` c`<C-R>"`<ESC>
|
vmap <leader>` c`<C-R>"`<ESC>
|
||||||
|
|
||||||
" --------- SEARCH MAPPINGS ---------
|
" --------- SEARCH MAPPINGS ---------
|
||||||
" unhilight search
|
" unhighlight search
|
||||||
nnoremap <leader><space> :nohlsearch<CR>
|
nnoremap <leader><space> :nohlsearch<CR>
|
||||||
|
|
||||||
" --------- CLIPBOARD MAPPINGS ---------
|
" --------- CLIPBOARD MAPPINGS ---------
|
||||||
@ -42,9 +42,9 @@ nnoremap <silent> <Leader>x- :exe "resize " . (winheight(0) * 2/3)<CR>
|
|||||||
" --------- FORMATTING MAPPINGS ---------
|
" --------- FORMATTING MAPPINGS ---------
|
||||||
" indent file
|
" indent file
|
||||||
map <leader>= gg=G ``
|
map <leader>= gg=G ``
|
||||||
nmap <leader>yf :let @+ = expand("%")<cr>
|
nmap <leader>yf :let @+ = expand("%") \| let @" = expand("%")<cr>
|
||||||
" replace currently selected text with default register
|
" replace currently selected text with default register
|
||||||
" without yanking it
|
" without yanking it
|
||||||
vnoremap <leader>p "_dP
|
vnoremap <leader>p "_dP
|
||||||
nnoremap <leader><leader> :VimuxOpenRunner<cr> :VimuxRunCommand '!!'<cr> :call VimuxSendKeys("Enter")<cr>
|
nnoremap <leader><leader> :VimuxZoomRunner<cr> :VimuxRunCommand '!!'<cr> :call VimuxSendKeys("Enter")<cr>
|
||||||
nnoremap <leader>s :SessionSave<CR>
|
nnoremap <leader>. :VimuxOpenRunner<cr> :VimuxRunCommand '!!'<cr> :call VimuxSendKeys("Enter")<cr>
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
" DO NOT PLACE PLUGIN RELATED MAPPINGS HERE
|
|
||||||
|
|
||||||
" jk is escape -.-
|
" jk is escape -.-
|
||||||
inoremap jk <esc>
|
inoremap jk <esc>
|
||||||
|
inoremap <space><space> <esc>:w<cr>
|
||||||
|
|
||||||
" make tmux and vim play nicely together
|
" make tmux and vim play nicely together
|
||||||
map <Esc>[A <Up>
|
map <Esc>[A <Up>
|
||||||
@ -12,8 +11,6 @@ map <Esc>[D <Left>
|
|||||||
" remove mapping to be used in nerdtree
|
" remove mapping to be used in nerdtree
|
||||||
inoremap <Nul> <C-n>
|
inoremap <Nul> <C-n>
|
||||||
|
|
||||||
cnoremap %% <C-R>=fnameescape(expand("%:p:h")."/")<CR>
|
|
||||||
|
|
||||||
" move vertically by visual line
|
" move vertically by visual line
|
||||||
" nnoremap j gj
|
" nnoremap j gj
|
||||||
" nnoremap k gk
|
" nnoremap k gk
|
||||||
@ -45,63 +42,3 @@ nnoremap / /\v
|
|||||||
vnoremap / /\v
|
vnoremap / /\v
|
||||||
|
|
||||||
nnoremap <silent> <leader>ww :call WindowSwap#EasyWindowSwap()<CR>
|
nnoremap <silent> <leader>ww :call WindowSwap#EasyWindowSwap()<CR>
|
||||||
|
|
||||||
function! s:createHabitsMappings(keys, message) abort
|
|
||||||
for key in a:keys
|
|
||||||
call nvim_set_keymap('n', key, ':call BreakHabitsWindow(' . string(a:message). ')<CR>', {'silent': v:true, 'nowait': v:true, 'noremap': v:true})
|
|
||||||
endfor
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! BreakHabitsWindow(message) abort
|
|
||||||
" Define the size of the floating window
|
|
||||||
let width = 50
|
|
||||||
let height = 10
|
|
||||||
|
|
||||||
" Create the scratch buffer displayed in the floating window
|
|
||||||
let buf = nvim_create_buf(v:false, v:true)
|
|
||||||
|
|
||||||
" create the lines to draw a box
|
|
||||||
let horizontal_border = '+' . repeat('-', width - 2) . '+'
|
|
||||||
let empty_line = '|' . repeat(' ', width - 2) . '|'
|
|
||||||
let lines = flatten([horizontal_border, map(range(height-2), 'empty_line'), horizontal_border])
|
|
||||||
" set the box in the buffer
|
|
||||||
call nvim_buf_set_lines(buf, 0, -1, v:false, lines)
|
|
||||||
|
|
||||||
" Create the lines for the centered message and put them in the buffer
|
|
||||||
let offset = 0
|
|
||||||
for line in a:message
|
|
||||||
let start_col = (width - len(line))/2
|
|
||||||
let end_col = start_col + len(line)
|
|
||||||
let current_row = height/2-len(a:message)/2 + offset
|
|
||||||
let offset = offset + 1
|
|
||||||
call nvim_buf_set_text(buf, current_row, start_col, current_row, end_col, [line])
|
|
||||||
endfor
|
|
||||||
|
|
||||||
" Set mappings in the buffer to close the window easily
|
|
||||||
let closingKeys = ['<Esc>', '<CR>', '<Leader>']
|
|
||||||
for closingKey in closingKeys
|
|
||||||
call nvim_buf_set_keymap(buf, 'n', closingKey, ':close<CR>', {'silent': v:true, 'nowait': v:true, 'noremap': v:true})
|
|
||||||
endfor
|
|
||||||
|
|
||||||
" Create the floating window
|
|
||||||
let ui = nvim_list_uis()[0]
|
|
||||||
let opts = {'relative': 'editor',
|
|
||||||
\ 'width': width,
|
|
||||||
\ 'height': height,
|
|
||||||
\ 'col': (ui.width/2) - (width/2),
|
|
||||||
\ 'row': (ui.height/2) - (height/2),
|
|
||||||
\ 'anchor': 'NW',
|
|
||||||
\ 'style': 'minimal',
|
|
||||||
\ }
|
|
||||||
let win = nvim_open_win(buf, 1, opts)
|
|
||||||
|
|
||||||
" Change highlighting
|
|
||||||
" call nvim_win_set_option(win, 'winhl', 'Normal:ErrorFloat')
|
|
||||||
|
|
||||||
highlight CustomFloatingWindow ctermbg=11 guibg=black ctermfg=10 guifg=red
|
|
||||||
call nvim_win_set_option(win, 'winhl', 'Normal:CustomFloatingWindow')
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" let windowHabitsKeys = [":w<cr>"]
|
|
||||||
" let windowHabitsMessage = ["USE < SPACE SPACE > INSTEAD", "BREAK BAD HABITS"]
|
|
||||||
" call s:createHabitsMappings(windowHabitsKeys, windowHabitsMessage)
|
|
||||||
|
60
vim/.vimrc
60
vim/.vimrc
@ -2,32 +2,19 @@ set nocompatible " be iMproved, required
|
|||||||
|
|
||||||
let mapleader="," " BEST LEADER OF ALL TIME (BLOT)
|
let mapleader="," " BEST LEADER OF ALL TIME (BLOT)
|
||||||
filetype off " required
|
filetype off " required
|
||||||
set runtimepath+=,~/.vim
|
|
||||||
set runtimepath+=,~/.vim/after
|
|
||||||
set runtimepath+=,~/.vim/lua/
|
|
||||||
set runtimepath+=,~/.config/nvim/after/
|
|
||||||
let &runtimepath = &runtimepath
|
|
||||||
|
|
||||||
set directory=/tmp
|
set directory=/tmp
|
||||||
set undofile
|
set undofile
|
||||||
set nobackup
|
set nobackup
|
||||||
set formatoptions+=j
|
set formatoptions+=j
|
||||||
set nowritebackup
|
set nowritebackup
|
||||||
au BufWritePre * let &bex = '@' . strftime("%F.%H:%M")
|
|
||||||
|
|
||||||
set termguicolors
|
set termguicolors
|
||||||
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
|
||||||
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
|
||||||
let &t_AB="\e[48;5;%dm"
|
|
||||||
let &t_AF="\e[38;5;%dm"
|
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set cmdheight=1
|
set cmdheight=1
|
||||||
set ttyfast
|
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set copyindent
|
set copyindent
|
||||||
set preserveindent
|
set preserveindent
|
||||||
" set lazyredraw " Enable if running slow...
|
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
set wrap
|
set wrap
|
||||||
@ -50,31 +37,16 @@ set hlsearch " highlight matches
|
|||||||
set splitright " Puts new vsplit windows to the right of the current
|
set splitright " Puts new vsplit windows to the right of the current
|
||||||
set splitbelow " Puts new split windows to the bottom of the current
|
set splitbelow " Puts new split windows to the bottom of the current
|
||||||
|
|
||||||
set scrolljump=5 " Line to scroll when cursor leaves screen
|
set shortmess=A " disable swapg
|
||||||
set scrolloff=3 " Minumum lines to keep above and below cursor
|
|
||||||
|
|
||||||
set shortmess=A " disable swap
|
|
||||||
set shortmess+=O
|
set shortmess+=O
|
||||||
set modifiable
|
set modifiable
|
||||||
set noscrollbind
|
set noscrollbind
|
||||||
|
set expandtab
|
||||||
set updatetime=100
|
|
||||||
|
|
||||||
lua require('plugin_init')
|
|
||||||
|
|
||||||
source ~/.vim/prefs/mappings.vim
|
|
||||||
source ~/.vim/prefs/leader.vim
|
|
||||||
|
|
||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
|
|
||||||
let base16colorspace=256
|
let base16colorspace=256
|
||||||
set colorcolumn=100
|
set colorcolumn=100
|
||||||
|
|
||||||
if (has("termguicolors"))
|
|
||||||
set termguicolors
|
|
||||||
endif
|
|
||||||
set background=dark
|
set background=dark
|
||||||
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||||||
|
|
||||||
@ -85,23 +57,6 @@ let g:lsp_log_file = expand('~/vim-lsp.log')
|
|||||||
"Don't ask to save when changing buffers (i.e. when jumping to a type definition)
|
"Don't ask to save when changing buffers (i.e. when jumping to a type definition)
|
||||||
set hidden
|
set hidden
|
||||||
|
|
||||||
function! GenerateUnicode(first, last)
|
|
||||||
let i = a:first
|
|
||||||
while i <= a:last
|
|
||||||
if (i%256 == 0)
|
|
||||||
$put ='----------------------------------------------------'
|
|
||||||
$put =' 0 1 2 3 4 5 6 7 8 9 A B C D E F '
|
|
||||||
$put ='----------------------------------------------------'
|
|
||||||
endif
|
|
||||||
let c = printf('%04X ', i)
|
|
||||||
for j in range(16)
|
|
||||||
let c = c . nr2char(i) . ' '
|
|
||||||
let i += 1
|
|
||||||
endfor
|
|
||||||
$put =c
|
|
||||||
endwhile
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
" makes sure that when opening, files are normal, i.e. not folded.
|
" makes sure that when opening, files are normal, i.e. not folded.
|
||||||
set nofoldenable
|
set nofoldenable
|
||||||
|
|
||||||
@ -117,11 +72,14 @@ let g:loaded_zipPlugin = 1
|
|||||||
let g:loaded_2html_plugin = 1
|
let g:loaded_2html_plugin = 1
|
||||||
let g:loaded_shada_plugin = 1
|
let g:loaded_shada_plugin = 1
|
||||||
let g:loaded_spellfile_plugin = 1
|
let g:loaded_spellfile_plugin = 1
|
||||||
let g:loaded_netrwPlugin = 1
|
let g:loaded_netrwPlugin = 0
|
||||||
let g:loaded_tutor_mode_plugin = 1
|
let g:loaded_tutor_mode_plugin = 0
|
||||||
let g:loaded_remote_plugins = 1
|
let g:loaded_remote_plugins = 1
|
||||||
|
|
||||||
set mouse=
|
|
||||||
|
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
|
source ~/.vim/prefs/mappings.vim
|
||||||
|
source ~/.vim/prefs/leader.vim
|
||||||
|
source ~/.vim/prefs/mappings.vim
|
||||||
|
source ~/.vim/prefs/leader.vim
|
||||||
|
BIN
zsh/..zshrc.un~
Normal file
BIN
zsh/..zshrc.un~
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user