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 /nvim/init.lua | |
| 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.
Diffstat (limited to 'nvim/init.lua')
| -rw-r--r-- | nvim/init.lua | 31 |
1 files changed, 0 insertions, 31 deletions
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') |
