mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-01-18 08:09:48 +01:00
Merge pull request #549 from LilleAila/luasnip-setupOpts
snippets/luasnip: add setupOpts
This commit is contained in:
commit
520a06586b
3 changed files with 15 additions and 7 deletions
|
@ -51,4 +51,5 @@
|
|||
|
||||
- Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes
|
||||
issue with setting the workspace directory.
|
||||
- Add `vim.snippets.luasnip.setupOpts`, which was previously missing.
|
||||
- Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`.
|
||||
|
|
|
@ -9,12 +9,15 @@
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
lazy.plugins = {
|
||||
luasnip = {
|
||||
package = "luasnip";
|
||||
lazy = true;
|
||||
after = cfg.loaders;
|
||||
};
|
||||
lazy.plugins.luasnip = {
|
||||
package = "luasnip";
|
||||
|
||||
lazy = true;
|
||||
|
||||
setupModule = "luasnip";
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
after = cfg.loaders;
|
||||
};
|
||||
startPlugins = cfg.providers;
|
||||
autocomplete.nvim-cmp = {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib.options) mkEnableOption mkOption literalExpression literalMD;
|
||||
inherit (lib.types) listOf lines;
|
||||
inherit (lib.nvim.types) pluginType;
|
||||
inherit (lib.nvim.types) pluginType mkPluginSetupOption;
|
||||
in {
|
||||
options.vim.snippets.luasnip = {
|
||||
enable = mkEnableOption "luasnip";
|
||||
|
@ -32,5 +32,9 @@ in {
|
|||
```
|
||||
'';
|
||||
};
|
||||
|
||||
setupOpts = mkPluginSetupOption "LuaSnip" {
|
||||
enable_autosnippets = mkEnableOption "autosnippets";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue