mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-21 19:07:59 +00:00
Compare commits
1 commit
36fb9c427d
...
a630e4c996
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a630e4c996 |
3 changed files with 7 additions and 15 deletions
|
@ -57,5 +57,4 @@
|
||||||
|
|
||||||
- Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes
|
- Remove `vim.notes.obsidian.setupOpts.dir`, which was set by default. Fixes
|
||||||
issue with setting the workspace directory.
|
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`.
|
- Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`.
|
||||||
|
|
|
@ -9,15 +9,12 @@
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
lazy.plugins.luasnip = {
|
lazy.plugins = {
|
||||||
package = "luasnip";
|
luasnip = {
|
||||||
|
package = "luasnip";
|
||||||
lazy = true;
|
lazy = true;
|
||||||
|
after = cfg.loaders;
|
||||||
setupModule = "luasnip";
|
};
|
||||||
inherit (cfg) setupOpts;
|
|
||||||
|
|
||||||
after = cfg.loaders;
|
|
||||||
};
|
};
|
||||||
startPlugins = cfg.providers;
|
startPlugins = cfg.providers;
|
||||||
autocomplete.nvim-cmp = mkIf config.vim.autocomplete.nvim-cmp.enable {
|
autocomplete.nvim-cmp = mkIf config.vim.autocomplete.nvim-cmp.enable {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkEnableOption mkOption literalExpression literalMD;
|
inherit (lib.options) mkEnableOption mkOption literalExpression literalMD;
|
||||||
inherit (lib.types) listOf lines;
|
inherit (lib.types) listOf lines;
|
||||||
inherit (lib.nvim.types) pluginType mkPluginSetupOption;
|
inherit (lib.nvim.types) pluginType;
|
||||||
in {
|
in {
|
||||||
options.vim.snippets.luasnip = {
|
options.vim.snippets.luasnip = {
|
||||||
enable = mkEnableOption "luasnip";
|
enable = mkEnableOption "luasnip";
|
||||||
|
@ -32,9 +32,5 @@ in {
|
||||||
```
|
```
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
setupOpts = mkPluginSetupOption "LuaSnip" {
|
|
||||||
enable_autosnippets = mkEnableOption "autosnippets";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue