338 current 2025-02-16 17:29:05 25.05.20241217.d3c42f1 6.6.66 *
This commit is contained in:
@@ -66,7 +66,7 @@
|
|||||||
{
|
{
|
||||||
# the most helpful thing is this guy: https://ejmastnak.com/tutorials/vim-latex/luasnip/
|
# the most helpful thing is this guy: https://ejmastnak.com/tutorials/vim-latex/luasnip/
|
||||||
plugin = luasnip;
|
plugin = luasnip;
|
||||||
config = toLuaFile ./luasnip/luasnip.lua;
|
config = toLuaFile ./plugins/luasnip.lua;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
plugin = lualine-nvim;
|
plugin = lualine-nvim;
|
||||||
@@ -112,4 +112,11 @@
|
|||||||
|
|
||||||
# extraConfig = lib.fileContents ./init.vim;
|
# extraConfig = lib.fileContents ./init.vim;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# copy the snippets :#
|
||||||
|
home.activation.copySnippetsDir = lib.mkAfter ''
|
||||||
|
mkdir -p ~/.config/nvim/snippets
|
||||||
|
cp -r ${./snippets}/* ~/.config/nvim/snippets/
|
||||||
|
chmod -R u+w ~/.config/nvim/snippets/
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,10 +23,9 @@ require("luasnip").config.set_config({ -- Setting LuaSnip config
|
|||||||
store_selection_keys = "<Tab>",
|
store_selection_keys = "<Tab>",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- require("luasnip.loaders.from_lua").load({paths = "./snippets/"})
|
-- JAKENOTE, relative imports *do not work* with nixos. don't GG yourself blud.
|
||||||
require("luasnip.loaders.from_lua").load({
|
require("luasnip.loaders.from_lua").load({
|
||||||
-- paths = "/home/synchronous/nix-cfg/home/programs/nvim/luasnip/snippets/"
|
paths = vim.fn.stdpath('config') .. "/snippets/"
|
||||||
paths = vim.fn.stdpath('config') .. "/luasnip/snippets/"
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- require("luasnip.loaders.from_lua").lazy_load({paths = "./snippets/"})
|
-- require("luasnip.loaders.from_lua").lazy_load({paths = "./snippets/"})
|
||||||
Reference in New Issue
Block a user