1
Fork 0

Cut down on a lot of flake inputs

This commit is contained in:
prescientmoon 2024-04-01 05:57:56 +02:00
parent a47be3adf9
commit f7f80163eb
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
16 changed files with 459 additions and 1769 deletions
home/features/neovim
config/lua/my/snippets
default.nix

View file

@ -6,6 +6,7 @@ local conds = require("luasnip.extras.expand_conditions")
local t = ls.text_node
local i = ls.insert_node
local d = ls.dynamic_node
local c = ls.choice_node
local f = ls.function_node
local sn = ls.snippet_node
local fmt = require("luasnip.extras.fmt").fmt

View file

@ -3,12 +3,12 @@ let
# Toggles for including tooling related to a given language
packedTargets = {
elm = false;
latex = true;
latex = false;
lua = true;
nix = true;
purescript = false;
python = true;
rust = true;
python = false;
rust = false;
typst = true;
web = true;
};
@ -895,6 +895,18 @@ let
'';
desc = "Jump to previous snippet tabstop";
}
{
mode = "is";
mapping = "<c-a>";
action = "<Plug>luasnip-prev-choice";
desc = "Previous snippet node choice";
}
{
mode = "is";
mapping = "<c-f>";
action = "<Plug>luasnip-next-choice";
desc = "Next snippet node choice";
}
];
# }}}
};
@ -917,7 +929,7 @@ let
optionals nix [
pkgs.rnix-lsp
pkgs.nil
inputs.nixd.packages.${pkgs.system}.nixd
pkgs.nixd
] ++
optionals latex [
pkgs.texlab