[NeoVim] Small changes
This commit is contained in:
@@ -1,4 +1,15 @@
|
||||
(fn setup [module args]
|
||||
`((. (require ,module) :setup) ,args))
|
||||
|
||||
{: setup}
|
||||
(fn packer [config ...]
|
||||
"syntactic sugar over packer's startup function."
|
||||
(local packer `(require :packer))
|
||||
`((. ,packer :startup)
|
||||
{1 (lambda [(unquote (sym :use))]
|
||||
(use :wbthomason/packer.nvim)
|
||||
(do ,...)
|
||||
(if (= true _G.packer_bootstrap)
|
||||
((. ,packer :sync))))
|
||||
:config ,config}))
|
||||
|
||||
{: setup : packer}
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
(import-macros {: packer : packer-setup : use!} :hibiscus.packer)
|
||||
(import-macros {: setup} :macros)
|
||||
(import-macros {: packer-setup : use!} :hibiscus.packer)
|
||||
(import-macros {: packer : setup} :macros)
|
||||
|
||||
(packer-setup)
|
||||
|
||||
(packer
|
||||
{:display {:open_fn (. (require :packer.util) :float)}}
|
||||
|
||||
(use! :udayvir-singh/tangerine.nvim)
|
||||
(use! :udayvir-singh/hibiscus.nvim)
|
||||
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
|
||||
(map! [n] :<S-Right> ":bnext<CR>")
|
||||
(map! [n] :<S-Left> ":bprevious<CR>")
|
||||
(map! [n] :q ":Bdelete<CR>")
|
||||
(map! [n] :q ":Bwipeout<CR>")
|
||||
|
||||
@@ -15,3 +15,5 @@
|
||||
:highlight {:enable true
|
||||
:disable []
|
||||
:additional_vim_regex_highlighting false}})
|
||||
|
||||
((. (require :nvim-treesitter.install) :setup_auto_install))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
(import-macros {: g!} :hibiscus.vim)
|
||||
|
||||
(g! :vimtex_view_method "zathura")
|
||||
(g! :vimtex_syntax_enabled 0)
|
||||
|
||||
Reference in New Issue
Block a user