add luasnip

This commit is contained in:
Aditya 2024-03-06 18:29:28 +05:30
parent 22e4ec8e50
commit f3e3971ce6
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 26 additions and 8 deletions

View file

@ -9,11 +9,17 @@
./completion/cmp.nix ./completion/cmp.nix
./completion/lspkind.nix ./completion/lspkind.nix
./dap/dap.nix
./filetrees/neo-tree.nix
./git/diffview.nix ./git/diffview.nix
./git/gitsigns.nix ./git/gitsigns.nix
./git/lazygit.nix ./git/lazygit.nix
./git/neogit.nix ./git/neogit.nix
./keymaps.nix
./languages/treesitter/treesitter-context.nix ./languages/treesitter/treesitter-context.nix
./languages/treesitter/treesitter-textobjects.nix ./languages/treesitter/treesitter-textobjects.nix
./languages/treesitter/treesitter.nix ./languages/treesitter/treesitter.nix
@ -30,14 +36,10 @@
./none-ls/none-ls.nix ./none-ls/none-ls.nix
./dap/dap.nix
./filetrees/neo-tree.nix
./keymaps.nix
./sets.nix ./sets.nix
./snippets/luasnip.nix
./ui/nvim-notify.nix ./ui/nvim-notify.nix
]; ];
} }

View file

@ -1,7 +1,7 @@
{ {
plugins.none-ls = { plugins.none-ls = {
enable = true; enable = false;
enableLspFormat = true; enableLspFormat = false;
updateInInsert = false; updateInInsert = false;
onAttach = '' onAttach = ''
function(client, bufnr) function(client, bufnr)

View file

@ -0,0 +1,16 @@
{ pkgs, config, ... }:
{
plugins.luasnip = {
enable = true;
extraConfig = {
enable_autosnipptets = true;
store_selection_keys = "<Tab>";
};
fromVscode = [
{
lazyLoad = true;
paths = "${pkgs.vimPlugins.friendly-snippets}";
}
];
};
}