Last active
February 5, 2024 09:03
-
-
Save enzzc/c039c99b2cadf70d0cc4140b9dcdabf6 to your computer and use it in GitHub Desktop.
neovim conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vim.opt.number = true | |
vim.opt.relativenumber = true | |
vim.o.tabstop = 4 | |
vim.o.expandtab = true | |
vim.o.softtabstop = 4 -- Number of spaces inserted instead of a TAB character | |
vim.o.shiftwidth = 4 -- Number of spaces inserted when indenting | |
vim.cmd 'autocmd Filetype javascript setlocal ts=2 sw=2 sts=0 expandtab' | |
vim.cmd 'autocmd Filetype typescript setlocal ts=2 sw=2 sts=0 expandtab' | |
vim.cmd 'autocmd Filetype json setlocal ts=2 sw=2 sts=0 expandtab' | |
vim.cmd 'autocmd Filetype html setlocal ts=2 sw=2 sts=0 expandtab' | |
vim.cmd 'autocmd Filetype xml setlocal ts=2 sw=2 sts=0 expandtab' | |
vim.cmd 'autocmd Filetype lua setlocal ts=2 sw=2 sts=0 expandtab' | |
vim.cmd 'colorscheme badwolf' | |
vim.cmd 'set invlist' | |
vim.cmd 'set ignorecase' | |
vim.cmd 'set smartcase' | |
vim.cmd 'set ff=unix' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment