-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
61 lines (54 loc) · 1.56 KB
/
Copy pathinit.lua
File metadata and controls
61 lines (54 loc) · 1.56 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
-- Profile vim startup
if vim.env.PROF then
-- example for lazy.nvim
-- change this to the correct path for your plugin manager
local snacks = vim.fn.stdpath("data") .. "/lazy/snacks.nvim"
vim.opt.rtp:append(snacks)
require("snacks.profiler").startup({
startup = {
event = "VimEnter", -- stop profiler on this event. Defaults to `VimEnter`
-- event = "UIEnter",
-- event = "VeryLazy",
},
})
end
-- Change leader to space
vim.g.mapleader = ' '
vim.g.maplocalleader = ','
-- vim.o.background = 'dark'
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
-- show line numbers
vim.wo.number = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.softtabstop = 2
vim.opt.smartindent = true
vim.opt.conceallevel = 2
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
vim.opt.foldlevel = 99
vim.opt.foldlevelstart = 99
vim.opt.foldenable = true
require('lazy_setup')
require('maps')
vim.cmd [[colorscheme tokyonight-moon]]
vim.filetype.add {
pattern = {
['openapi.ya?ml'] = 'yaml.openapi',
['.*.?openapi.json'] = 'json.openapi',
['.env.development'] = 'sh',
['.env.development.local'] = 'sh',
['.env.test'] = 'sh',
['.env.production'] = 'sh',
['.env'] = 'sh',
['*.norg'] = 'neorg',
},
}
-- vim.g.calendar_google_calendar = 1
-- vim.g.calendar_google_task = 1
-- vim.cmd("luafile ~/.cache/calendar.vim/credentials.lua")