neovim refactor
This commit is contained in:
1 parent
b12c211a69
commit
883f9d26c2
25 files changed
+1154
-880
No files matched your search
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"Full lux module": {
|
||||
"prefix": "luxmod",
|
||||
"description": "Full lux module (NixOS and Home Manager)",
|
||||
"body": [
|
||||
"{ inputs, ... }:",
|
||||
"{",
|
||||
" lux.${1:moduleName} = {",
|
||||
" nixos = { config, lib, pkgs, ... }: {",
|
||||
" $2",
|
||||
" };",
|
||||
"",
|
||||
" homeManager = { config, lib, pkgs, ... }: {",
|
||||
" $3",
|
||||
" };",
|
||||
" };",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"Lux NixOS module": {
|
||||
"prefix": "luxnixos",
|
||||
"description": "Lux NixOS-only module",
|
||||
"body": [
|
||||
"{ inputs, ... }:",
|
||||
"{",
|
||||
" lux.${1:moduleName}.nixos = { config, lib, pkgs, ... }: {",
|
||||
" $0",
|
||||
" };",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"Lux Home Manager module": {
|
||||
"prefix": "luxhm",
|
||||
"description": "Lux Home Manager-only module",
|
||||
"body": [
|
||||
"{ inputs, ... }:",
|
||||
"{",
|
||||
" lux.${1:moduleName}.homeManager = { config, lib, pkgs, ... }: {",
|
||||
" $0",
|
||||
" };",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
"Den inline aspect": {
|
||||
"prefix": "denaspect",
|
||||
"description": "Den inline aspect",
|
||||
"body": [
|
||||
"(",
|
||||
" { host, user, ... }: {",
|
||||
" $0",
|
||||
" }",
|
||||
")"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -1,91 +0,0 @@
|
||||
local ls = require("luasnip")
|
||||
local s = ls.snippet
|
||||
local t = ls.text_node
|
||||
local i = ls.insert_node
|
||||
|
||||
return {
|
||||
-- Full lux module (both nixos and homeManager)
|
||||
s("luxmod", {
|
||||
t({
|
||||
"{ inputs, ... }:",
|
||||
"{",
|
||||
" lux."
|
||||
}),
|
||||
i(1, "moduleName"),
|
||||
t({
|
||||
" = {",
|
||||
" nixos = { config, lib, pkgs, ... }: {",
|
||||
" "
|
||||
}),
|
||||
i(2),
|
||||
t({
|
||||
"",
|
||||
" };",
|
||||
"",
|
||||
" homeManager = { config, lib, pkgs, ... }: {",
|
||||
" "
|
||||
}),
|
||||
i(3),
|
||||
t({
|
||||
"",
|
||||
" };",
|
||||
" };",
|
||||
"}",
|
||||
}),
|
||||
}),
|
||||
|
||||
-- lux nixos only module
|
||||
s("luxnixos", {
|
||||
t({
|
||||
"{ inputs, ... }:",
|
||||
"{",
|
||||
" lux."
|
||||
}),
|
||||
i(1, "moduleName"),
|
||||
t({
|
||||
".nixos = { config, lib, pkgs, ... }: {",
|
||||
" "
|
||||
}),
|
||||
i(0),
|
||||
t({
|
||||
"",
|
||||
" };",
|
||||
"}",
|
||||
}),
|
||||
}),
|
||||
|
||||
-- lux homeManager only module
|
||||
s("luxhm", {
|
||||
t({
|
||||
"{ inputs, ... }:",
|
||||
"{",
|
||||
" lux."
|
||||
}),
|
||||
i(1, "moduleName"),
|
||||
t({
|
||||
".homeManager = { config, lib, pkgs, ... }: {",
|
||||
" "
|
||||
}),
|
||||
i(0),
|
||||
t({
|
||||
"",
|
||||
" };",
|
||||
"}",
|
||||
}),
|
||||
}),
|
||||
|
||||
-- den inline aspect
|
||||
s("denaspect", {
|
||||
t({
|
||||
"(",
|
||||
" { host, user, ... }: {",
|
||||
" "
|
||||
}),
|
||||
i(0),
|
||||
t({
|
||||
"",
|
||||
" }",
|
||||
")"
|
||||
}),
|
||||
}),
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "lux-nix-snippets",
|
||||
"contributes": {
|
||||
"snippets": [
|
||||
{
|
||||
"language": "nix",
|
||||
"path": "./nix.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user