mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nvim] Add neorg related stuff
This commit is contained in:
parent
cd84490790
commit
238e3b3ef4
3 changed files with 34 additions and 0 deletions
|
@ -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
18
nvim/plugin/neorg.lua
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
nvim/plugin/treesitter.lua
Normal file
13
nvim/plugin/treesitter.lua
Normal 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" }
|
||||
}
|
Loading…
Reference in a new issue