添加bookmarks插件。

This commit is contained in:
2025-11-22 15:27:08 +08:00
parent ae7aae5daa
commit de936c2d16
4 changed files with 39 additions and 11 deletions

13
lua/plugins/bookmarks.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
'crusj/bookmarks.nvim',
keys = {
{ "<tab><tab>", mode = { "n" } },
},
branch = 'main',
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
require("bookmarks").setup()
require("telescope").load_extension("bookmarks")
end
}

View File

@@ -5,20 +5,30 @@ return {
xml = { "xmlformatter" },
json = { "prettier" },
cfg = { "prettier" },
lua = { "stylua" },
},
formatters = {
xmlformatter = {
command = "xmlformat",
args = {
"--indent", "4", "-"
"--indent",
"4",
"-",
},
stdin = true,
},
prettier = {
prepend_args = {
"--tab-width", "4"
}
}
}
"--tab-width",
"4",
},
},
stylua = {
prepend_args = {
"--indent-width",
"4",
},
},
},
},
}