(nvim) nvim v0.12 migration
This commit is contained in:
parent
f0db0ada98
commit
7b2eb8c525
51 changed files with 1629 additions and 1627 deletions
51
nvim/lua/options.lua
Normal file
51
nvim/lua/options.lua
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
vim.opt.number = true -- show line number
|
||||
vim.opt.relativenumber = true -- juicy relativity
|
||||
|
||||
vim.opt.autoindent = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.smarttab = true
|
||||
vim.opt.breakindent = true
|
||||
|
||||
vim.opt.wrap = false -- bad, stay away from me!
|
||||
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true -- highlight search pattern as you type
|
||||
|
||||
vim.opt.scrolloff = 12 -- give me some personal space
|
||||
|
||||
vim.opt.updatetime = 50
|
||||
|
||||
vim.opt.ignorecase = true -- case-insensitive search
|
||||
|
||||
vim.opt.backspace = { "start", "eol", "indent" }
|
||||
|
||||
-- don't want to look into these...
|
||||
vim.opt.wildignore:append({ "*/node_modules/*", "*/__pycache__/*", "*/vendor/*" })
|
||||
|
||||
-- add '*' in block comments
|
||||
vim.opt.formatoptions:append({ "r" })
|
||||
|
||||
-- theme
|
||||
vim.opt.winblend = 0
|
||||
vim.opt.wildoptions = "pum" -- show popup for autocomplete
|
||||
vim.opt.pumblend = 5
|
||||
vim.opt.background = "dark"
|
||||
vim.opt.termguicolors = true -- good shit, just take it
|
||||
|
||||
-- activate persistent undo
|
||||
vim.opt.undofile = true
|
||||
|
||||
vim.opt.completeopt = "menu,menuone,noselect"
|
||||
|
||||
vim.opt.breakindent = true
|
||||
|
||||
vim.opt.cursorline = true
|
||||
|
||||
vim.g.have_nerd_font = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue