fixed mappings

master
Elias Almqvist 4 months ago
parent 7049151967
commit 0d7ea5ee59
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 1
      nix-darwin/home.nix
  2. 15
      nvchad/.config/nvim/lua/chadrc.lua

@ -98,6 +98,7 @@
# haskell # haskell
ghc ghc
haskell-language-server
# rust # rust
rustc rustc

@ -17,7 +17,20 @@ M.ui = {
M.plugins = "plugins" M.plugins = "plugins"
-- check core.mappings for table structure -- Get the mappings
M.mappings = require "mappings" M.mappings = require "mappings"
-- Load the mapping because the devs are retarded and changed it from a good system to a bad one
local function set_mappings(mode, key, value)
local opts = value.opts or {}
opts.desc = value[2]
vim.keymap.set(mode, key, value[1], opts)
end
for mode, mode_mappings in pairs(M.mappings.general) do
for key, mapping in pairs(mode_mappings) do
set_mappings(mode, key, mapping)
end
end
return M return M

Loading…
Cancel
Save