neorg init
This commit is contained in:
parent
e8199edfb8
commit
244e9a3d5d
|
@ -75,6 +75,7 @@ nnoremap <SPACE> <Nop>
|
||||||
let mapleader=" "
|
let mapleader=" "
|
||||||
map <leader>t :echo "leader tested!"<CR>
|
map <leader>t :echo "leader tested!"<CR>
|
||||||
map <leader>h :noh<CR>
|
map <leader>h :noh<CR>
|
||||||
|
let maplocalleader=","
|
||||||
|
|
||||||
" copy to Wayland clipboard when leader is used. (note, install gvim for this)
|
" copy to Wayland clipboard when leader is used. (note, install gvim for this)
|
||||||
vnoremap <leader>wy y :call system("wl-copy", @")<CR>
|
vnoremap <leader>wy y :call system("wl-copy", @")<CR>
|
||||||
|
|
|
@ -37,6 +37,9 @@ runtime tagbar.vim
|
||||||
" load suda
|
" load suda
|
||||||
runtime suda.vim
|
runtime suda.vim
|
||||||
|
|
||||||
|
" load neorg
|
||||||
|
runtime neorg.vim
|
||||||
|
|
||||||
" load ALE (another language server or something that works with COC)
|
" load ALE (another language server or something that works with COC)
|
||||||
"runtime ale.vim
|
"runtime ale.vim
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -23,6 +23,8 @@ Plug 'nvim-tree/nvim-web-devicons'
|
||||||
Plug 'rust-lang/rust.vim'
|
Plug 'rust-lang/rust.vim'
|
||||||
Plug 'preservim/tagbar'
|
Plug 'preservim/tagbar'
|
||||||
Plug 'lambdalisue/suda.vim'
|
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()
|
call plug#end()
|
||||||
|
|
|
@ -32,6 +32,7 @@ alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
|
||||||
alias gg=lazygit
|
alias gg=lazygit
|
||||||
alias reload="source ~/.zshrc"
|
alias reload="source ~/.zshrc"
|
||||||
alias gls=/bin/ls
|
alias gls=/bin/ls
|
||||||
|
alias neorg='nvim -c "Neorg workspace main"'
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
|
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
|
||||||
|
|
Loading…
Reference in New Issue