Skip to content

Commit 8d56cc3

Browse files
committed
more updates
1 parent 6007369 commit 8d56cc3

8 files changed

Lines changed: 93 additions & 85 deletions

File tree

xdg_config/nvim/.gdb_history

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

xdg_config/nvim/after/plugin/colorscheme.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,6 @@ Group.new("WinSeparator", nil, nil)
4444

4545
-- Group.new("TSKeyword", c.purple, nil, s.underline, c.blue)
4646
-- Group.new("LuaFunctionCall", c.green, nil, s.underline + s.nocombine, g.TSKeyword.guisp)
47+
48+
-- Hello
49+
Group.new("TSTitle", c.blue)

xdg_config/nvim/after/plugin/treesitter.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ local _ = require("nvim-treesitter.configs").setup {
154154

155155
["aa"] = "@parameter.outer",
156156
["ia"] = "@parameter.inner",
157+
158+
["av"] = "@variable.outer",
159+
["iv"] = "@variable.inner",
157160
},
158161
},
159162

xdg_config/nvim/lua/tj/plugins.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ return require("packer").startup {
6868
local_use "complextras.nvim"
6969
local_use "lazy.nvim"
7070
-- local_use("tjdevries", "astronauta.nvim")
71+
local_use "diff-therapy.nvim"
7172

7273
-- Contributor Plugins
7374
local_use("L3MON4D3", "LuaSnip")
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
local ls = require "luasnip"
2+
3+
local i = ls.insert_node
4+
local fmt = require("luasnip.extras.fmt").fmt
5+
6+
return {
7+
cl = fmt("console.log({});", i(1)),
8+
}

xdg_config/nvim/lua/tj/telescope/init.lua

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,18 @@ function M.edit_zsh()
181181
end
182182

183183
function M.fd()
184-
local opts = themes.get_ivy {
185-
hidden = false,
186-
sorting_strategy = "ascending",
187-
layout_config = { --[[ height = 9 ]]
184+
-- local opts = themes.get_ivy {
185+
-- hidden = false,
186+
-- sorting_strategy = "ascending",
187+
-- layout_config = { height = 9 },
188+
-- }
189+
require("telescope.builtin").fd {
190+
sorting_strategy = "descending",
191+
scroll_strategy = "cycle",
192+
layout_config = {
193+
-- height = 10,
188194
},
189195
}
190-
require("telescope.builtin").fd(opts)
191196
end
192197

193198
function M.fs()

xdg_config/nvim/plugin/options.lua

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,18 @@ opt.scrolloff = 10 -- Make it so there are always ten lines below my cursor
3232
-- Only have it on in the active buffer
3333
opt.cursorline = true -- Highlight the current line
3434
local group = vim.api.nvim_create_augroup("CursorLineControl", { clear = true })
35-
vim.api.nvim_create_autocmd("WinLeave", {
36-
group = group,
37-
callback = function()
38-
vim.opt_local.cursorline = false
39-
end,
40-
})
41-
vim.api.nvim_create_autocmd("WinEnter", {
42-
group = group,
43-
callback = function()
44-
vim.opt_local.cursorline = true
45-
end,
46-
})
35+
local set_cursorline = function(event, value, pattern)
36+
vim.api.nvim_create_autocmd(event, {
37+
group = group,
38+
pattern = pattern,
39+
callback = function()
40+
vim.opt_local.cursorline = value
41+
end,
42+
})
43+
end
44+
set_cursorline("WinLeave", false)
45+
set_cursorline("WinEnter", true)
46+
set_cursorline("FileType", false, "TelescopePrompt")
4747

4848
-- Tabs
4949
opt.autoindent = true
@@ -94,3 +94,5 @@ opt.joinspaces = false -- Two spaces and grade school, we're done
9494

9595
-- set fillchars=eob:~
9696
opt.fillchars = { eob = "~" }
97+
98+
vim.opt.diffopt = { "internal", "filler", "closeoff", "hiddenoff", "algorithm:minimal" }

xdg_config/nvim/plugin/packer_compiled.lua

Lines changed: 54 additions & 49 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)