neorg init

This commit is contained in:
Christoph J. Scherr 2023-09-05 21:32:51 +02:00
parent e8199edfb8
commit 244e9a3d5d
5 changed files with 32 additions and 1 deletions

View File

@ -75,6 +75,7 @@ nnoremap <SPACE> <Nop>
let mapleader=" "
map <leader>t :echo "leader tested!"<CR>
map <leader>h :noh<CR>
let maplocalleader=","
" copy to Wayland clipboard when leader is used. (note, install gvim for this)
vnoremap <leader>wy y :call system("wl-copy", @")<CR>

View File

@ -37,6 +37,9 @@ runtime tagbar.vim
" load suda
runtime suda.vim
" load neorg
runtime neorg.vim
" load ALE (another language server or something that works with COC)
"runtime ale.vim

View File

@ -0,0 +1,24 @@
lua << EOF
require 'nvim-treesitter.configs'.setup {
ensure_installed = { 'norg' },
highlight = {
enable = true,
}
}
require('neorg').setup {
load = {
["core.defaults"] = {}, -- Loads default behaviour
["core.concealer"] = {}, -- Adds pretty icons to your documents
["core.dirman"] = { -- Manages Neorg workspaces
config = {
workspaces = {
main = "~/Nextcloud/Neorg",
work = "~/Nextcloud/Neorg/500-Work",
},
},
},
},
}
EOF

View File

@ -23,6 +23,8 @@ Plug 'nvim-tree/nvim-web-devicons'
Plug 'rust-lang/rust.vim'
Plug 'preservim/tagbar'
Plug 'lambdalisue/suda.vim'
"Plug 'dense-analysis/ale'
Plug 'nvim-neorg/neorg', {'do': ':Neorg sync-parsers'}
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
call plug#end()

View File

@ -32,6 +32,7 @@ alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
alias gg=lazygit
alias reload="source ~/.zshrc"
alias gls=/bin/ls
alias neorg='nvim -c "Neorg workspace main"'
### Functions
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }