48 lines
1.1 KiB
Lua
48 lines
1.1 KiB
Lua
vim.cmd("let g:netrw_banner = 0")
|
|
|
|
vim.opt.termguicolors = true
|
|
-- sets Vim Option Numberlines to true and then enables relative numberline.
|
|
vim.opt.nu = true
|
|
vim.opt.relativenumber = true
|
|
|
|
-- indentation
|
|
vim.opt.tabstop = 4
|
|
vim.opt.softtabstop = 4
|
|
vim.opt.shiftwidth = 4
|
|
vim.opt.expandtab = true
|
|
vim.opt.smartindent = true
|
|
vim.opt.wrap = false
|
|
|
|
vim.opt.swapfile = false
|
|
vim.opt.backup = false
|
|
vim.opt.undofile = true -- Keeps ability to undo even after quitting nvim
|
|
|
|
|
|
vim.opt.incsearch = true
|
|
vim.opt.inccommand = "split"
|
|
vim.opt.ignorecase = true
|
|
vim.opt.smartcase = true
|
|
|
|
vim.opt.scrolloff = 8
|
|
vim.opt.signcolumn = "yes"
|
|
|
|
vim.opt.backspace = { "start", "eol", "indent" }
|
|
|
|
vim.opt.splitright = true
|
|
vim.opt.splitbelow = true
|
|
|
|
vim.opt.isfname:append("@-@")
|
|
|
|
vim.opt.updatetime = 50
|
|
vim.opt.colorcolumn = "80"
|
|
|
|
-- lets you copy text from NVim into others apps.
|
|
vim.opt.clipboard = "unnamedplus"
|
|
|
|
-- highlights the files you search for.
|
|
vim.opt.hlsearch = true
|
|
|
|
vim.opt.mouse = "a" -- mouse support for all vim modes
|
|
|
|
vim.g.editorconfig = true -- consistent coding styles across editors
|