-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
57 lines (49 loc) · 1.69 KB
/
init.lua
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
-- Your config starts here.
vim.o.foldenable = false
vim.o.completeopt = "menu,menuone,noselect"
vim.o.mouse = "a"
vim.o.history = 1000
vim.o.ruler = true
vim.o.autochdir = true
vim.o.showcmd = true
vim.o.wildmode = "longest,list,full"
vim.o.wildmenu = true
vim.o.termguicolors = true
vim.o.laststatus = 2
vim.o.mousefocus = true
vim.o.shell = "/bin/bash"
vim.o.backspace = "indent,eol,start"
vim.o.number = true
vim.o.tabstop = 4
vim.o.shiftwidth = 4
vim.o.expandtab = true
vim.o.foldmethod = "indent"
vim.g.inccommand = 'split'
vim.g.session_autosave = false
vim.o.background = 'dark'
vim.g.session_autoload = false
vim.g.guifont = 'DejaVuSans Mono:h15'
-- leader key
vim.g.mapleader = " "
vim.g.maplocalleader = ","
-- Important terminal keybinding
vim.cmd [[ tnoremap <Esc> <C-\><C-n> ]]
local path = require('path')
local data_dir = vim.fn.stdpath('data')
vim.o.backupdir = path(data_dir, 'temp', 'backups')
vim.o.directory = path(data_dir, 'temp', 'tmp')
vim.o.undodir = path(data_dir, 'temp', 'undo')
local home = os.getenv('HOME')
-- paths
package.path = package.path .. ';' .. home .. '/.local/share/nvim/luarocks/share/lua/5.1/?.lua'
package.path = package.path .. ';' .. home .. '/.local/share/nvim/luarocks/share/lua/5.1/?/init.lua'
package.path = package.path .. ';' .. home .. '/.local/share/nvim/luarocks/share/lua/5.1/?/?.lua'
package.path = package.path .. ';' .. home .. '/.vdoom.d/lua/?.lua'
package.path = package.path .. ';' .. home .. '/.vdoom.d/lua/?/?.lua'
package.path = package.path .. ';' .. home .. '/.vdoom.d/lua/?/init.lua'
-- cpaths
package.cpath = package.cpath .. ';' .. home .. '/.local/share/nvim/luarocks/share/lua/5.1/?.so'
-- Enable OOP
require 'class'
-- Load doom
require('core')