Add settings for spacings
This commit is contained in:
parent
2c600d25a9
commit
fd4bdb895b
1 changed files with 31 additions and 0 deletions
|
@ -92,6 +92,37 @@ vim.o.splitright = true
|
|||
vim.o.splitbelow = true
|
||||
vim.o.scrolloff = 10
|
||||
|
||||
-- Tab Settings
|
||||
vim.o.tabstop = 4
|
||||
vim.o.softtabstop = 0
|
||||
vim.o.expandtab = true
|
||||
vim.o.shiftwidth = 4
|
||||
vim.o.smarttab = true
|
||||
|
||||
vim.api.nvim_create_autocmd(
|
||||
{ "FileType" },
|
||||
{
|
||||
pattern = {
|
||||
"html",
|
||||
"css",
|
||||
"javascript",
|
||||
"typescript",
|
||||
"vue",
|
||||
},
|
||||
command = "setlocal shiftwidth=2",
|
||||
}
|
||||
)
|
||||
|
||||
vim.api.nvim_create_autocmd(
|
||||
{ "FileType" },
|
||||
{
|
||||
pattern = {
|
||||
"go",
|
||||
},
|
||||
command = "setlocal noexpandtab"
|
||||
}
|
||||
)
|
||||
|
||||
-- General Keymaps
|
||||
vim.keymap.set('t', '<ESC>', '<C-\\><C-n>')
|
||||
vim.keymap.set('n', '<leader>t', ':TestNearest<CR>')
|
||||
|
|
Loading…
Reference in a new issue