diff --git a/nvim/dotfiles/plugins-list.vim b/nvim/dotfiles/plugins-list.vim index f6690f5..c546c08 100644 --- a/nvim/dotfiles/plugins-list.vim +++ b/nvim/dotfiles/plugins-list.vim @@ -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') diff --git a/nvim/plugin/neorg.lua b/nvim/plugin/neorg.lua new file mode 100644 index 0000000..943cfa6 --- /dev/null +++ b/nvim/plugin/neorg.lua @@ -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" + } + } + } +} diff --git a/nvim/plugin/treesitter.lua b/nvim/plugin/treesitter.lua new file mode 100644 index 0000000..ddd6827 --- /dev/null +++ b/nvim/plugin/treesitter.lua @@ -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" } +}