mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-07 11:17:15 +00:00
Compare commits
7 commits
7012938e21
...
fedbee3a30
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fedbee3a30 |
||
|
|
607373645f |
||
|
|
c59f8922b2 |
||
|
|
9818d19937 |
||
|
a5a5aba34a |
|||
|
|
983a81c96c |
||
|
|
6e98b894b7 |
3 changed files with 18 additions and 3 deletions
|
|
@ -52,4 +52,4 @@
|
|||
- 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 a trigger event for luasnip lazy-loading
|
||||
- Add `"prettierd"` as a formatter option in `vim.languages.markdown.format.type`.
|
||||
|
|
|
|||
|
|
@ -46,6 +46,18 @@
|
|||
)
|
||||
'';
|
||||
};
|
||||
prettierd = {
|
||||
package = pkgs.prettierd;
|
||||
nullConfig = ''
|
||||
table.insert(
|
||||
ls_sources,
|
||||
null_ls.builtins.formatting.prettierd.with({
|
||||
filetypes = ${expToLua (concatLists [cfg.format.extraFiletypes ["markdown"]])},
|
||||
command = "${cfg.format.package}/bin/prettierd",
|
||||
})
|
||||
)
|
||||
'';
|
||||
};
|
||||
};
|
||||
in {
|
||||
options.vim.languages.markdown = {
|
||||
|
|
|
|||
|
|
@ -11,10 +11,13 @@ in {
|
|||
vim = {
|
||||
lazy.plugins.luasnip = {
|
||||
package = "luasnip";
|
||||
event = "BufEnter";
|
||||
after = cfg.loaders;
|
||||
|
||||
lazy = true;
|
||||
|
||||
setupModule = "luasnip";
|
||||
inherit (cfg) setupOpts;
|
||||
|
||||
after = cfg.loaders;
|
||||
};
|
||||
startPlugins = cfg.providers;
|
||||
autocomplete.nvim-cmp = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue