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 -- Web Dev shit
javascript = { "prettier" }, javascript = { "prettier" },
typescript = { "prettier" }, typescript = { "prettier" },
javascriptreact = { "prettier" },
typescriptreact = { "prettier" },
css = { "prettier" }, css = { "prettier" },
scss = { "prettier" }, scss = { "prettier" },
html = { "prettier" }, html = { "prettier" },
-- Data Science & AI stuff
python = { "black" },
sh = { "shfmt" }, sh = { "shfmt" },
}, },

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

Loading…
Cancel
Save