feat: NvChad binds

laptop
Elias Almqvist 10 months ago
parent 63d009ea2c
commit f0572acb27
No known key found for this signature in database
GPG Key ID: E31A99CE3E75A158
  1. 5
      nvchad/.config/nvim/lua/custom/configs/conform.lua
  2. 9
      nvchad/.config/nvim/lua/custom/mappings.lua

@ -8,10 +8,15 @@ local options = {
-- Web Dev shit
javascript = { "prettier" },
typescript = { "prettier" },
javascriptreact = { "prettier" },
typescriptreact = { "prettier" },
css = { "prettier" },
scss = { "prettier" },
html = { "prettier" },
-- Data Science & AI stuff
python = { "black" },
sh = { "shfmt" },
},

@ -11,12 +11,17 @@ M.general = {
require("conform").format()
end,
"formatting",
}
},
},
v = {
[">"] = { ">gv", "indent" },
},
s = {
-- Move up and down when selected
["J"] = { ":m '>+1<CR>gv=gv" },
["K"] = { ":m '<-2<CR>gv=gv" },
},
}
-- more keybinds!

Loading…
Cancel
Save