-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.lua
64 lines (53 loc) · 2.24 KB
/
settings.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
vim.opt.breakindent = true
vim.opt.clipboard = "unnamedplus" -- Use system clipboard
vim.opt.conceallevel = 0 -- Hide * markup for bold and italic, but not markers with substitutions
vim.opt.grepprg = "rg --vimgrep --hidden --ignore-vcs --ignore-global --iglob !.git/*" -- Search hidden files
vim.opt.mouse = "" -- Disallow mouse events
vim.opt.showmode = false -- Do not show mode, it's already in status line
vim.opt.smartindent = true -- Insert indents automatically
vim.opt.spelllang = "" -- No spellcheck
vim.opt.swapfile = false -- No swap files
vim.opt.termguicolors = true -- Use term GUI colors (needed for notifications)
vim.opt.updatetime = 250 -- Reduce updatetime
vim.opt.virtualedit = "block" -- Allow cursor to move where there is no text in visual block mode
vim.opt.wildmode = "longest:full,full" -- Command-line completion mode
vim.opt.wrap = false -- Do not break words
vim.opt.linebreak = false -- Do not break lines
-- History, 'X,<Y,sZ, where:
-- X: Saves marks for up to X files
-- Y: Saves up to Y lines of command history
-- Z: Saves up to Z old files
vim.g.shada = "'100,<50,s1000"
-- Globals
vim.g.have_nerd_font = true -- Use nerd font icons
-- Nice popups
vim.opt.pumblend = 10 -- Popup blend
vim.opt.winblend = 10 -- Window blend
vim.opt.pumheight = 10 -- Maximum number of entries in a popup
-- Beautiful gutter
vim.opt.number = false
vim.opt.relativenumber = false
vim.opt.signcolumn = "yes"
-- Default split position
vim.opt.splitright = true
vim.opt.splitbelow = true
-- Keep current line visible and in the center of the screen
vim.opt.cursorline = true
vim.opt.scrolloff = 99 -- Keep cursor in the middle of screen
-- Disabled until long file names handling is fixed https://github.com/neovim/neovim/issues/7073
-- Workaround from vim-undodir-file.lua
vim.opt.undofile = true
-- Decrease mapped sequence wait time. Displays which-key popup sooner
vim.opt.timeoutlen = 300
-- Sets how neovim will display certain whitespace characters in the editor.
vim.opt.list = true
vim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }
-- Better search in file
vim.opt.hlsearch = true
vim.opt.inccommand = "split"
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- Enable multiline diagnostics
vim.diagnostic.config({
virtual_lines = true,
})