diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-07 17:54:36 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-07 17:54:36 +0300 |
| commit | fb07fbdefd9cbe7d3d8a185812d0a930d7ddc4ab (patch) | |
| tree | ca4c0df1e75b0435d670b142cafb6d6bea2c7c9e /.config/nvim/lua/custom/plugins/TODO-completions.lua | |
| parent | 6c52215796b04ee7e57d33007be638b82c7d6393 (diff) | |
Neovim: reworked lsp setup, along with some minor tweaks
Diffstat (limited to '.config/nvim/lua/custom/plugins/TODO-completions.lua')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/TODO-completions.lua | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/.config/nvim/lua/custom/plugins/TODO-completions.lua b/.config/nvim/lua/custom/plugins/TODO-completions.lua deleted file mode 100644 index 0699e9b..0000000 --- a/.config/nvim/lua/custom/plugins/TODO-completions.lua +++ /dev/null @@ -1,50 +0,0 @@ -return { - { - 'hrsh7th/cmp-nvim-lsp', - }, - { - 'L3MON4D3/LuaSnip', - dependencies = { - 'saadparwaiz1/cmp_luasnip', - 'rafamadriz/friendly-snippets', - }, - }, - { - 'hrsh7th/nvim-cmp', - opts = function(_, opts) - -- Setup options for lazydev.nvim - opts.sources = opts.sources or {} - table.insert(opts.sources, { - name = 'lazydev', - group_index = 0, - }) - end, - config = function() - local cmp = require('cmp') - require('luasnip.loaders.from_vscode').lazy_load() - - 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-k>'] = cmp.mapping.abort(), - ['<CR>'] = cmp.mapping.confirm({ select = true }), - }), - sources = cmp.config.sources({ - { name = 'nvim_lsp' }, - { name = 'luasnip' }, - }, { { name = 'buffer' } }), - }) - end, - }, -} |
