From c3d1fb646a04aaa97b2929b90269f8a7bf8e8dc4 Mon Sep 17 00:00:00 2001 From: Sidhanth Rathod Date: Sun, 12 Jan 2025 06:29:04 +0530 Subject: [PATCH 01/10] Update chadrc.lua --- lua/chadrc.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lua/chadrc.lua b/lua/chadrc.lua index c82dca1..29b83c6 100644 --- a/lua/chadrc.lua +++ b/lua/chadrc.lua @@ -14,4 +14,11 @@ M.base46 = { -- }, } +-- M.nvdash = { load_on_startup = true } +-- M.ui = { +-- tabufline = { +-- lazyload = false +-- } +--} + return M From 2ef0168470ad6d1bc68e44177fa05b43110d9e25 Mon Sep 17 00:00:00 2001 From: siduck Date: Tue, 15 Apr 2025 07:55:31 +0530 Subject: [PATCH 02/10] use vim.lsp.config & vim.lsp.enable --- lua/configs/lspconfig.lua | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 478df01..12fb517 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -1,24 +1,4 @@ --- load defaults i.e lua_lsp require("nvchad.configs.lspconfig").defaults() -local lspconfig = require "lspconfig" - --- EXAMPLE local servers = { "html", "cssls" } -local nvlsp = require "nvchad.configs.lspconfig" - --- lsps with default config -for _, lsp in ipairs(servers) do - lspconfig[lsp].setup { - on_attach = nvlsp.on_attach, - on_init = nvlsp.on_init, - capabilities = nvlsp.capabilities, - } -end - --- configuring single server, example: typescript --- lspconfig.ts_ls.setup { --- on_attach = nvlsp.on_attach, --- on_init = nvlsp.on_init, --- capabilities = nvlsp.capabilities, --- } +vim.lsp.enable(servers) From 85404dcb03bda6badc55cec998b3bdbe76b81138 Mon Sep 17 00:00:00 2001 From: siduck Date: Tue, 15 Apr 2025 07:55:35 +0530 Subject: [PATCH 03/10] add example for blink users --- lua/plugins/init.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 6474776..d028655 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -13,6 +13,9 @@ return { end, }, + -- test new blink + -- { import = "nvchad.blink.lazyspec" }, + -- { -- "nvim-treesitter/nvim-treesitter", -- opts = { From 2b4293a4c10a29cb52eefc430d3d77582c1a24fd Mon Sep 17 00:00:00 2001 From: Sidhanth Rathod Date: Sun, 4 May 2025 13:50:03 +0530 Subject: [PATCH 04/10] Update lspconfig.lua --- lua/configs/lspconfig.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/configs/lspconfig.lua b/lua/configs/lspconfig.lua index 12fb517..20a0cce 100644 --- a/lua/configs/lspconfig.lua +++ b/lua/configs/lspconfig.lua @@ -2,3 +2,5 @@ require("nvchad.configs.lspconfig").defaults() local servers = { "html", "cssls" } vim.lsp.enable(servers) + +-- read :h vim.lsp.config for changing options of lsp servers From 925399d90ca46163bf49ce97e153adb4f7a6c8b5 Mon Sep 17 00:00:00 2001 From: siduck Date: Sun, 25 May 2025 11:49:51 +0530 Subject: [PATCH 05/10] add example of autocmds by default --- init.lua | 2 +- lua/autocmds.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 lua/autocmds.lua diff --git a/init.lua b/init.lua index 0fda20c..e861b68 100644 --- a/init.lua +++ b/init.lua @@ -30,7 +30,7 @@ dofile(vim.g.base46_cache .. "defaults") dofile(vim.g.base46_cache .. "statusline") require "options" -require "nvchad.autocmds" +require "autocmds" vim.schedule(function() require "mappings" diff --git a/lua/autocmds.lua b/lua/autocmds.lua new file mode 100644 index 0000000..d2db0bb --- /dev/null +++ b/lua/autocmds.lua @@ -0,0 +1 @@ +require "nvchad.autocmds" From 5c656910f058ecdc6753c6a4f39b64afce89a0e6 Mon Sep 17 00:00:00 2001 From: Connor Denihan <188690869+cdenihan@users.noreply.github.com> Date: Fri, 20 Jun 2025 13:16:27 -0400 Subject: [PATCH 06/10] Fix: Grammatical Error in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dc0deaa..769fbdf 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -**This repo is supposed to used as config by NvChad users!** +**This repo is supposed to be used as config by NvChad users!** - The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo. - So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"` From e3572e1f5e1c297212c3deeb17b7863139ce663e Mon Sep 17 00:00:00 2001 From: Connor Denihan <188690869+cdenihan@users.noreply.github.com> Date: Thu, 31 Jul 2025 01:16:58 -0400 Subject: [PATCH 07/10] Update chadrc.lua (#91) --- lua/chadrc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/chadrc.lua b/lua/chadrc.lua index 29b83c6..9eca87c 100644 --- a/lua/chadrc.lua +++ b/lua/chadrc.lua @@ -19,6 +19,6 @@ M.base46 = { -- tabufline = { -- lazyload = false -- } ---} +-- } return M From 60437b1511ef9ba9b6bcb0ab242a1a06a9fa5602 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 10 May 2026 02:27:50 -0400 Subject: [PATCH 08/10] load td_mappings for time tracking keybindings --- lua/mappings.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/mappings.lua b/lua/mappings.lua index 11c1bac..51f25cd 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -1,4 +1,5 @@ require "nvchad.mappings" +require "td_mappings" -- add yours here From 358902079f6cece1a32c186b26ac4e5850d45cd1 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 10 May 2026 02:31:02 -0400 Subject: [PATCH 09/10] =?UTF-8?q?remove=20td.lua=20from=20repo=20tracking?= =?UTF-8?q?=20and=20inline=20duplicate=20=E2=80=94=20td=20managed=20by=20s?= =?UTF-8?q?etup=5Fenv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/mappings.lua | 9 ---- lua/td.lua | 104 ----------------------------------------------- 2 files changed, 113 deletions(-) delete mode 100644 lua/td.lua diff --git a/lua/mappings.lua b/lua/mappings.lua index f8cfd7b..b034b8a 100644 --- a/lua/mappings.lua +++ b/lua/mappings.lua @@ -65,12 +65,3 @@ vim.keymap.set("n", "gb", ":Gitsigns blame_line", { noremap = true, -- Disable alt+h and alt+v terminal toggles vim.keymap.del({ "n", "t" }, "") vim.keymap.del({ "n", "t" }, "") - --- td: time-track markdown todos (see ~/.local/bin/td and ~/.config/nvim/lua/td.lua) -local td = require("td") -vim.api.nvim_create_user_command("TdStart", td.start, {}) -vim.api.nvim_create_user_command("TdStop", td.stop, {}) -vim.api.nvim_create_user_command("TdReport", td.report, {}) -vim.keymap.set("n", "ts", td.start, { desc = "td: start timer on current task" }) -vim.keymap.set("n", "tp", td.stop, { desc = "td: stop (pause) timer" }) -vim.keymap.set("n", "tr", td.report, { desc = "td: report floating window" }) diff --git a/lua/td.lua b/lua/td.lua deleted file mode 100644 index 850e39b..0000000 --- a/lua/td.lua +++ /dev/null @@ -1,104 +0,0 @@ -local M = {} - -local function vault_root() - local file = vim.api.nvim_buf_get_name(0) - local dir = file ~= "" and vim.fn.fnamemodify(file, ":p:h") or vim.fn.getcwd() - local probe = dir - while probe ~= "/" and probe ~= "" do - if vim.loop.fs_stat(probe .. "/time.csv") or vim.loop.fs_stat(probe .. "/.obsidian") then - return probe - end - local parent = vim.fn.fnamemodify(probe, ":h") - if parent == probe then break end - probe = parent - end - return vim.fn.getcwd() -end - -local function relpath(abs, base) - local a = vim.fn.fnamemodify(abs, ":p") - local b = vim.fn.fnamemodify(base, ":p"):gsub("/$", "") - if a:sub(1, #b + 1) == b .. "/" then return a:sub(#b + 2) end - return a -end - -local function run(cmd, cwd, on_done) - local stdout, stderr = {}, {} - vim.fn.jobstart(cmd, { - cwd = cwd, - stdout_buffered = true, - stderr_buffered = true, - on_stdout = function(_, d) for _, l in ipairs(d) do if l ~= "" then stdout[#stdout + 1] = l end end end, - on_stderr = function(_, d) for _, l in ipairs(d) do if l ~= "" then stderr[#stderr + 1] = l end end end, - on_exit = function(_, code) - vim.schedule(function() if on_done then on_done(stdout, stderr, code) end end) - end, - }) -end - -local function notify(lines, level) - if #lines == 0 then return end - vim.notify(table.concat(lines, "\n"), level or vim.log.levels.INFO) -end - -local function extract_desc(line) - return (line:gsub("^%s*%-%s*%[.%]%s*", ""):gsub("%s*%^%S+%s*$", ""):gsub("%s+$", "")) -end - -local function ensure_tid_on_line() - local line = vim.api.nvim_get_current_line() - local tid = line:match("%^(tid%-%S+)") - if tid then return tid end - if not line:match("^%s*%-%s*%[.%]") then - vim.notify("td: not on a todo line (- [ ] ...)", vim.log.levels.WARN) - return nil - end - tid = os.date("tid-%Y%m%d-%H%M%S") - local new = line:gsub("%s+$", "") .. " ^" .. tid - vim.api.nvim_set_current_line(new) - vim.cmd("silent! write") - return tid -end - -function M.start() - local tid = ensure_tid_on_line() - if not tid then return end - local cwd = vault_root() - local file = relpath(vim.api.nvim_buf_get_name(0), cwd) - local desc = extract_desc(vim.api.nvim_get_current_line()) - run({ "td", "start", tid, "--file", file, "--desc", desc }, cwd, function(out, err) - notify(out); notify(err, vim.log.levels.WARN) - end) -end - -function M.stop() - run({ "td", "stop" }, vault_root(), function(out, err) - notify(out); notify(err, vim.log.levels.WARN) - end) -end - -function M.report() - run({ "td", "report" }, vault_root(), function(out, err) - if #out == 0 then notify(err, vim.log.levels.WARN); return end - local buf = vim.api.nvim_create_buf(false, true) - vim.api.nvim_buf_set_lines(buf, 0, -1, false, out) - vim.api.nvim_buf_set_option(buf, "modifiable", false) - local width = math.min(100, vim.o.columns - 4) - local height = math.min(20, #out + 2) - vim.api.nvim_open_win(buf, true, { - relative = "editor", - width = width, - height = height, - row = math.floor((vim.o.lines - height) / 2), - col = math.floor((vim.o.columns - width) / 2), - style = "minimal", - border = "rounded", - title = " td report ", - title_pos = "center", - }) - vim.api.nvim_buf_set_keymap(buf, "n", "q", "close", { noremap = true, silent = true }) - vim.api.nvim_buf_set_keymap(buf, "n", "", "close", { noremap = true, silent = true }) - end) -end - -return M From 3ac65e6cccd0c864f3e1ae560cba688560c817ea Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Sun, 10 May 2026 03:42:33 -0400 Subject: [PATCH 10/10] skip obsidian plugin when no workspaces exist Co-Authored-By: Claude Sonnet 4.6 --- lua/plugins/obsidian.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/obsidian.lua b/lua/plugins/obsidian.lua index a0c7051..17d268e 100644 --- a/lua/plugins/obsidian.lua +++ b/lua/plugins/obsidian.lua @@ -20,6 +20,7 @@ return { version = "*", lazy = true, ft = "markdown", + cond = #workspaces > 0, dependencies = { "nvim-lua/plenary.nvim", },