mirror of
https://github.com/akr2002/nv.git
synced 2025-03-12 18:06:15 +00:00
add luasnip
This commit is contained in:
parent
22e4ec8e50
commit
f3e3971ce6
3 changed files with 26 additions and 8 deletions
|
@ -9,11 +9,17 @@
|
|||
./completion/cmp.nix
|
||||
./completion/lspkind.nix
|
||||
|
||||
./dap/dap.nix
|
||||
|
||||
./filetrees/neo-tree.nix
|
||||
|
||||
./git/diffview.nix
|
||||
./git/gitsigns.nix
|
||||
./git/lazygit.nix
|
||||
./git/neogit.nix
|
||||
|
||||
./keymaps.nix
|
||||
|
||||
./languages/treesitter/treesitter-context.nix
|
||||
./languages/treesitter/treesitter-textobjects.nix
|
||||
./languages/treesitter/treesitter.nix
|
||||
|
@ -30,14 +36,10 @@
|
|||
|
||||
./none-ls/none-ls.nix
|
||||
|
||||
./dap/dap.nix
|
||||
|
||||
./filetrees/neo-tree.nix
|
||||
|
||||
./keymaps.nix
|
||||
|
||||
./sets.nix
|
||||
|
||||
./snippets/luasnip.nix
|
||||
|
||||
./ui/nvim-notify.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
plugins.none-ls = {
|
||||
enable = true;
|
||||
enableLspFormat = true;
|
||||
enable = false;
|
||||
enableLspFormat = false;
|
||||
updateInInsert = false;
|
||||
onAttach = ''
|
||||
function(client, bufnr)
|
||||
|
|
16
config/snippets/luasnip.nix
Normal file
16
config/snippets/luasnip.nix
Normal 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}";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue