set tab size for json files

This commit is contained in:
Salar Rahmanian 2024-09-21 20:18:55 -07:00
parent 96dad8d803
commit 1949d31e98

View file

@ -88,6 +88,16 @@ else
pattern = "*",
})
-- sets the tab size for json files
vim.api.nvim_create_autocmd("FileType", {
pattern = "json",
callback = function()
vim.bo.tabstop = 2
vim.bo.shiftwidth = 2
vim.bo.expandtab = true
end,
})
-- Terminal Escape Key Mapping
vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]])