From 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Wed, 24 Jul 2024 19:19:26 +0200 Subject: nvim: rewrite config in fennel One file isn't done, and there's also the question of ftplugin and co. One step at a time though, eh? --- dot_config/nvim/lua/plugins/init.lua | 45 ++++++++---------------------------- 1 file changed, 9 insertions(+), 36 deletions(-) (limited to 'dot_config/nvim/lua/plugins/init.lua') diff --git a/dot_config/nvim/lua/plugins/init.lua b/dot_config/nvim/lua/plugins/init.lua index 0e2aec1..15a7d95 100644 --- a/dot_config/nvim/lua/plugins/init.lua +++ b/dot_config/nvim/lua/plugins/init.lua @@ -1,36 +1,9 @@ -local conjureft = { - 'clojure', - 'fennel', - 'hy', - 'janet', - 'julia', - 'lisp', - 'racket', - 'scheme' -} - --- simple stuff that doesn't need any handling --- and doesn't fit in elsewhere -return { - { 'folke/lazy.nvim', version = false }, - { "Olical/nfnl", ft = "fennel" }, - { 'stevearc/dressing.nvim', opts = {}}, - { - 'Olical/conjure', - config = function(_, opts) - for k, v in pairs(opts) do - vim.g['conjure#' .. k] = v - end - end, - opts = { - ['mapping#prefix'] = 'e', - ['extract#tree_sitter#enabled'] = true, - -- disabling lua, python, rust - filetypes = conjureft, - ['filetype#fennel'] = 'conjure.client.fennel.stdio', - ['filetype#janet'] = 'conjure.client.janet.stdio', - }, - ft = conjureft, - }, - { 'tpope/vim-repeat' }, -} +-- [nfnl] Compiled from fnl/plugins/init.fnl by https://github.com/Olical/nfnl, do not edit. +local conjureft = {"clojure", "fennel", "hy", "janet", "julia", "lisp", "racket", "scheme"} +local function _1_(_, opts) + for k, v in pairs(opts) do + vim.g[("conjure#" .. k)] = v + end + return nil +end +return {{"folke/lazy.nvim", version = false}, {"Olical/nfnl", ft = "fennel"}, {"stevearc/dressing.nvim", opts = {}}, {"Olical/conjure", config = _1_, ft = conjureft, opts = {["mapping#prefix"] = "e", ["extract#tree_sitter#enabled"] = true, filetypes = conjureft, ["filetype#fennel"] = "conjure.client.fennel.stdio", ["filetype#janet"] = "conjure.client.janet.stdio"}}, {"tpope/vim-repeat"}} -- cgit v1.2.3