42 lines
917 B
Lua
42 lines
917 B
Lua
vim.g.mapleader = ' '
|
|
vim.g.maplocalleader = ' '
|
|
|
|
vim.g.have_nerd_font = true
|
|
|
|
vim.opt.number = true
|
|
vim.opt.relativenumber = true
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
|
vim.opt.showmode = false
|
|
|
|
vim.schedule(function()
|
|
vim.opt.clipboard = 'unnamedplus'
|
|
end)
|
|
|
|
vim.opt.breakindent = true
|
|
|
|
-- save undo history
|
|
vim.opt.undofile = true
|
|
|
|
-- Case insensitve search normally
|
|
vim.opt.ignorecase = true
|
|
vim.opt.smartcase = true
|
|
|
|
-- Configure how new splits should be opened
|
|
vim.opt.splitright = true
|
|
vim.opt.splitbelow = true
|
|
|
|
-- highlight current cursor line
|
|
vim.opt.cursorline = true
|
|
|
|
-- Minimal number of screen lines to keep above and below the cursor.
|
|
vim.opt.scrolloff = 10
|
|
|
|
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
|
|
-- instead raise a dialog asking if you wish to save the current file(s)
|
|
-- See `:help 'confirm'`
|
|
vim.opt.confirm = true
|
|
|
|
vim.opt.fillchars:append({ eob = " " })
|
|
|