Skip to content

Commit 3d86444

Browse files
author
hoapham2k2
committedJan 6, 2025
update nvim using mini.ai
1 parent aa231b1 commit 3d86444

File tree

3 files changed

+49
-58
lines changed

3 files changed

+49
-58
lines changed
 

‎lazy-lock.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
{
2-
"LuaSnip": { "branch": "master", "commit": "33b06d72d220aa56a7ce80a0dd6f06c70cd82b9d" },
2+
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
33
"cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" },
44
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
55
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
6-
"conform.nvim": { "branch": "master", "commit": "339b3e4519ec49312d34fcfa275aa15bfaa67025" },
6+
"conform.nvim": { "branch": "master", "commit": "70019124aa4f2e6838be9fbd2007f6d13b27a96d" },
77
"copilot.vim": { "branch": "release", "commit": "87038123804796ca7af20d1b71c3428d858a9124" },
88
"fidget.nvim": { "branch": "main", "commit": "9238947645ce17d96f30842e61ba81147185b657" },
99
"harpoon": { "branch": "harpoon2", "commit": "a84ab829eaf3678b586609888ef52f7779102263" },
10-
"kanagawa.nvim": { "branch": "master", "commit": "2d54b56242a6f03c74864d118d61afa1acb5918e" },
11-
"lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" },
10+
"kanagawa.nvim": { "branch": "master", "commit": "18ae5771b22d8f913ef541c827a8180b4cb12c8a" },
11+
"lazy.nvim": { "branch": "main", "commit": "72aa3a2624be5dc240646084f7b6a38eb99eb2ce" },
1212
"lazydev.nvim": { "branch": "main", "commit": "8620f82ee3f59ff2187647167b6b47387a13a018" },
13-
"mason-lspconfig.nvim": { "branch": "main", "commit": "2daa8921b7afdcfa47419a21ea343c3df6d74fa0" },
13+
"mason-lspconfig.nvim": { "branch": "main", "commit": "97d9f1d3ad205dece6bcafd1d71cf1507608f3c7" },
1414
"mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" },
1515
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
16-
"mini.nvim": { "branch": "main", "commit": "2011aff270bcd3e1f3ad088253ace2d574967bed" },
17-
"nvim-cmp": { "branch": "main", "commit": "b555203ce4bd7ff6192e759af3362f9d217e8c89" },
18-
"nvim-lspconfig": { "branch": "master", "commit": "c580f34bc5fdca8aaf737a9ab8a5d775cb940e57" },
19-
"nvim-treesitter": { "branch": "master", "commit": "b4897f5a8453e7efeafb21ff5b2bbdc2e3faf1bd" },
20-
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "4916fa12e5b28d21a1f031f0bdd10aa15a75d85d" },
16+
"mini.nvim": { "branch": "main", "commit": "b1af49d98233180c6045e81f4aef5b663d032b62" },
17+
"nvim-cmp": { "branch": "main", "commit": "4c1ca8268569bfc6d487473cd17b167560e5bed2" },
18+
"nvim-lspconfig": { "branch": "master", "commit": "8121483b8132b7053120fafd83728178fb3febf6" },
19+
"nvim-treesitter": { "branch": "master", "commit": "958af94dd8d74071c72c9d6840b41d06ea436b2f" },
20+
"omnisharp-extended-lsp.nvim": { "branch": "main", "commit": "ec1a2431f8872f650a85ed71c24f0715df2e49c2" },
2121
"plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
22-
"solarized-osaka.nvim": { "branch": "main", "commit": "f4c68cdc5f914b7f2a72fd3e2cb66fb5666870e6" },
22+
"solarized-osaka.nvim": { "branch": "main", "commit": "44d3b9d966a632ff42746cf326c5fa4e2b30bb92" },
2323
"telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" },
2424
"telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
2525
"vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" },
2626
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
27-
"which-key.nvim": { "branch": "main", "commit": "8ab96b38a2530eacba5be717f52e04601eb59326" }
27+
"which-key.nvim": { "branch": "main", "commit": "1f8d414f61e0b05958c342df9b6a4c89ce268766" }
2828
}

‎lua/init_lazy.lua

+13-35
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,21 @@
11
-- Bootstrap lazy.nvim
2-
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2+
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
33
if not (vim.uv or vim.loop).fs_stat(lazypath) then
4-
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
5-
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
6-
if vim.v.shell_error ~= 0 then
7-
vim.api.nvim_echo({
8-
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
9-
{ out, "WarningMsg" },
10-
{ "\nPress any key to exit..." },
11-
}, true, {})
12-
vim.fn.getchar()
13-
os.exit(1)
14-
end
4+
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
5+
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
6+
if vim.v.shell_error ~= 0 then
7+
vim.api.nvim_echo({
8+
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
9+
{ out, "WarningMsg" },
10+
{ "\nPress any key to exit..." },
11+
}, true, {})
12+
vim.fn.getchar()
13+
os.exit(1)
14+
end
1515
end
1616
-- Put lazy into runtimepath for neovim to load it
1717
vim.opt.rtp:prepend(lazypath)
1818

1919
require("lazy").setup({
20-
-- { import = "plugins.vim-sleuth" },
21-
-- { import = "plugins.gitsigns" },
22-
-- { import = "plugins.which-key" },
23-
-- { import = "plugins.telescope" },
24-
--
25-
-- { import = "plugins.lsp" },
26-
--
27-
-- { import = "plugins.autoformat" },
28-
--
29-
-- { import = "plugins.autocompletion" },
30-
--
31-
-- { import = "plugins.todo-comments" },
32-
--
33-
-- { import = "plugins.mini" },
34-
--
35-
-- { import = "plugins.tree-sitter" },
36-
--
37-
-- { import = "plugins.copilot" },
38-
--
39-
-- { import = "plugins.colors" },
40-
--
41-
-- { import = "plugins.dap" },
42-
{ import = "plugins" },
20+
{ import = "plugins" },
4321
})

‎lua/plugins/mini.lua

+24-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1-
return {
2-
"echasnovski/mini.nvim",
3-
config = function()
4-
require("mini.ai").setup({ n_lines = 500 })
5-
require("mini.surround").setup()
6-
local statusline = require("mini.statusline")
7-
statusline.setup({ use_icons = false })
8-
statusline.section_location = function()
9-
return "%2l:%-2v"
10-
end
11-
end,
1+
return {
2+
"echasnovski/mini.nvim",
3+
version = false,
4+
config = function()
5+
require("mini.ai").setup()
6+
require("mini.diff").setup()
7+
require("mini.surround").setup()
8+
require("mini.animate").setup()
9+
require("mini.completion").setup()
10+
11+
local hipatterns = require("mini.hipatterns")
12+
hipatterns.setup({
13+
highlighters = {
14+
-- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE'
15+
fixme = { pattern = "%f[%w]()FIXME()%f[%W]", group = "MiniHipatternsFixme" },
16+
hack = { pattern = "%f[%w]()HACK()%f[%W]", group = "MiniHipatternsHack" },
17+
todo = { pattern = "%f[%w]()TODO()%f[%W]", group = "MiniHipatternsTodo" },
18+
note = { pattern = "%f[%w]()NOTE()%f[%W]", group = "MiniHipatternsNote" },
19+
20+
-- Highlight hex color strings (`#rrggbb` like `#123456`)) using that color
21+
hex_color = hipatterns.gen_highlighter.hex_color(),
22+
},
23+
})
24+
end,
1225
}

0 commit comments

Comments
 (0)
Please sign in to comment.