set tab size for json files
This commit is contained in:
parent
96dad8d803
commit
1949d31e98
1 changed files with 10 additions and 0 deletions
10
init.lua
10
init.lua
|
@ -88,6 +88,16 @@ else
|
||||||
pattern = "*",
|
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
|
-- Terminal Escape Key Mapping
|
||||||
vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]])
|
vim.keymap.set("t", "<Esc>", [[<C-\><C-n>]])
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue