26 lines
423 B
Lua
26 lines
423 B
Lua
vim.g.mapleader = " "
|
|
|
|
vim.opt.shiftwidth = 4
|
|
vim.opt.expandtab = true
|
|
|
|
vim.opt.undofile = true
|
|
|
|
vim.opt.signcolumn = "yes"
|
|
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.hlsearch = false
|
|
vim.opt.incsearch = true
|
|
|
|
vim.opt.scrolloff = 8
|
|
|
|
vim.opt.exrc = true
|
|
|
|
vim.api.nvim_create_autocmd('FileType', {
|
|
pattern = 'cpp',
|
|
callback = function() vim.bo.commentstring = '// %s' end
|
|
})
|
|
|
|
vim.opt.cmdheight = 0
|