[nvim] Add neorg related stuff

This commit is contained in:
Alyxia Sother 2021-12-13 18:12:11 +01:00
parent cd84490790
commit 238e3b3ef4
No known key found for this signature in database
GPG key ID: 355968D14144B739
3 changed files with 34 additions and 0 deletions

View file

@ -22,6 +22,9 @@ let s:plug = funcref('dotfiles#plugman#register')
call s:plug('alaviss/nim.nvim')
call s:plug('stevearc/vim-arduino')
call s:plug('xiyaowong/coc-nvim-lua')
call s:plug('nvim-neorg/neorg', { 'branch': 'unstable' }) " dependencies {{{
call s:plug('nvim-treesitter/nvim-treesitter', { 'do': ':TSUpdate' })
" }}}
call s:plug('noahfrederick/vim-laravel') " dependencies {{{
call s:plug('noahfrederick/vim-composer')
call s:plug('tpope/vim-projectionist')

18
nvim/plugin/neorg.lua Normal file
View file

@ -0,0 +1,18 @@
local neorg = require('neorg')
local cmp = require('cmp')
local cmp_config = cmp.get_config()
table.insert(cmp_config.sources, { name = "neorg" })
cmp.setup(cmp_config)
require('neorg').setup {
load = {
["core.defaults"] = {},
["core.norg.concealer"] = {},
["core.norg.completion"] = {
config = {
engine = "nvim-cmp"
}
}
}
}

View file

@ -0,0 +1,13 @@
local parser_configs = require('nvim-treesitter.parsers').get_parser_configs()
parser_configs.norg = {
install_info = {
url = "https://github.com/nvim-neorg/tree-sitter-norg",
files = { "src/parser.c", "src/scanner.cc" },
branch = "main"
},
}
require('nvim-treesitter.configs').setup {
ensure_installed = { "norg" }
}