From 21dc717f110aac4d47e99b2974e7c8a2dec0e432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Mon, 18 Nov 2024 20:02:30 +0100 Subject: nvim: add paredit My wife wanted it and I guess some parts of this are gonna be useful for me :) Mostly the navigation shortcuts though :D --- dot_config/nvim/fnl/plugins/langs.fnl | 16 +++++++++++----- dot_config/nvim/lua/plugins/langs.lua | 3 ++- 2 files changed, 13 insertions(+), 6 deletions(-) (limited to 'dot_config') diff --git a/dot_config/nvim/fnl/plugins/langs.fnl b/dot_config/nvim/fnl/plugins/langs.fnl index 21478a8..e785d98 100644 --- a/dot_config/nvim/fnl/plugins/langs.fnl +++ b/dot_config/nvim/fnl/plugins/langs.fnl @@ -1,4 +1,10 @@ (import-macros {:mixed-table ·} :toast.macros) + +(local lisps [:clojure + :fennel + :janet + :scm]) + ; language support [(· :nvim-treesitter/nvim-treesitter & :version false @@ -17,9 +23,9 @@ :version false :dependencies [:godlygeek/tabular] :ft :markdown) - ; helper for lisps + ; helpers for lisps (· :gpanders/nvim-parinfer & - :ft [:clojure - :fennel - :janet - :scm])] + :ft lisps) + (· :julienvincent/nvim-paredit & + :ft lisps + :config {:indent {:enabled true}})] diff --git a/dot_config/nvim/lua/plugins/langs.lua b/dot_config/nvim/lua/plugins/langs.lua index 0e49dc6..84dea21 100644 --- a/dot_config/nvim/lua/plugins/langs.lua +++ b/dot_config/nvim/lua/plugins/langs.lua @@ -1,2 +1,3 @@ -- [nfnl] Compiled from fnl/plugins/langs.fnl by https://github.com/Olical/nfnl, do not edit. -return {{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate", dependnecies = {"nvim-treesitter/nvim-treesitter-textobjects"}, main = "nvim-treesitter.configs", opts = {ensure_installed = "all", ignore_install = {"norg"}, sync_install = "true", highlight = {enable = true, disable = {"markdown"}, additional_vim_regex_highlighting = {"markdown"}}}, version = false}, {"janet-lang/janet.vim", ft = "janet"}, {"preservim/vim-markdown", dependencies = {"godlygeek/tabular"}, ft = "markdown", version = false}, {"gpanders/nvim-parinfer", ft = {"clojure", "fennel", "janet", "scm"}}} +local lisps = {"clojure", "fennel", "janet", "scm"} +return {{"nvim-treesitter/nvim-treesitter", build = ":TSUpdate", dependnecies = {"nvim-treesitter/nvim-treesitter-textobjects"}, main = "nvim-treesitter.configs", opts = {ensure_installed = "all", ignore_install = {"norg"}, sync_install = "true", highlight = {enable = true, disable = {"markdown"}, additional_vim_regex_highlighting = {"markdown"}}}, version = false}, {"janet-lang/janet.vim", ft = "janet"}, {"preservim/vim-markdown", dependencies = {"godlygeek/tabular"}, ft = "markdown", version = false}, {"gpanders/nvim-parinfer", ft = lisps}, {"julienvincent/nvim-paredit", config = {indent = {enabled = true}}, ft = lisps}} -- cgit v1.2.3