This commit is contained in:
Zelong Kuang
2025-09-21 20:43:38 +10:00
parent 9d1536e5af
commit 46c470d1f7
50 changed files with 5465 additions and 214 deletions

View File

@@ -1,15 +1,15 @@
return {
-- {
-- "zbirenbaum/copilot.lua",
-- opts = {
-- copilot_model = "claude-3.7-sonnet",
-- suggestion = {
-- keymap = {
-- accept = "<D-l>",
-- next = "<D-]>",
-- prev = "<D-[>",
-- },
-- },
-- },
-- },
{
"zbirenbaum/copilot.lua",
opts = {
copilot_model = "claude-opus-4",
suggestion = {
keymap = {
accept = "<D-l>",
next = "<D-]>",
prev = "<D-[>",
},
},
},
},
}

View File

@@ -18,6 +18,8 @@ return {
},
},
},
tinymist = {},
},
},
},

View File

@@ -1,59 +0,0 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function()
return {
highlight = {
enable = true,
disable = { "latex" },
additional_vim_regex_highlighting = { "latex", "markdown" },
},
indent = { enable = true, disable = { "python" } },
context_commentstring = { enable = true, enable_autocmd = false },
ensure_installed = {
"bash",
"c",
"cpp",
"html",
"json",
"lua",
"luap",
"markdown",
"make",
"markdown_inline",
"scala",
"python",
"query",
"toml",
"regex",
"vim",
"yaml",
},
incremental_selection = {
enable = true,
keymaps = {
init_selection = "<cr>",
node_incremental = "<cr>",
scope_incremental = "\\",
node_decremental = "<bs>",
},
},
}
end,
rainbow = {
enable = true,
-- list of languages you want to disable the plugin for
disable = { "jsx", "cpp" },
-- Which query to use for finding delimiters
query = "rainbow-parens",
-- Highlight the entire buffer all at once
},
keys = function()
return {
{ "<cr>", desc = "Increment selection" },
{ "<bs>", desc = "Decrement selection", mode = "x" },
}
end,
},
}

View File

@@ -1,36 +1,40 @@
return {
{
"nvim-treesitter/nvim-treesitter",
-- commit = "a1332a7925e5b3234a94480f77713d396ca895c1",
opts = function()
local parsers = {
"typst",
"bash",
"c",
"cpp",
"html",
"json",
"lua",
"luap",
"markdown",
"make",
"markdown_inline",
"scala",
"python",
"latex",
"query",
"toml",
"regex",
"vim",
"yaml",
}
table.insert(parsers, "latex")
return {
highlight = {
enable = true,
disable = { "latex" },
disable = { "tex, latex" },
-- additional_vim_regex_highlighting = { "markdown" },
},
-- ignore_install = { "latex" },
indent = { enable = true, disable = { "python" } },
context_commentstring = { enable = true, enable_autocmd = false },
ensure_installed = {
"latex",
"bash",
"c",
"cpp",
"html",
"json",
"lua",
"luap",
"markdown",
"make",
"markdown_inline",
"scala",
"python",
"query",
"toml",
"regex",
"vim",
"yaml",
},
ensure_installed = parsers,
incremental_selection = {
enable = true,
keymaps = {