repos / dotfiles

my dotfiles

commit
3af2966
parent
eb578e3
author
Eric Bower
date
2025-07-25 09:24:19 -0400 EDT
fix(nvim): shpool reattach sizing issue
1 files changed,  +14, -10
M dot_config/nvim/init.lua
+14, -10
 1@@ -34,22 +34,26 @@ map("n", "<C-l>", ":wincmd l<CR>", opts)
 2 map({ "n", "v", "i", "t" }, "<C-space><C-d>", function()
 3 	vim.cmd("!shpool detach")
 4 end)
 5+-- https://github.com/shell-pool/shpool/issues/240#issuecomment-3097566679
 6+map("n", "<leader>l", function()
 7+	io.stdout:write("\027[?2048h")
 8+end, opts)
 9 map({ "n", "v" }, "<leader>gy", "<cmd>GitLink<cr>", opts)
10 
11 local augroup = vim.api.nvim_create_augroup("erock.cfg", { clear = true })
12 local autocmd = vim.api.nvim_create_autocmd
13 autocmd("Filetype", {
14-  group = augroup,
15-  pattern = { "qf" },
16-  command = "setlocal wrap",
17+	group = augroup,
18+	pattern = { "qf" },
19+	command = "setlocal wrap",
20 })
21 autocmd("Filetype", {
22-  group = augroup,
23-  pattern = { "make" },
24-  command = "setlocal tabstop=4 shiftwidth=4 softtabstop=4",
25+	group = augroup,
26+	pattern = { "make" },
27+	command = "setlocal tabstop=4 shiftwidth=4 softtabstop=4",
28 })
29 autocmd("Filetype", {
30-  group = augroup,
31+	group = augroup,
32 	pattern = { "markdown" },
33 	command = "setlocal wrap tw=79 formatoptions+=t tabstop=2 shiftwidth=2 softtabstop=2",
34 })
35@@ -185,9 +189,9 @@ autocmd("FileType", { -- enable treesitter highlighting and indents
36 		local filetype = args.match
37 		local lang = vim.treesitter.language.get_lang(filetype)
38 		if vim.treesitter.language.add(lang) then
39-      if vim.treesitter.query.get(filetype, "indents") then
40-			  vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
41-      end
42+			if vim.treesitter.query.get(filetype, "indents") then
43+				vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
44+			end
45 			vim.treesitter.start()
46 		end
47 	end,