[NeoVim] Small changes

This commit is contained in:
2022-08-30 17:48:42 +02:00
parent a87dbbef64
commit f0f796572c
5 changed files with 20 additions and 4 deletions

View File

@@ -1,4 +1,15 @@
(fn setup [module args] (fn setup [module args]
`((. (require ,module) :setup) ,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}

View File

@@ -1,9 +1,11 @@
(import-macros {: packer : packer-setup : use!} :hibiscus.packer) (import-macros {: packer-setup : use!} :hibiscus.packer)
(import-macros {: setup} :macros) (import-macros {: packer : setup} :macros)
(packer-setup) (packer-setup)
(packer (packer
{:display {:open_fn (. (require :packer.util) :float)}}
(use! :udayvir-singh/tangerine.nvim) (use! :udayvir-singh/tangerine.nvim)
(use! :udayvir-singh/hibiscus.nvim) (use! :udayvir-singh/hibiscus.nvim)

View File

@@ -16,4 +16,4 @@
(map! [n] :<S-Right> ":bnext<CR>") (map! [n] :<S-Right> ":bnext<CR>")
(map! [n] :<S-Left> ":bprevious<CR>") (map! [n] :<S-Left> ":bprevious<CR>")
(map! [n] :q ":Bdelete<CR>") (map! [n] :q ":Bwipeout<CR>")

View File

@@ -15,3 +15,5 @@
:highlight {:enable true :highlight {:enable true
:disable [] :disable []
:additional_vim_regex_highlighting false}}) :additional_vim_regex_highlighting false}})
((. (require :nvim-treesitter.install) :setup_auto_install))

View File

@@ -1,3 +1,4 @@
(import-macros {: g!} :hibiscus.vim) (import-macros {: g!} :hibiscus.vim)
(g! :vimtex_view_method "zathura") (g! :vimtex_view_method "zathura")
(g! :vimtex_syntax_enabled 0)