Adds more modular setup
This commit is contained in:
parent
7633efd06c
commit
d5a8a364dd
5 changed files with 71 additions and 0 deletions
24
lua/custom/zwergius/set.lua
Normal file
24
lua/custom/zwergius/set.lua
Normal 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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue