Skip to content

Commit

Permalink
remove vsnip
Browse files Browse the repository at this point in the history
  • Loading branch information
emattiza committed Aug 11, 2023
1 parent 277a11f commit 15d875b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 36 deletions.
17 changes: 0 additions & 17 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@
url = "github:hrsh7th/cmp-nvim-lsp";
flake = false;
};
cmp-vsnip = {
url = "github:hrsh7th/cmp-vsnip";
flake = false;
};
cmp-path = {
url = "github:hrsh7th/cmp-path";
flake = false;
Expand Down Expand Up @@ -290,7 +286,6 @@
"nvim-cmp"
"cmp-nvim-lsp"
"cmp-buffer"
"cmp-vsnip"
"cmp-path"
"cmp-treesitter"
"crates-nvim"
Expand Down
10 changes: 0 additions & 10 deletions modules/completion/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ in {
vim.startPlugins = with pkgs.neovimPlugins; [
nvim-cmp
cmp-buffer
cmp-vsnip
cmp-path
cmp-treesitter
];
Expand All @@ -60,14 +59,10 @@ in {
local cmp = require'cmp'
cmp.setup({
snippet = {
expand = function(args)
vim.fn["vsnip#anonymous"](args.body)
end,
},
sources = {
${writeIf (config.vim.lsp.enable) "{ name = 'nvim_lsp' },"}
${writeIf (config.vim.lsp.rust.enable) "{ name = 'crates' },"}
{ name = 'vsnip' },
{ name = 'treesitter' },
{ name = 'path' },
{ name = 'buffer' },
Expand All @@ -87,8 +82,6 @@ in {
['<Tab>'] = cmp.mapping(function (fallback)
if cmp.visible() then
cmp.select_next_item()
elseif vim.fn['vsnip#available'](1) == 1 then
feedkey("<Plug>(vsnip-expand-or-jump)", "")
elseif has_words_before() then
cmp.complete()
else
Expand All @@ -99,8 +92,6 @@ in {
['<S-Tab>'] = cmp.mapping(function (fallback)
if cmp.visible() then
cmp.select_prev_item()
elseif vim.fn['vsnip#available'](-1) == 1 then
feedkeys("<Plug>(vsnip-jump-prev)", "")
end
end, { 'i', 's' })
},
Expand All @@ -113,7 +104,6 @@ in {
vim_item.menu = ({
buffer = "[Buffer]",
nvim_lsp = "[LSP]",
vsnip = "[VSnip]",
crates = "[Crates]",
path = "[Path]",
})[entry.source.name]
Expand Down
4 changes: 0 additions & 4 deletions modules/snippets/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
{
pkgs,
lib,
config,
...
}: {
imports = [
./vsnip.nix
];
}

0 comments on commit 15d875b

Please sign in to comment.