-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
77 lines (69 loc) · 1.86 KB
/
init.lua
File metadata and controls
77 lines (69 loc) · 1.86 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
-- Set <space> as the leader key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.o.termguicolors = true
---@diagnostic disable-next-line: lowercase-global
diagnostics = { disable = { 'missing-fields' } }
-- Install lazy.nvim
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
}
end
---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
-- [[ Custom plugins ]]
-- [[ todoComments ]]
-- [[ bufferline ]]
-- [[ autoformat ]]
-- [[ treesitter ]]
-- [[ colorizer ]]
-- [[ telescope ]]
-- [[ gitsigns ]]
-- [[ nvim-cmp ]]
-- [[ lualine ]]
-- [[ dadbod ]]
-- [[ noice ]]
-- [[ alpha ]]
-- [[ theme ]]
-- [[ init ]]
-- [[ lsp ]]
-- [[ oil ]]
require('lazy').setup({
import = 'custom.plugins',
change_detection = { notify = false },
performance = {
cache = {
enabled = true,
},
reset_packpath = true, -- reset the package path to improve startup time
rtp = {
reset = true, -- reset the runtime path to $VIMRUNTIME and your config directory
---@type string[]
paths = {}, -- add any custom paths here that you want to includes in the rtp
---@type string[] list any plugins you want to disable here
},
},
})
-- [[ Setting options ]]
-- [[ options ]]
-- [[ Keymaps ]]
require 'custom.setting'
-- [[ Custome theming ]]
-- [[ telescope ]]
-- [[ lueline ]]
-- [[ noice ]]
-- [[ folds ]]
require 'custom.theme'
-- [[ Custome auto cmds ]]
-- [[ sql comment string ]]
-- [[ Highlight on yank ]]
require 'custom.autocmd'
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et