-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
59 lines (45 loc) · 1.39 KB
/
init.lua
File metadata and controls
59 lines (45 loc) · 1.39 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
59
-- Make sure to setup `mapleader` and `maplocalleader` before
-- The mapleader is the first key to press for custom keybinds (default is \, now it's 'space')
vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
-- Lazy plugin manager loader (leader is defined there)
require("config.lazy")
-- Handles custom keybinds.
require("config.keymaps")
-- Colorscheme
vim.cmd.colorscheme "tokyonight-night"
-- Numbers on the side
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.cursorline = true
-- Tabulation config
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.softtabstop = 4
vim.opt.smarttab = true
vim.opt.expandtab = true
vim.opt.autoindent = true
-- Colors the column on the right
vim.opt.colorcolumn = "80"
-- Makes the mouse usable in nvim
vim.opt.mouse = 'a'
-- Vsplit now opens on the right
vim.opt.splitright = true
-- Settings needed for the tree which disables nvim default tree
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- Allows 24bit rgb colors
vim.opt.termguicolors = true
-- Makes line wrapping respect the indentation
vim.opt.wrap = true
vim.opt.linebreak = true
vim.opt.breakindent = true
--vim.opt.breakindentopt = { "shift:2" }
-- Space between cursor and bottom+side of screen
vim.o.scrolloff = 8
vim.o.sidescrolloff = 8
-- Case insensitive search + case sensitive if capital letter
vim.o.ignorecase = true
vim.o.smartcase = true
-- User setup
require('config.local')