diff --git a/init.lua b/init.lua index 78833cd..5168f0c 100644 --- a/init.lua +++ b/init.lua @@ -243,14 +243,14 @@ local config = { -- Taglist ["fT"] = { "TlistToggle", desc = "Tagbar toggle " }, -- Trouble - ["ft"] = { name = "trouble" }, + -- ["ft"] = { name = "Trouble" }, ["ftx"] = { "TroubleToggle", desc = "Toggle Trouble" }, ["ftw"] = { "TroubleToggle workspace_diagnostics", desc = "Workspace diagnostics" }, ["ftd"] = { "TroubleToggle document_diagnostics", desc = "Document diagnostics" }, ["ftq"] = { "TroubleToggle quickfix", desc = "Quickfix" }, ["ftl"] = { "TroubleToggle loclist", desc = "Loc List" }, ["ftR"] = { "TroubleToggle lsp_references", desc = "Lsp references" }, - ["ftt"] = { "TodoTrouble", desc = "Todo Trouble" }, + ["ftt"] = { "TroubleToggle", desc = "Todo Trouble" }, -- Autosave [""] = { "ASToggle", desc = "Toggle autosave" }, ["fs"] = { "ASToggle", desc = "Toggle autosave" }, @@ -259,7 +259,7 @@ local config = { }, v = { -- Carbon code sharing - ["c"] = { ":CarbonNow", desc = "Share code on Carbon", silent = true }, + ["s"] = { ":CarbonNow", desc = "Share code on Carbon", silent = true }, }, t = { -- setting a mapping to false will disable it @@ -329,17 +329,19 @@ local config = { -- end, -- }, -- By adding to the which-key config and using our helper function you can add more which-key registered bindings - -- { - -- "folke/which-key.nvim", - -- config = function(plugin, opts) - -- require "plugins.configs.which-key"(plugin, opts) - -- -- Add bindings which show up as group name - -- local wk = require "which-key" - -- wk.register({ - -- b = { name = "Buffer" }, - -- }, { mode = "n", prefix = "" }) - -- end, - -- }, + { + "folke/which-key.nvim", + config = function(plugin, opts) + require "plugins.configs.which-key"(plugin, opts) + -- Add bindings which show up as group name + local wk = require "which-key" + wk.register({ + m = { name = "Markdown" }, + ft = { name = "Trouble" }, + b = { name = "Buffers" }, + }, { mode = "n", prefix = "" }) + end, + }, -- { @@ -366,7 +368,6 @@ local config = { opts.experimental = { ghost_text = false -- this feature conflict with copilot.vim's preview. } - -- return the new table to be used return opts end, @@ -376,7 +377,10 @@ local config = { -- Add plugins, the lazy syntax -- Plugins for other plugins - { "tyru/open-browser.vim", cmd = { "OPenBrowser", "OpenBrowserSearch", "OpenBrowserSmartSearch" } }, + { + "tyru/open-browser.vim", + cmd = { "OPenBrowser", "OpenBrowserSearch", "OpenBrowserSmartSearch" } + }, --Social { @@ -386,6 +390,24 @@ local config = { { "ellisonleao/carbon-now.nvim", cmd = "CarbonNow", + opts = { + base_url = "https://carbon.now.sh/", + open_cmd = "xdg-open", + options = { + theme = "night-owl", + window_theme = "none", + font_family = "Hack", + font_size = "18px", + bg = "gray", + line_numbers = true, + line_height = "133%", + drop_shadow = false, + drop_shadow_offset_y = "20px", + drop_shadow_blur = "68px", + width = "680", + watermark = false, + }, + } }, -- Comments