Adds more modular setup

This commit is contained in:
zwergius 2024-01-23 13:13:03 +01:00
parent 7633efd06c
commit d5a8a364dd
5 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,24 @@
-- Line & relative line numbers
vim.opt.number = true
vim.opt.relativenumber = true
-- Indents
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
-- Set highlight on search
vim.o.hlsearch = false
vim.opt.incsearch = true
-- Filetype overrides
vim.filetype.add({
extension = {
postcss = 'css',
}
})
-- Autocommand create folder(s) for new file
vim.cmd 'source ~/.config/nvim/vim/auto-mkdir.vim'