-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
45 lines (34 loc) · 983 Bytes
/
init.lua
File metadata and controls
45 lines (34 loc) · 983 Bytes
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
-- Load plugin and configuration modules
require('config.lazy')
-- Options
local opt = vim.opt
-- Clipboard support
opt.clipboard = "unnamedplus"
-- Splits
opt.splitbelow = true
opt.splitright = true
-- Line numbers
opt.relativenumber = true
opt.number = true
-- Tabs and indentation
opt.expandtab = true
opt.softtabstop = 2
opt.shiftwidth = 2
opt.tabstop = 4
-- Color column at 88 chars
opt.colorcolumn = "88"
-- Syntax highlighting
vim.cmd("syntax on")
-- Folding
opt.foldcolumn = "2"
opt.foldlevelstart = 99
-- Key mappings
local map = vim.keymap.set
-- Easy split movements
map('n', '<C-J>', '<C-W><C-J>', { noremap = true, silent = true })
map('n', '<C-K>', '<C-W><C-K>', { noremap = true, silent = true })
map('n', '<C-L>', '<C-W><C-L>', { noremap = true, silent = true })
map('n', '<C-H>', '<C-W><C-H>', { noremap = true, silent = true })
-- Tab navigation
map('n', '<leader>l', ':tabn<CR>', { silent = true })
map('n', '<leader>h', ':tabp<CR>', { silent = true })