blob: 629c14db0831f2a317cd10da0fba903b70e6149e (
plain) (
blame)
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
|
-- Editor options extracted from the original init.vim.
-- Load before plugin setup where possible (especially netrw and mapleader).
local opt = vim.opt
local g = vim.g
g.loaded_netrw = 1
g.loaded_netrwPlugin = 1
g.mapleader = ' '
-- Display and navigation.
opt.termguicolors = true
opt.number = true
opt.relativenumber = true
opt.wrap = false
opt.scrolloff = 8
opt.title = true
opt.colorcolumn = '+1'
-- Indentation and text layout.
opt.shiftwidth = 2
opt.tabstop = 2
opt.expandtab = true
opt.textwidth = 80
-- Splits and completion.
opt.splitright = true
opt.splitbelow = true
opt.wildmode = { 'longest', 'list', 'full' }
opt.pumheight = 20
opt.completeopt = { 'menu', 'menuone', 'noselect' }
-- Performance, responsiveness, and matching pairs.
opt.updatetime = 1000
opt.matchpairs:append('<:>')
-- Global configuration for plugins.
g.vsnip_snippet_dir = vim.fn.expand('~/.config/nvim/snippets')
g.vsnip_snippet_dirs = { vim.fn.expand('~/.config/nvim/local/snippets') }
g.jq_highlight_objects = 1
g.jq_highlight_function_calls = 1
|