mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
37 lines
994 B
VimL
37 lines
994 B
VimL
lua << EOF
|
|
local cmp = require'cmp'
|
|
cmp.setup({
|
|
snippet = {
|
|
expand = function(args)
|
|
vim.fn["vsnip#anonymous"](args.body)
|
|
end,
|
|
},
|
|
mapping = {
|
|
['<C-y>'] = cmp.mapping.confirm({ select = true }),
|
|
},
|
|
sources = {
|
|
{ name = 'neorg' },
|
|
}
|
|
})
|
|
|
|
require('neorg').setup {
|
|
-- Tell Neorg what modules to load
|
|
load = {
|
|
["core.defaults"] = {}, -- Load all the default modules
|
|
["core.norg.concealer"] = {}, -- Allows for use of icons
|
|
["core.norg.dirman"] = { -- Manage your directories with Neorg
|
|
config = {
|
|
engine = "nvim-cmp",
|
|
workspaces = {
|
|
home = "~/neorg"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
}
|
|
EOF
|
|
|
|
nnoremap <leader>ff <cmd>Telescope find_files<cr>
|
|
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
|
|
nnoremap <leader>fb <cmd>Telescope buffers<cr>
|
|
nnoremap <leader>fh <cmd>Telescope help_tags<cr>
|