Compare commits

..

2 Commits

Author SHA1 Message Date
9faf6cdfe4 feat(nvim/blink.cmp): always use lua implementation 2026-02-08 01:52:43 +08:00
3d116fe3a7 chore: fmt 2026-02-08 01:51:27 +08:00
4 changed files with 50 additions and 27 deletions

View File

@@ -19,18 +19,36 @@ in
add_newline = false;
command_timeout = 2000;
nix_shell.disabled = true;
format = let
dedupDollar = list: let
result = builtins.foldl' (acc: elem:
format =
let
dedupDollar =
list:
let
result =
builtins.foldl'
(
acc: elem:
if lib.hasPrefix "$" elem then
if builtins.elem elem acc.seen
then acc
else acc // { result = acc.result ++ [elem]; seen = acc.seen ++ [elem]; }
if builtins.elem elem acc.seen then
acc
else
acc // { result = acc.result ++ [elem]; }
) { result = []; seen = []; } (lib.reverseList list);
in lib.reverseList result.result;
in "$all" + lib.concatStrings (dedupDollar cfg.format);
acc
// {
result = acc.result ++ [ elem ];
seen = acc.seen ++ [ elem ];
}
else
acc // { result = acc.result ++ [ elem ]; }
)
{
result = [ ];
seen = [ ];
}
(lib.reverseList list);
in
lib.reverseList result.result;
in
"$all" + lib.concatStrings (dedupDollar cfg.format);
};
};
};

View File

@@ -35,6 +35,9 @@ in
};
};
};
my.cli.shell.starship.format = [ "\${custom.shpool}" "$character" ];
my.cli.shell.starship.format = [
"\${custom.shpool}"
"$character"
];
};
}

View File

@@ -47,6 +47,9 @@ in
};
};
};
my.cli.shell.starship.format = [ "\${custom.tmux}" "$character" ];
my.cli.shell.starship.format = [
"\${custom.tmux}"
"$character"
];
};
}

View File

@@ -27,7 +27,7 @@ local plugins = {
end,
},
{
'echasnovski/mini.nvim',
"echasnovski/mini.nvim",
config = function()
-- Better Around/Inside textobjects
--
@@ -35,31 +35,31 @@ local plugins = {
-- - va) - [V]isually select [A]round [)]paren
-- - yinq - [Y]ank [I]nside [N]ext [Q]uote
-- - ci' - [C]hange [I]nside [']quote
require('mini.ai').setup { n_lines = 500 }
require("mini.ai").setup({ n_lines = 500 })
-- Add/delete/replace surroundings (brackets, quotes, etc.)
--
-- - saiw) - [S]urround [A]dd [I]nner [W]ord [)]Paren
-- - sd' - [S]urround [D]elete [']quotes
-- - sr)' - [S]urround [R]eplace [)] [']
require('mini.surround').setup()
require("mini.surround").setup()
-- ... and there is more!
-- Check out: https://github.com/echasnovski/mini.nvim
end,
},
{
'nvim-neo-tree/neo-tree.nvim',
version = '*',
"nvim-neo-tree/neo-tree.nvim",
version = "*",
dependencies = {
'nvim-lua/plenary.nvim',
'nvim-tree/nvim-web-devicons',
'MunifTanjim/nui.nvim',
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons",
"MunifTanjim/nui.nvim",
},
cmd = 'Neotree',
cmd = "Neotree",
keys = {
{ '\\', ':Neotree reveal toggle<CR>', desc = 'Toggle NeoTree', silent = true },
{ '<leader>e', ':Neotree reveal toggle<CR>', desc = 'Toggle NeoTree', silent = true },
{ "\\", ":Neotree reveal toggle<CR>", desc = "Toggle NeoTree", silent = true },
{ "<leader>e", ":Neotree reveal toggle<CR>", desc = "Toggle NeoTree", silent = true },
},
--- @type neotree.Config
opts = {
@@ -71,7 +71,7 @@ local plugins = {
window = {
width = 30,
mappings = {
['\\'] = 'close_window',
["\\"] = "close_window",
["<leader>e"] = "close_window",
["<c-]>"] = "set_root",
},
@@ -176,7 +176,6 @@ local plugins = {
{
"saghen/blink.cmp",
event = "VeryLazy",
build = "cargo build --release",
dependencies = {
{
"L3MON4D3/LuaSnip",