feat: Move nvchad config to ulic-youthlic/nvchad-starter
This commit is contained in:
parent
8de70ee867
commit
9c59296b24
12 changed files with 11 additions and 356 deletions
|
|
@ -1,32 +0,0 @@
|
|||
require "nvchad.mappings"
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
map("n", "<M-x>", ":", { desc = "CMD enter command mode" })
|
||||
map("n", "<leader>ti", function()
|
||||
local is_enabled = vim.lsp.inlay_hint.is_enabled()
|
||||
if is_enabled then
|
||||
vim.lsp.inlay_hint.enable(false)
|
||||
else
|
||||
vim.lsp.inlay_hint.enable(true)
|
||||
end
|
||||
end, { desc = "Toggle lsp inlay hint" })
|
||||
|
||||
map({ "n", "v" }, "j", "gj")
|
||||
map({ "n", "v" }, "k", "gk")
|
||||
map({ "n", "v" }, "gj", "j")
|
||||
map({ "n", "v" }, "gk", "k")
|
||||
map({ "n", "v" }, "<C-h>", "<cmd>Telescope help_tags<CR>", { desc = "telescope help page" })
|
||||
map("i", "<C-d>", "<BS>", { desc = "backspace" })
|
||||
map({ "n", "v" }, "<leader>tm", function()
|
||||
local image_api = require("image")
|
||||
local is_enabled = image_api.is_enabled()
|
||||
if is_enabled then
|
||||
image_api.disable()
|
||||
else
|
||||
image_api.enable()
|
||||
end
|
||||
end, { desc = "Toggle image.nvim" })
|
||||
map("n", "gh", "0")
|
||||
map("n", "gl", "$")
|
||||
map("n", "gs", "^")
|
||||
Loading…
Add table
Add a link
Reference in a new issue