-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
47 lines (44 loc) · 1.09 KB
/
init.lua
File metadata and controls
47 lines (44 loc) · 1.09 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
--neovim config
vim.opt.shiftwidth = 2 -- indentation width
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.expandtab = true
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.clipboard = "unnamedplus" -- sync with system clipboard
vim.opt.wrap = false --disable wrap by default
vim.opt.undofile = true -- enable infinite undo
vim.opt.number = true -- absolute line numbers
vim.opt.relativenumber = true -- relative line numbers
vim.opt.ignorecase = true
vim.opt.smartcase = true
-- diagnostics / visual settings
vim.diagnostic.config({
virtual_text = {
prefix = "●", -- or "▎", "▶", etc
spacing = 4,
},
virtual_lines = false,
signs = true,
underline = true,
update_in_insert = false,
severity_sort = true,
})
-- settings for all lsp servers
vim.lsp.config("*", {
root_markers = { ".git", "go.mod" }, -- tweak as needed
capabilities = {
textDocument = {
semanticTokens = {
multilineTokenSupport = true
},
completion = {
completionItem = {
snippetSupport = true
}
}
}
},
})
--load plugins
require("config.lazy")