kickstart.nvim/lua/custom/zwergius/set.lua

38 lines
687 B
Lua
Raw Normal View History

2024-01-23 13:13:03 +01:00
-- Line & relative line numbers
vim.opt.number = true
vim.opt.relativenumber = true
2024-01-24 16:03:22 +01:00
-- no line wrap
vim.opt.wrap = false
2024-01-23 13:13:03 +01:00
-- Indents
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
2024-01-24 16:03:22 +01:00
-- Infinite undo
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
vim.opt.undofile = true
2024-01-23 13:13:03 +01:00
-- Set highlight on search
2024-01-24 16:03:22 +01:00
vim.o.hlsearch = true
2024-01-23 13:13:03 +01:00
vim.opt.incsearch = true
2024-01-24 16:03:22 +01:00
-- Scroll buffer
vim.opt.scrolloff = 8
-- not sure
vim.opt.colorcolumn = '80'
2024-01-23 13:13:03 +01:00
-- Filetype overrides
2024-01-24 11:57:14 +01:00
vim.filetype.add {
2024-01-23 13:13:03 +01:00
extension = {
postcss = 'css',
2024-01-24 11:57:14 +01:00
},
}
2024-01-23 13:13:03 +01:00
-- Autocommand create folder(s) for new file
vim.cmd 'source ~/.config/nvim/vim/auto-mkdir.vim'