diff options
| author | xengineering <me@xengineering.eu> | 2025-12-23 11:26:42 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2025-12-23 11:28:21 +0100 |
| commit | e15415a204d88a83f88a1d75943e83b9424d589f (patch) | |
| tree | e4dab2eeb6343e9e269858811e4d79033ca89523 | |
| parent | f392713a91674dbcfc8a449ca2360d9a6ab23dc2 (diff) | |
| download | dotfiles-e15415a204d88a83f88a1d75943e83b9424d589f.tar dotfiles-e15415a204d88a83f88a1d75943e83b9424d589f.tar.zst dotfiles-e15415a204d88a83f88a1d75943e83b9424d589f.zip | |
nvim: Disable snippets and completion
Current supply chain attacks highlight the risk of using a lot of
plugins. This commit is just a test how much I need snippets and
completion by disabling them.
Maybe this is rolled back or replaced by a custom Lua implementation.
| -rw-r--r-- | .gitmodules | 15 | ||||
| -rw-r--r-- | nvim/init.lua | 31 | ||||
| m--------- | nvim/pack/L3MON4D3/start/LuaSnip | 0 | ||||
| m--------- | nvim/pack/hrsh7th/start/cmp-nvim-lsp | 0 | ||||
| m--------- | nvim/pack/hrsh7th/start/nvim-cmp | 0 | ||||
| m--------- | nvim/pack/rafamadriz/start/friendly-snippets | 0 | ||||
| m--------- | nvim/pack/saadparwaiz1/start/cmp_luasnip | 0 |
7 files changed, 0 insertions, 46 deletions
diff --git a/.gitmodules b/.gitmodules index 81e053e..b58c3bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,21 +1,6 @@ [submodule "nvim/pack/neovim/start/nvim-lspconfig"] path = nvim/pack/neovim/start/nvim-lspconfig url = https://github.com/neovim/nvim-lspconfig.git -[submodule "nvim/pack/hrsh7th/start/nvim-cmp"] - path = nvim/pack/hrsh7th/start/nvim-cmp - url = https://github.com/hrsh7th/nvim-cmp.git -[submodule "nvim/pack/hrsh7th/start/cmp-nvim-lsp"] - path = nvim/pack/hrsh7th/start/cmp-nvim-lsp - url = https://github.com/hrsh7th/cmp-nvim-lsp.git -[submodule "nvim/pack/L3MON4D3/start/LuaSnip"] - path = nvim/pack/L3MON4D3/start/LuaSnip - url = https://github.com/L3MON4D3/LuaSnip.git -[submodule "nvim/pack/saadparwaiz1/start/cmp_luasnip"] - path = nvim/pack/saadparwaiz1/start/cmp_luasnip - url = https://github.com/saadparwaiz1/cmp_luasnip.git -[submodule "nvim/pack/rafamadriz/start/friendly-snippets"] - path = nvim/pack/rafamadriz/start/friendly-snippets - url = https://github.com/rafamadriz/friendly-snippets.git [submodule "nvim/pack/nvim-lua/start/plenary.nvim"] path = nvim/pack/nvim-lua/start/plenary.nvim url = https://github.com/nvim-lua/plenary.nvim.git diff --git a/nvim/init.lua b/nvim/init.lua index db290b3..be737dc 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,32 +1,4 @@ --- completion configuration -local cmp = require'cmp' -cmp.setup({ - snippet = { - expand = function(args) - require('luasnip').lsp_expand(args.body) - end, - }, - window = { - completion = cmp.config.window.bordered(), - documentation = cmp.config.window.bordered(), - }, - mapping = cmp.mapping.preset.insert({ - ['<C-b>'] = cmp.mapping.scroll_docs(-4), - ['<C-f>'] = cmp.mapping.scroll_docs(4), - ['<C-Space>'] = cmp.mapping.complete(), - ['<C-e>'] = cmp.mapping.abort(), - ['<CR>'] = cmp.mapping.confirm({ select = true }), - }), - sources = cmp.config.sources({ - { name = 'nvim_lsp' }, - { name = 'luasnip' }, - }, { - { name = 'buffer' }, - }) -}) - -- Language Server Protocol server configuration -local capabilities = require('cmp_nvim_lsp').default_capabilities() local lsp = require'lspconfig' local servers = { 'clangd', @@ -40,9 +12,6 @@ for _, server in ipairs(servers) do lsp[server].setup{capabilities = capabilities} end --- snippet loading configuration -require("luasnip.loaders.from_vscode").lazy_load() - -- setup telescope local telescope_builtin = require('telescope.builtin') diff --git a/nvim/pack/L3MON4D3/start/LuaSnip b/nvim/pack/L3MON4D3/start/LuaSnip deleted file mode 160000 -Subproject 8ae1dedd988eb56441b7858bd1e8554dfadaa46 diff --git a/nvim/pack/hrsh7th/start/cmp-nvim-lsp b/nvim/pack/hrsh7th/start/cmp-nvim-lsp deleted file mode 160000 -Subproject 5af77f54de1b16c34b23cba810150689a3a9031 diff --git a/nvim/pack/hrsh7th/start/nvim-cmp b/nvim/pack/hrsh7th/start/nvim-cmp deleted file mode 160000 -Subproject 8c82d0bd31299dbff7f8e780f5e06d2283de967 diff --git a/nvim/pack/rafamadriz/start/friendly-snippets b/nvim/pack/rafamadriz/start/friendly-snippets deleted file mode 160000 -Subproject dcd4a586439a1c81357d5b9d26319ae218cc947 diff --git a/nvim/pack/saadparwaiz1/start/cmp_luasnip b/nvim/pack/saadparwaiz1/start/cmp_luasnip deleted file mode 160000 -Subproject 05a9ab28b53f71d1aece421ef32fee2cb857a84 |
