This commit is contained in:
Zelong Kuang
2025-10-17 20:03:30 +11:00
parent 68da8f5a24
commit 8c11269da8
20 changed files with 131 additions and 211 deletions

View File

@@ -7,8 +7,16 @@ return {
-- compat = { "avante_commands", "avante_mentions", "avante_files" },
-- },
keymap = {
["<C-j>"] = { "select_next", "fallback" },
["<C-k>"] = { "select_prev", "fallback" },
preset = "default",
["<C-space>"] = { "show", "show_documentation", "hide_documentation" },
["<C-e>"] = { "hide", "fallback" },
["<Up>"] = { "select_prev", "fallback" },
["<Down>"] = { "select_next", "fallback" },
["<C-p>"] = { "select_prev", "fallback" },
["<C-n>"] = { "select_next", "fallback" },
["<C-b>"] = { "scroll_documentation_up", "fallback" },
["<C-f>"] = { "scroll_documentation_down", "fallback" },
["<Enter>"] = { "accept", "fallback" },
},
completion = {
menu = { border = "single" },

View File

@@ -6,7 +6,6 @@ return {
["jsonc"] = { "jq" },
["tex"] = { "latexindent" },
["toml"] = { "taplo "},
["typst"] = { 'typstyle' },
["markdown"] = { 'prettierd', "cbfmt" },
["sh"] = { 'shfmt' },
}

View File

@@ -1,13 +1,30 @@
return {
{
"zbirenbaum/copilot.lua",
"CopilotC-Nvim/CopilotChat.nvim",
opts = {
suggestion = {
keymap = {
accept = "<D-l>",
next = "<D-]>",
prev = "<D-[>",
},
model = "gemini-2.5-pro",
},
},
{
"zbirenbaum/copilot.lua",
keys = {
{
-- Open in the current working directory
"<leader>ad",
"<cmd>Copilot detach<cr>",
desc = "Copilot detach",
},
{
-- Open in the current working directory
"<leader>at",
"<cmd>Copilot toggle<cr>",
desc = "Copilot toggle",
},
},
opts = {
copilot_model = "gemini-2.5-pro",
keymap = {
accept = "<C-l>",
},
},
},

View File

@@ -4,6 +4,8 @@ return {
optional = true,
opts = {
servers = {
dockerls = {},
docker_compose_language_service = {},
texlab = {
keys = {
{ "<Leader>K", "<plug>(vimtex-doc-package)", desc = "Vimtex Docs", silent = true },
@@ -19,7 +21,13 @@ return {
},
},
tinymist = {},
tinymist = {
settings = {
formatterMode = "typstyle",
exportPdf = "onType",
semanticTokens = "enable",
},
},
},
},
},

View File

@@ -1,6 +1,8 @@
return {
{
"L3MON4D3/LuaSnip",
build = "make install_jsregexp",
dependencies = { "neotab.nvim" },
config = function()
require("luasnip").config.set_config({
enable_autosnippets = true,

View File

@@ -1,22 +0,0 @@
return {
{
"nvim-neo-tree/neo-tree.nvim",
lazy = true,
opts = {
filesystem = {
window = {
mappings = {
["o"] = "system_open",
},
},
commands = {
system_open = function(state)
local node = state.tree:get_node()
local path = node:get_id()
vim.api.nvim_command("silent !open -g " .. path)
end,
},
},
},
},
}

View File

@@ -33,7 +33,7 @@ return {
{ icon = "", key = "s", desc = "Restore Session", section = "session" },
{ icon = "", key = "x", desc = "Lazy Extras", action = ":LazyExtras" },
{ icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy" },
{ icon = "", key = "q", desc = "Quit", action = ":qa" },
{ icon = "", key = "q", desc = "Quit", action = ":qa" },
},
header = [[
███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
@@ -50,6 +50,7 @@ return {
{ section = "projects", padding = 1, gap = 1 },
{ title = "Options", padding = 1 },
{ section = "keys", gap = 1 },
{ section = "startup" },
},
},
picker = {
@@ -66,6 +67,8 @@ return {
{ "<c-/>", function() Snacks.terminal(nil, { cwd = vim.fn.expand("%:p:h") }) end, desc = "Toggle Terminal" },
{ "]]", function() Snacks.words.jump(vim.v.count1) end, desc = "Next Reference", mode = { "n", "t" } },
{ "[[", function() Snacks.words.jump(-vim.v.count1) end, desc = "Prev Reference", mode = { "n", "t" } },
{ "<leader>E", function() Snacks.explorer({ cwd = LazyVim.root() }) end, desc = "Explorer Snacks (root dir)", },
{ "<leader>e", function() Snacks.explorer() end, desc = "Explorer Snacks (cwd)", },
},
},
}