diff --git a/.config/nvim/lua/custom/plugins/fugitive.lua b/.config/nvim/lua/custom/plugins/fugitive.lua index a5f2417b..5086d3cd 100644 --- a/.config/nvim/lua/custom/plugins/fugitive.lua +++ b/.config/nvim/lua/custom/plugins/fugitive.lua @@ -1,5 +1,16 @@ +-- Global (non-buffer) fugitive mappings vim.keymap.set('n', 'gs', vim.cmd.Git, { desc = '[fugitive] status' }) vim.keymap.set("n", "gb", ":Git blame", { silent = true, desc = "[fugitive] blame" }) +vim.keymap.set("n", "gB", ":GBrowse", { silent = true, desc = "[G]it [B]rowse current file/line" }) +vim.api.nvim_create_user_command( + "Browse", + function(opts) + local current_row = vim.fn.line(".") + local current_col = vim.fn.col(".") + local cmd = [[!open -u "]] .. opts.args .. [[\#L]] .. current_row .. [[:]] .. current_col .. [["]] + vim.cmd(cmd, { silent = true }) + end, + { nargs = 1, force = true }) local casraf_fugitive = vim.api.nvim_create_augroup("casraf_fugitive", {}) diff --git a/.config/nvim/lua/custom/plugins/lsp.lua b/.config/nvim/lua/custom/plugins/lsp.lua index ac103489..a9952463 100644 --- a/.config/nvim/lua/custom/plugins/lsp.lua +++ b/.config/nvim/lua/custom/plugins/lsp.lua @@ -1,4 +1,4 @@ -vim.keymap.set("n", "lr", ":LspRestart", { desc = "[R]estart [L]SP" }) +vim.keymap.set("n", "lr", ":LspRestart", { desc = "[L]SP [R]estart" }) -- [[ Configure LSP ]] -- This function gets run when an LSP connects to a particular buffer. local on_attach = function(_, bufnr) diff --git a/.config/wezterm/wezterm.lua b/.config/wezterm/wezterm.lua index 13a3cab3..d7e28c27 100644 --- a/.config/wezterm/wezterm.lua +++ b/.config/wezterm/wezterm.lua @@ -26,7 +26,7 @@ end ]] -- This is where you actually apply your config choices config.font = wezterm.font_with_fallback({ - { family = "MesloLGS Nerd Font", weight = "Medium", harfbuzz_features = { 'zero' } }, + { family = "MesloLGS Nerd Font", weight = "Medium" }, { family = "FiraCode Nerd Font", weight = "Medium", harfbuzz_features = { 'zero' } },