-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset.lua
More file actions
82 lines (63 loc) · 1.71 KB
/
set.lua
File metadata and controls
82 lines (63 loc) · 1.71 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
vim.opt.guicursor = ""
--vim.opt.cursorline = true
-- Set the default file format to Unix
-- It fixes the messing up files in Windows, yeah I know, it is annoying
-- vim.opt.fileformat = "unix"
-- vim.opt.encoding = "utf-8"
-- vim.opt.fileencoding = "utf-8"
vim.opt.title = true
vim.opt.signcolumn = "yes"
vim.opt.colorcolumn = "81"
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = false
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.breakindent = true
vim.opt.wrap = false
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
vim.opt.sidescrolloff = 4
vim.opt.isfname:append("@-@")
vim.opt.updatetime = 50
vim.opt.timeoutlen = 300
vim.g.mapleader = " "
vim.g.maplocalleader = " "
vim.g.have_nerd_font = true
vim.g.netrw_browse_split = 0
vim.g.netrw_winsize = 34
vim.o.keywordprg = ":help"
vim.o.shell = "zsh"
-- Powershell policies
-- vim.o.shellcmdflag = "-nologo -noprofile -ExecutionPolicy RemoteSigned -command"
-- vim.o.shellxquote = ""
vim.api.nvim_create_autocmd("TermOpen", {
group = vim.api.nvim_create_augroup("custom_term_open", { clear = true }),
callback = function()
vim.opt.nu = false
vim.opt.relativenumber = false
vim.opt.signcolumn = "no"
vim.opt.winhighlight = "Normal:normal"
end,
})
vim.opt.list = true
vim.opt.listchars:append({
multispace = ". ",
tab = "┊ ",
lead = "·",
leadmultispace = "· ",
trail = "~",
extends = ">",
precedes = "<",
nbsp = "+",
})
vim.filetype.add({ extension = { templ = "templ" } })