My user config prefs
1-- [[ Setting options ]]
2-- See `:help vim.opt`
3-- NOTE: You can change these options as you wish!
4-- For more options, you can see `:help option-list`
5
6-- Make line numbers default
7vim.opt.number = true
8-- You can also add relative line numbers, to help with jumping.
9-- Experiment for yourself to see if you like it!
10-- vim.opt.relativenumber = true
11
12-- Enable mouse mode, can be useful for resizing splits for example!
13vim.opt.mouse = 'a'
14
15-- Don't show the mode, since it's already in the status line
16vim.opt.showmode = false
17
18-- Sync clipboard between OS and Neovim.
19-- Schedule the setting after `UiEnter` because it can increase startup-time.
20-- Remove this option if you want your OS clipboard to remain independent.
21-- See `:help 'clipboard'`
22vim.schedule(function()
23 vim.opt.clipboard = 'unnamedplus'
24end)
25
26-- Enable break indent
27vim.opt.breakindent = true
28
29-- Save undo history
30vim.opt.undofile = true
31
32-- Case-insensitive searching UNLESS \C or one or more capital letters in the search term
33vim.opt.ignorecase = true
34vim.opt.smartcase = true
35
36-- Keep signcolumn on by default
37vim.opt.signcolumn = 'yes'
38
39-- Decrease update time
40vim.opt.updatetime = 250
41
42-- Decrease mapped sequence wait time
43vim.opt.timeoutlen = 300
44
45-- Configure how new splits should be opened
46vim.opt.splitright = true
47vim.opt.splitbelow = true
48
49-- Sets how neovim will display certain whitespace characters in the editor.
50-- See `:help 'list'`
51-- and `:help 'listchars'`
52vim.opt.list = true
53vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' }
54
55-- Preview substitutions live, as you type!
56vim.opt.inccommand = 'split'
57
58-- Show which line your cursor is on
59vim.opt.cursorline = true
60
61-- Minimal number of screen lines to keep above and below the cursor.
62vim.opt.scrolloff = 10
63
64-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
65-- instead raise a dialog asking if you wish to save the current file(s)
66-- See `:help 'confirm'`
67vim.opt.confirm = true
68
69-- vim: ts=2 sts=2 sw=2 et