feat: add ripgrep blinkcmp completion source and migrate plugins
This commit is contained in:
parent
6487a7a30f
commit
913e837b4e
5 changed files with 38 additions and 68 deletions
52
flake.lock
52
flake.lock
|
@ -31,51 +31,19 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"plugins-live-share": {
|
"plugins-blink-ripgrep": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729253766,
|
"lastModified": 1735411615,
|
||||||
"narHash": "sha256-fUYFdeP+T+KwGpvm0eh5GcAS35ZU5f0N9A/JsqBgHGA=",
|
"narHash": "sha256-V3Tf8bPpO7KjP/AwcgYjMZdTejydvBx/t33H3+wsNLo=",
|
||||||
"owner": "azratul",
|
"owner": "mikavilpas",
|
||||||
"repo": "live-share.nvim",
|
"repo": "blink-ripgrep.nvim",
|
||||||
"rev": "bf5e8e087c368aae0325a09d1ea43f2a08f5e9aa",
|
"rev": "f4d9460a3552c735c7835a545ce32125610c1ce5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "azratul",
|
"owner": "mikavilpas",
|
||||||
"repo": "live-share.nvim",
|
"repo": "blink-ripgrep.nvim",
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins-lsp-progress": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1734338835,
|
|
||||||
"narHash": "sha256-WLBNiUzylljTof52+bZgiMIPjzEFeCEq3eSamdo467M=",
|
|
||||||
"owner": "linrongbin16",
|
|
||||||
"repo": "lsp-progress.nvim",
|
|
||||||
"rev": "f3df1df8f5ea33d082db047b5d2d2b83cc01cd8a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "linrongbin16",
|
|
||||||
"repo": "lsp-progress.nvim",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"plugins-typst-preview": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1734839452,
|
|
||||||
"narHash": "sha256-d6Tv7xZRghYYDfABk/p2e9qTm4qnWHM+ejKDCcR0TfY=",
|
|
||||||
"owner": "chomosuke",
|
|
||||||
"repo": "typst-preview.nvim",
|
|
||||||
"rev": "c1100e8788baabe8ca8f8cd7fd63d3d479e49e36",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "chomosuke",
|
|
||||||
"repo": "typst-preview.nvim",
|
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -83,9 +51,7 @@
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixCats": "nixCats",
|
"nixCats": "nixCats",
|
||||||
"nixpkgs": "nixpkgs",
|
"nixpkgs": "nixpkgs",
|
||||||
"plugins-live-share": "plugins-live-share",
|
"plugins-blink-ripgrep": "plugins-blink-ripgrep"
|
||||||
"plugins-lsp-progress": "plugins-lsp-progress",
|
|
||||||
"plugins-typst-preview": "plugins-typst-preview"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
20
flake.nix
20
flake.nix
|
@ -5,18 +5,8 @@
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
||||||
nixCats.url = "github:BirdeeHub/nixCats-nvim";
|
nixCats.url = "github:BirdeeHub/nixCats-nvim";
|
||||||
|
|
||||||
plugins-typst-preview = {
|
plugins-blink-ripgrep = {
|
||||||
url = "github:chomosuke/typst-preview.nvim";
|
url = "github:mikavilpas/blink-ripgrep.nvim";
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins-lsp-progress = {
|
|
||||||
url = "github:linrongbin16/lsp-progress.nvim";
|
|
||||||
flake = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
plugins-live-share = {
|
|
||||||
url = "github:azratul/live-share.nvim";
|
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -139,9 +129,7 @@
|
||||||
# lz.n (not necessarily lazy loaded)
|
# lz.n (not necessarily lazy loaded)
|
||||||
optionalPlugins = {
|
optionalPlugins = {
|
||||||
gitPlugins = with pkgs.neovimPlugins; [
|
gitPlugins = with pkgs.neovimPlugins; [
|
||||||
typst-preview
|
blink-ripgrep
|
||||||
lsp-progress
|
|
||||||
live-share
|
|
||||||
];
|
];
|
||||||
general = with pkgs.vimPlugins; [
|
general = with pkgs.vimPlugins; [
|
||||||
nvim-autopairs
|
nvim-autopairs
|
||||||
|
@ -184,6 +172,8 @@
|
||||||
blink-cmp
|
blink-cmp
|
||||||
clangd_extensions-nvim
|
clangd_extensions-nvim
|
||||||
tailwind-tools-nvim
|
tailwind-tools-nvim
|
||||||
|
typst-preview-nvim
|
||||||
|
lsp-progress-nvim
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -2,13 +2,30 @@ return {
|
||||||
"blink.cmp",
|
"blink.cmp",
|
||||||
event = "BufEnter",
|
event = "BufEnter",
|
||||||
after = function()
|
after = function()
|
||||||
|
require("lz.n").trigger_load("blink-ripgrep")
|
||||||
|
|
||||||
require("blink.cmp").setup({
|
require("blink.cmp").setup({
|
||||||
keymap = { preset = "default" },
|
keymap = {
|
||||||
|
preset = "default",
|
||||||
|
["<C-g>"] = {
|
||||||
|
function()
|
||||||
|
require("blink-cmp").show({ providers = { "ripgrep" } })
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
appearance = {
|
appearance = {
|
||||||
use_nvim_cmp_as_default = true,
|
use_nvim_cmp_as_default = true,
|
||||||
nerd_font_variant = "normal",
|
nerd_font_variant = "normal",
|
||||||
},
|
},
|
||||||
sources = {},
|
sources = {
|
||||||
|
default = { "lsp", "path", "snippets", "buffer" },
|
||||||
|
providers = {
|
||||||
|
ripgrep = {
|
||||||
|
module = "blink-ripgrep",
|
||||||
|
name = "Ripgrep",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
completion = {
|
completion = {
|
||||||
menu = {
|
menu = {
|
||||||
border = "rounded",
|
border = "rounded",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
return {
|
return {
|
||||||
"lsp-progress",
|
"lsp-progress.nvim",
|
||||||
event = "LspAttach",
|
event = "LspAttach",
|
||||||
after = function()
|
after = function()
|
||||||
require("lsp-progress").setup({
|
require("lsp-progress").setup({
|
||||||
|
|
|
@ -35,7 +35,7 @@ return {
|
||||||
filetypes = { "markdown" },
|
filetypes = { "markdown" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"typst-preview",
|
"typst-preview.nvim",
|
||||||
filetypes = { "*.typ" },
|
filetypes = { "*.typ" },
|
||||||
after = function()
|
after = function()
|
||||||
require("typst-preview").setup({
|
require("typst-preview").setup({
|
||||||
|
@ -258,13 +258,10 @@ return {
|
||||||
lz.trigger_load("nvim-lspconfig")
|
lz.trigger_load("nvim-lspconfig")
|
||||||
|
|
||||||
require("tailwind-tools").setup({
|
require("tailwind-tools").setup({
|
||||||
conceal = {
|
conceal = { enabled = true },
|
||||||
enabled = true,
|
document_color = { enabled = true },
|
||||||
},
|
|
||||||
document_color = {
|
|
||||||
enabled = true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{ "blink-ripgrep", lazy = true },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue