mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-28 22:08:46 +02:00
plugins/blink-cmp-latex: init
Some checks failed
Publish every Git push to main to FlakeHub / flakehub-publish (push) Has been cancelled
Publish every git push to Flakestry / publish-flake (push) Has been cancelled
Documentation / Version info (push) Has been cancelled
Documentation / Build (push) Has been cancelled
Documentation / Combine builds (push) Has been cancelled
Documentation / Deploy (push) Has been cancelled
Some checks failed
Publish every Git push to main to FlakeHub / flakehub-publish (push) Has been cancelled
Publish every git push to Flakestry / publish-flake (push) Has been cancelled
Documentation / Version info (push) Has been cancelled
Documentation / Build (push) Has been cancelled
Documentation / Combine builds (push) Has been cancelled
Documentation / Deploy (push) Has been cancelled
Adds the [blink-cmp-latex](https://github.com/erooke/blink-cmp-latex) plugin.
This commit is contained in:
parent
9f036a41d3
commit
8e3ca3fc1f
2 changed files with 64 additions and 0 deletions
53
plugins/by-name/blink-cmp-latex/default.nix
Normal file
53
plugins/by-name/blink-cmp-latex/default.nix
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
{ lib, ... }:
|
||||||
|
lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
|
name = "blink-cmp-latex";
|
||||||
|
package = "blink-cmp-latex";
|
||||||
|
|
||||||
|
maintainers = [ lib.maintainers.jolars ];
|
||||||
|
|
||||||
|
description = ''
|
||||||
|
LaTeX symbols and commands source for blink-cmp.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
This plugin should be configured through blink-cmp's `sources.providers` settings.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
plugins.blink-cmp = {
|
||||||
|
enable = true;
|
||||||
|
settings.sources.providers = {
|
||||||
|
latex-symbols = {
|
||||||
|
module = "blink-cmp-latex";
|
||||||
|
name = "Latex";
|
||||||
|
opts = {
|
||||||
|
# set to true to insert the latex command instead of the symbol
|
||||||
|
insert_command = false
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
|
And then you can add it to blink-cmp's `sources.default` option:
|
||||||
|
|
||||||
|
```nix
|
||||||
|
plugins.blink-cmp = {
|
||||||
|
enable = true;
|
||||||
|
settings.sources.default = [
|
||||||
|
"lsp"
|
||||||
|
"path"
|
||||||
|
"luasnip"
|
||||||
|
"buffer"
|
||||||
|
"latex-symbols"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
```
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Configured through blink-cmp
|
||||||
|
callSetup = false;
|
||||||
|
hasLuaConfig = false;
|
||||||
|
hasSettings = false;
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
empty = {
|
||||||
|
plugins.blink-cmp-latex.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
defaults = {
|
||||||
|
plugins.blink-cmp-latex = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue