Skip to content

Commit 67a2188

Browse files
authored
fix(kulala-nvim): fix keymaps config (#1539)
1 parent 9e5d5d3 commit 67a2188

File tree

1 file changed

+12
-9
lines changed
  • lua/astrocommunity/programming-language-support/kulala-nvim

1 file changed

+12
-9
lines changed

lua/astrocommunity/programming-language-support/kulala-nvim/init.lua

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
local prefix = "<Leader>R"
2-
31
return {
42
"mistweaverco/kulala.nvim",
53
ft = { "http", "rest" },
@@ -19,15 +17,20 @@ return {
1917
---@type AstroUIOpts
2018
opts = { icons = { KulalaNvim = "󱜿" } },
2119
},
22-
{
23-
"AstroNvim/astrocore",
24-
opts = function(_, opts)
25-
local maps = opts.mappings
26-
maps.n[prefix] = { desc = require("astroui").get_icon("KulalaNvim", 1, true) .. "KulalaNvim" }
27-
end,
28-
},
2920
},
3021
opts = {
3122
global_keymaps = true,
23+
global_keymaps_prefix = "<leader>R",
24+
lsp = { keymaps = true },
3225
},
26+
config = function(_, opts)
27+
require("kulala").setup(opts)
28+
require("astrocore").setup {
29+
mappings = {
30+
n = {
31+
[opts.global_keymaps_prefix] = { desc = require("astroui").get_icon("KulalaNvim", 1, true) .. "KulalaNvim" },
32+
},
33+
},
34+
}
35+
end,
3336
}

0 commit comments

Comments
 (0)