Skip to content

Instantly share code, notes, and snippets.

@enzzc
Last active February 5, 2024 09:03
Show Gist options
  • Save enzzc/c039c99b2cadf70d0cc4140b9dcdabf6 to your computer and use it in GitHub Desktop.
Save enzzc/c039c99b2cadf70d0cc4140b9dcdabf6 to your computer and use it in GitHub Desktop.
neovim conf
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