Skip to content

Commit 6007369

Browse files
committed
for my leftpad sponsor
1 parent 5d7d5b9 commit 6007369

21 files changed

Lines changed: 352 additions & 624 deletions

xdg_config/nvim/.gdb_history

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
stack
2+
frame
3+
frame help
4+
help frame
5+
frame view
6+
frame view 1
7+
frame view 0
8+
help
9+
stack
10+
help stack
11+
bt
12+
?
13+
help
14+
status
15+
help status
16+
info
17+
q
18+
info args
19+
q

xdg_config/nvim/after/ftplugin/term.vim

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ setlocal norelativenumber
22
setlocal nonumber
33

44
setlocal scrolloff=0
5-
6-
7-
tnoremap ,reload %load_ext autoreload<CR>%autoreload 2<CR>

xdg_config/nvim/after/plugin/colorscheme.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ Group.new("goTSType", g.Type.fg:dark(), nil, g.Type)
3535
Group.new("typescriptTSConstructor", g.pythonTSType)
3636
Group.new("typescriptTSProperty", c.blue)
3737

38+
-- vim.cmd [[highlight WinSeparator guifg=#4e545c guibg=None]]
39+
Group.new("WinSeparator", nil, nil)
40+
3841
-- I don't think I like highlights for text
3942
-- Group.new("LspReferenceText", nil, c.gray0:light(), s.bold)
4043
-- Group.new("LspReferenceWrite", nil, c.gray0:light())
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
local Job = require "plenary.job"
2+
3+
local group = vim.api.nvim_create_augroup("LsifTyped", { clear = true })
4+
vim.api.nvim_create_autocmd("BufReadCmd", {
5+
group = group,
6+
pattern = "*.lsif-typed",
7+
callback = function()
8+
local bufnr = vim.api.nvim_get_current_buf()
9+
local file = vim.fn.expand "<afile>"
10+
11+
vim.bo[bufnr].modifiable = true
12+
vim.bo[bufnr].readonly = false
13+
14+
Job
15+
:new({
16+
"protoc",
17+
"--decode=lib.codeintel.lsiftyped.Index",
18+
"--proto_path=/home/tjdevries/sourcegraph/sourcegraph.git/main/proto/lib/codeintel/lsiftyped",
19+
"lsif.proto",
20+
21+
writer = Job:new { "cat", file },
22+
23+
on_stderr = vim.schedule_wrap(function(_, data)
24+
print("ERR:", data)
25+
end),
26+
27+
on_stdout = vim.schedule_wrap(function(_, data)
28+
vim.api.nvim_buf_set_lines(bufnr, -1, -1, false, { data })
29+
end),
30+
31+
on_exit = vim.schedule_wrap(function()
32+
vim.api.nvim_buf_set_lines(bufnr, 0, 1, false, {})
33+
34+
vim.bo[bufnr].readonly = true
35+
vim.bo[bufnr].buftype = "nofile"
36+
vim.bo[bufnr].modified = false
37+
vim.bo[bufnr].modifiable = false
38+
vim.opt_local.wrap = false
39+
end),
40+
})
41+
:start()
42+
end,
43+
})

xdg_config/nvim/after/plugin/luasnip.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ ls.config.set_config {
2222
ext_opts = {
2323
[types.choiceNode] = {
2424
active = {
25-
virt_text = { { "<-", "Error" } },
25+
virt_text = { { " <- Current Choice", "NonTest" } },
2626
},
2727
},
2828
},
@@ -345,5 +345,7 @@ vim.keymap.set("i", "<c-l>", function()
345345
end
346346
end)
347347

348+
vim.keymap.set("i", "<c-u>", require "luasnip.extras.select_choice")
349+
348350
-- shorcut to source my luasnips file again, which will reload my snippets
349351
vim.keymap.set("n", "<leader><leader>s", "<cmd>source ~/.config/nvim/after/plugin/luasnip.lua<CR>")

xdg_config/nvim/after/plugin/signs.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Group.new("GitSignsAdd", c.green)
1212
Group.new("GitSignsChange", c.yellow)
1313
Group.new("GitSignsDelete", c.red)
1414

15+
if true then
16+
return
17+
end
18+
1519
signs.setup {
1620
signs = {
1721
add = { hl = "GitSignsAdd", text = "", numhl = "GitSignsAddNr" },

xdg_config/nvim/after/plugin/statusline.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
RELOAD "el"
44
require("el").reset_windows()
55

6+
vim.opt.laststatus = 3
7+
68
local builtin = require "el.builtin"
79
local extensions = require "el.extensions"
810
local sections = require "el.sections"

xdg_config/nvim/after/plugin/stylua.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ end
99

1010
vim.cmd [[
1111
augroup StyluaAuto
12+
au!
1213
autocmd BufWritePre *.lua :lua require("tj.stylua").format()
1314
augroup END
1415
]]

xdg_config/nvim/after/plugin/treesitter.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ local custom_captures = {
2626
["namespace.type"] = "TSNamespaceType",
2727
}
2828

29+
require("nvim-treesitter.highlight").set_custom_captures(custom_captures)
30+
2931
-- alt+<space>, alt+p -> swap next
3032
-- alt+<backspace>, alt+p -> swap previous
3133
-- swap_previous = {

xdg_config/nvim/lua/scripts/generate_keymaps.lua

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)