feat(nvf): add snippet for adding nix option
This commit is contained in:
parent
08f64ab5a5
commit
cfcb63cc6f
2 changed files with 15 additions and 0 deletions
|
@ -4,8 +4,15 @@
|
||||||
autopairs.nvim-autopairs.enable = true;
|
autopairs.nvim-autopairs.enable = true;
|
||||||
snippets.luasnip = {
|
snippets.luasnip = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
loaders = # lua
|
||||||
|
''
|
||||||
|
require('luasnip.loaders.from_vscode').lazy_load()
|
||||||
|
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||||
|
'';
|
||||||
setupOpts.enable_autosnippets = true;
|
setupOpts.enable_autosnippets = true;
|
||||||
};
|
};
|
||||||
|
additionalRuntimePaths = [ ./nvim ];
|
||||||
|
|
||||||
autocomplete = {
|
autocomplete = {
|
||||||
blink-cmp = {
|
blink-cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
8
configs/programs/nvf/nvim/snippets/nix.snippets
Normal file
8
configs/programs/nvf/nvim/snippets/nix.snippets
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# comment
|
||||||
|
snippet option
|
||||||
|
lib.mkOption {
|
||||||
|
type = lib.types.$1;
|
||||||
|
default = $2;
|
||||||
|
example = "$3";
|
||||||
|
description = "$4";
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue