2021-02-23 11:27:32 +00:00
|
|
|
local opt = vim.opt
|
|
|
|
|
2021-12-02 15:12:10 +00:00
|
|
|
opt.wildignore = "__pycache__"
|
2022-04-28 13:53:54 +00:00
|
|
|
opt.wildignore = opt.wildignore + { "*.o", "*~", "*.pyc", "*pycache*" }
|
2021-02-23 11:27:32 +00:00
|
|
|
|
|
|
|
-- Indentation config
|
|
|
|
opt.tabstop = 2
|
|
|
|
opt.tabstop = 2
|
|
|
|
opt.shiftwidth = 2
|
|
|
|
opt.autoindent = true
|
|
|
|
|
|
|
|
-- Line numbers
|
|
|
|
opt.number = true
|
|
|
|
opt.relativenumber = true
|
|
|
|
|
|
|
|
-- Misc
|
2021-12-02 15:12:10 +00:00
|
|
|
opt.backspace = "indent,eol,start" -- Allow backspacing over everything in insert mode
|
2021-02-23 11:27:32 +00:00
|
|
|
opt.ttimeoutlen = 50
|
|
|
|
opt.backup = false -- do not keep a backup file, use versions instead
|
|
|
|
opt.history = 50 -- Keep 50 lines of command line history
|
|
|
|
opt.ruler = true -- Show the cursor position all the time
|
|
|
|
opt.laststatus = 2 -- Always display the status line
|
|
|
|
opt.swapfile = false -- Disable swapfile
|
|
|
|
opt.undofile = true -- Enable undofile (auto supported in NeoVim)
|
|
|
|
opt.showcmd = true -- Display incomplete commands
|
|
|
|
opt.incsearch = true -- Do incremental searching
|
|
|
|
opt.autoread = true -- Reload files changed outside
|
|
|
|
opt.hidden = true -- Allow leaving unsaved buffers
|
2021-12-02 15:12:10 +00:00
|
|
|
opt.inccommand = "nosplit" -- Enable live preview of text replacement
|
2021-02-23 11:27:32 +00:00
|
|
|
opt.hlsearch = true
|
2021-12-02 15:12:10 +00:00
|
|
|
opt.mouse = "a"
|
2021-02-23 11:27:32 +00:00
|
|
|
|
|
|
|
opt.encoding = "utf-8"
|