From e254e6e3136089cfd7e9323581878c215393b0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kmie=C4=87?= Date: Mon, 24 Jul 2023 11:01:08 +0200 Subject: [PATCH] Nvim: further cleanup --- .config/nvim/lua/plugins/neorg.lua | 18 ------------------ .config/nvim/lua/plugins/nvim-cmp.lua | 16 +++++++++------- 2 files changed, 9 insertions(+), 25 deletions(-) delete mode 100644 .config/nvim/lua/plugins/neorg.lua diff --git a/.config/nvim/lua/plugins/neorg.lua b/.config/nvim/lua/plugins/neorg.lua deleted file mode 100644 index 876dfd7..0000000 --- a/.config/nvim/lua/plugins/neorg.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - "nvim-neorg/neorg", - build = ":Neorg sync-parsers", - opts = { - load = { - ["core.defaults"] = {}, -- Loads default behaviour - ["core.concealer"] = {}, -- Adds pretty icons to your documents - ["core.dirman"] = { -- Manages Neorg workspaces - config = { - workspaces = { - notes = "~/notes", - }, - }, - }, - }, - }, - dependencies = { { "nvim-lua/plenary.nvim" } }, -} diff --git a/.config/nvim/lua/plugins/nvim-cmp.lua b/.config/nvim/lua/plugins/nvim-cmp.lua index 0c89f89..5374189 100644 --- a/.config/nvim/lua/plugins/nvim-cmp.lua +++ b/.config/nvim/lua/plugins/nvim-cmp.lua @@ -1,23 +1,25 @@ return { 'hrsh7th/nvim-cmp', dependencies = { - 'mstanciu552/cmp-matlab', + 'dcampos/cmp-snippy', + --'mstanciu552/cmp-matlab', 'petertriho/cmp-git', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-cmdline', 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-path', + 'hrsh7th/cmp-calc', }, event = "InsertEnter", config = function() local cmp = require'cmp' cmp.setup({ - snippet = { - expand = function(args) - require('snippy').expand_snippet(args.body) - end, - }, + -- snippet = { + -- expand = function(args) + -- require('snippy').expand_snippet(args.body) + -- end, + -- }, window = { completion = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(), @@ -34,7 +36,7 @@ return { { name = 'path' }, { name = 'snippy' }, { name = 'calc' }, - { name = 'cmp_matlab' }, + -- { name = 'cmp_matlab' }, { name = 'cmp_git' }, }, { { name = 'buffer', keyword_length = 5, max_item_count = 10, priority = -5 },