Nvim: further cleanup

This commit is contained in:
Robert Kmieć
2023-07-24 11:01:08 +02:00
parent 55cc17b86a
commit e254e6e313
2 changed files with 9 additions and 25 deletions

View File

@@ -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" } },
}

View File

@@ -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 },