Repository navigation
Expand file tree
/
Copy pathuser.lua
More file actions
160 lines (157 loc) · 4.1 KB
/
Copy pathuser.lua
File metadata and controls
160 lines (157 loc) · 4.1 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
return {
-- You can also add new plugins here as well:
-- Add plugins, the lazy syntax
-- "andweeb/presence.nvim",
{
"ray-x/lsp_signature.nvim",
event = "BufRead",
config = function()
require("lsp_signature").setup {
bind = true, -- This is mandatory, otherwise border config won't get registered.
handler_opts = {
border = "rounded",
},
}
end,
},
{
"ahmedkhalf/project.nvim",
event = { "vimEnter" },
config = function()
require("project_nvim").setup {
detection_methods = { "pattern" },
patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", ".clang-format" },
}
end,
},
{
"HiPhish/nvim-ts-rainbow2",
event = { "User AstroFile" },
},
{
"ethanholz/nvim-lastplace",
event = "BufReadPost",
config = function()
require("nvim-lastplace").setup {
lastplace_ignore_buftype = { "quickfix", "nofile", "help" },
lastplace_ignore_filetype = { "gitcommit", "gitrebase", "svn", "hgcommit" },
lastplace_open_folds = true,
}
end,
},
{
"windwp/nvim-spectre",
cmd = { "Spectre" },
config = function() require("spectre").setup() end,
},
{
"phaazon/hop.nvim",
lazy = true,
cmd = { "HopWord", "HopLine" },
config = function() require("hop").setup() end,
},
{
"folke/todo-comments.nvim",
event = "BufReadPost",
config = function()
require("todo-comments").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
end,
},
{
"karb94/neoscroll.nvim",
event = "BufReadPost",
config = function() require("neoscroll").setup() end,
},
{
"iamcco/markdown-preview.nvim",
lazy = true,
ft = "markdown",
build = ":call mkdp#util#install()",
},
{
"jghauser/mkdir.nvim",
event = "BufNewFile",
},
{
"lambdalisue/suda.vim",
cmd = { "SudaRead", "SudaWrite" },
},
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
keys = { "ys", "cs", "ds" },
config = function()
require("nvim-surround").setup {
-- Configuration here, or leave empty to use defaults
}
end,
},
{
"gelguy/wilder.nvim",
event = "CmdlineEnter",
config = function()
local wilder = require "wilder"
wilder.setup { modes = { ":", "/", "?" } }
local popupmenu_renderer = wilder.popupmenu_renderer(wilder.popupmenu_border_theme {
border = "rounded",
empty_message = wilder.popupmenu_empty_message_with_spinner(),
highlighter = wilder.basic_highlighter(),
left = {
" ",
wilder.popupmenu_devicons(),
wilder.popupmenu_buffer_flags {
flags = " a + ",
icons = { ["+"] = "", a = "", h = "" },
},
},
right = {
" ",
wilder.popupmenu_scrollbar(),
},
})
local wildmenu_renderer = wilder.wildmenu_renderer {
highlighter = wilder.basic_highlighter(),
separator = " · ",
}
wilder.set_option(
"renderer",
wilder.renderer_mux {
[":"] = popupmenu_renderer,
["/"] = wildmenu_renderer,
substitute = wildmenu_renderer,
}
)
wilder.set_option("pipeline", {
wilder.branch(wilder.cmdline_pipeline(), wilder.search_pipeline()),
})
end,
},
{
"TimUntersberger/neogit",
cmd = { "Neogit" },
dependencies = {
"sindrets/diffview.nvim",
cmd = { "DiffviewOpen", "DiffviewClose", "DiffviewFileHistory" },
config = function()
require("diffview").setup {
enhanced_diff_hl = true,
}
end,
},
config = function()
require("neogit").setup {
integrations = { diffview = true },
disable_commit_confirmation = true,
disable_builtin_notifications = true,
}
end,
},
{
"nvim-telescope/telescope-frecency.nvim",
dependencies = { "kkharji/sqlite.lua" },
},
}