Skip to content

Commit

Permalink
feat(mappings)!: make <Leader>uc and <Leader>uC toggle buffer/glo…
Browse files Browse the repository at this point in the history
…bal cmp and move colorizer toggle to `<Leader>uz`
  • Loading branch information
mehalter committed Apr 1, 2024
1 parent 815ee79 commit cfa1962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lua/astronvim/plugins/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ return {
"AstroNvim/astrocore",
opts = function(_, opts)
local maps = opts.mappings
maps.n["<Leader>uc"] = { function() require("astrocore.toggles").cmp() end, desc = "Toggle autocompletion" }
maps.n["<Leader>uc"] =
{ function() require("astrocore.toggles").buffer_cmp() end, desc = "Toggle autocompletion (buffer)" }
maps.n["<Leader>uC"] =
{ function() require("astrocore.toggles").cmp() end, desc = "Toggle autocompletion (global)" }
end,
},
"saadparwaiz1/cmp_luasnip",
Expand Down
2 changes: 1 addition & 1 deletion lua/astronvim/plugins/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ return {
"AstroNvim/astrocore",
opts = function(_, opts)
local maps = opts.mappings
maps.n["<Leader>uC"] = { "<Cmd>ColorizerToggle<CR>", desc = "Toggle color highlight" }
maps.n["<Leader>uz"] = { "<Cmd>ColorizerToggle<CR>", desc = "Toggle color highlight" }
end,
},
},
Expand Down

0 comments on commit cfa1962

Please sign in to comment.