Change theme + disable arrow keys + tab width

main
Gabe Farrell 2 years ago
parent 8e6e367f7a
commit 1a4acf33e8

@ -5,7 +5,7 @@
local M = {} local M = {}
M.ui = { M.ui = {
theme = "yoru", theme = "gatekeeper",
hl_override = { hl_override = {
Comment = { italic = true }, Comment = { italic = true },

@ -4,6 +4,12 @@ require "nvchad.mappings"
local map = vim.keymap.set local map = vim.keymap.set
-- disable arrow keys
map("n", "<Up>", "<nop>")
map("n", "<Down>", "<nop>")
map("n", "<Left>", "<nop>")
map("n", "<Right>", "<nop>")
map("n", ";", ":", { desc = "CMD enter command mode" }) map("n", ";", ":", { desc = "CMD enter command mode" })
map("i", "jk", "<ESC>") map("i", "jk", "<ESC>")

@ -3,6 +3,10 @@ require "nvchad.options"
-- add yours here! -- add yours here!
vim.opt.mouse = "" vim.opt.mouse = ""
-- tabsize
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, { vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
once = true, once = true,
callback = function() callback = function()

Loading…
Cancel
Save