diff --git a/nvim/lua/plugins/lsp.lua b/nvim/lua/plugins/lsp.lua index 22e3439..a6ee884 100644 --- a/nvim/lua/plugins/lsp.lua +++ b/nvim/lua/plugins/lsp.lua @@ -18,7 +18,7 @@ vim.lsp.enable({ "jsonls", "biome", "sqls", - "roslyn_ls" + -- "roslyn_ls", we use roslyn.nvim plugin instead. }) vim.lsp.on_type_formatting.enable() diff --git a/nvim/lua/plugins/snacks.lua b/nvim/lua/plugins/snacks.lua index 06c7cc2..ba074e4 100644 --- a/nvim/lua/plugins/snacks.lua +++ b/nvim/lua/plugins/snacks.lua @@ -6,6 +6,7 @@ local function git_show(ref) { cmd = "git", args = { "show", "--name-status", "--pretty=tformat:", ref }, + cwd = Snacks.git.get_root(), transform = function(item) item.cwd = git_root item.file = string.sub(item.text, 3) @@ -262,19 +263,19 @@ return { end, { desc = "Grep" }) vim.keymap.set("n", "gl", function() - Snacks.picker.git_log() + Snacks.picker.git_log({cwd = Snacks.git.get_root() }) end, { desc = "Git log" }) vim.keymap.set("n", "gh", function() - Snacks.picker.git_log_file() + Snacks.picker.git_log_file({cwd = Snacks.git.get_root() }) end, { desc = "Git logs buffer" }) vim.keymap.set("n", "gB", function() - Snacks.picker.git_branches() + Snacks.picker.git_branches({cwd = Snacks.git.get_root() }) end, { desc = "Git branches" }) vim.keymap.set("n", "gs", function() - Snacks.picker.git_status() + Snacks.picker.git_status({cwd = Snacks.git.get_root() }) end, { desc = "Git status" }) end, },