-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoptions.lua
More file actions
58 lines (46 loc) · 1.44 KB
/
Copy pathoptions.lua
File metadata and controls
58 lines (46 loc) · 1.44 KB
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
vim.g.netrw_banner = 0
vim.opt.nu = true
vim.opt.relativenumber = false
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.wrap = false
vim.opt.smartindent = true
vim.opt.inccommand = "split"
vim.opt.splitbelow = true
vim.opt.splitright = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.laststatus = 3
vim.opt.showmode = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = vim.fn.stdpath("data") .. "/undodir"
vim.opt.undofile = true
vim.opt.clipboard:append("unnamedplus")
vim.opt.isfname:append("@-@")
-- vim.opt.guicursor = ""
vim.opt.scrolloff = 8
vim.opt.signcolumn = "yes"
vim.opt.termguicolors = true
vim.opt.completeopt = { 'menuone', 'noselect', 'fuzzy', 'nosort' }
vim.diagnostic.config({
virtual_text = true, -- Shows errors inline next to the code
signs = false, -- Shows icons in the gutter (sign column)
underline = true, -- Underlines the problematic code
update_in_insert = false, -- Updates diagnostics while typing
})
-- vim.opt.list = true
-- vim.opt.listchars:append { leadmultispace = "│ ", tab = "│ " }
vim.api.nvim_create_autocmd("ColorScheme", {
callback = function()
vim.api.nvim_set_hl(0, "MatchParen", { underline = false, bg = "#555555", fg = "#FFFFFF" })
end,
})
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking text",
callback = function()
vim.hl.on_yank()
end,
})