Add neorg
This commit is contained in:
parent
4bd0009ae6
commit
2fb5f13d4a
@ -204,6 +204,26 @@
|
||||
:after :nvim-lspconfig
|
||||
:config (module-fn! :plugin.jdtls :configure))
|
||||
|
||||
;; neorg
|
||||
(use! :nvim-neorg/neorg
|
||||
:ft "norg"
|
||||
:cmd "Neorg"
|
||||
:module :neorg
|
||||
:requires :nvim-lua/plenary.nvim
|
||||
:run ":Neorg sync-parsers"
|
||||
:config #(setup! :neorg
|
||||
:load {
|
||||
:core.defaults { }
|
||||
:core.norg.concealer { }
|
||||
:core.norg.completion {
|
||||
:config { :engine :nvim-cmp }}
|
||||
:core.norg.dirman {
|
||||
:config {
|
||||
:workspaces {
|
||||
:japanese "~/neorg/japanese/"
|
||||
}
|
||||
:index "index.norg" }}}))
|
||||
|
||||
;; Sync all packages on first launch
|
||||
(if _G.first_launch
|
||||
(module-call! :packer :sync)))
|
||||
|
16
init.fnl
16
init.fnl
@ -55,6 +55,8 @@
|
||||
; Disable modeline for security
|
||||
(set vim.opt.modeline false)
|
||||
(set vim.opt.modelines 0)
|
||||
; Auto chdir into files' dirs
|
||||
(set vim.opt.autochdir true)
|
||||
|
||||
;; Remove trailing whitespace
|
||||
(fn remove-trailing-whitespace []
|
||||
@ -69,14 +71,14 @@
|
||||
|
||||
;; Spell keybindings
|
||||
(bind! :n :<leader>l (fn []
|
||||
(let [new-spell (not (vim.opt_local.spell:get))]
|
||||
(set vim.opt_local.spell new-spell)
|
||||
(print (if new-spell
|
||||
"Enabled Spellcheck"
|
||||
"Disabled Spellcheck")))))
|
||||
(let [new-spell (not (vim.opt_local.spell:get))]
|
||||
(set vim.opt_local.spell new-spell)
|
||||
(print (if new-spell
|
||||
"Enabled Spellcheck"
|
||||
"Disabled Spellcheck")))))
|
||||
|
||||
;; Enable spell in certian buffers
|
||||
(hook! :FileType [ :text :markdown :tex :bib ]
|
||||
(hook! :FileType [ :text :markdown :tex :bib :norg ]
|
||||
#(if (= (vim.fn.buflisted (vim.api.nvim_get_current_buf)) 1)
|
||||
(set vim.opt_local.spell true)))
|
||||
|
||||
@ -97,6 +99,6 @@
|
||||
|
||||
;; Better fennel formatting
|
||||
(hook! :FileType [ :fennel ]
|
||||
#(set vim.opt_local.equalprg "fnlfmt -"))
|
||||
#(set vim.opt_local.formatprg "fnlfmt -"))
|
||||
|
||||
(module-call! :packer :startup (require :plugin))
|
||||
|
Reference in New Issue
Block a user