From 05d67a163d144d9464956d5f3d27f41a3daeb56c Mon Sep 17 00:00:00 2001 From: not Date: Tue, 15 Feb 2022 11:46:12 -0600 Subject: [PATCH 1/2] feat: add `lisp` support includes fennel, lisp and scheme filetypes --- lua/Comment/ft.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lua/Comment/ft.lua b/lua/Comment/ft.lua index 3b4bbde9..7e5d7d63 100644 --- a/lua/Comment/ft.lua +++ b/lua/Comment/ft.lua @@ -12,6 +12,7 @@ local M = { fsharp_b = '(*%s*)', html = '', latex = '%%s', + lisp = ';;%s', } ---Lang table that contains commentstring (linewise/blockwise) for mutliple filetypes @@ -29,6 +30,7 @@ local L = { dhall = { M.dash, M.haskell_b }, dot = { M.cxx_l, M.cxx_b }, elm = { M.dash, M.haskell_b }, + fennel = { M.lisp }, fish = { M.hash }, fsharp = { M.cxx_l, M.fsharp_b }, gdb = { M.hash }, @@ -46,6 +48,7 @@ local L = { jsonc = { M.cxx_l }, julia = { M.hash, '#=%s=#' }, lidris = { M.dash, M.haskell_b }, + lisp = { M.lisp }, lua = { M.dash, M.dash_bracket }, markdown = { M.html, M.html }, make = { M.hash }, @@ -61,6 +64,7 @@ local L = { ruby = { M.hash }, rust = { M.cxx_l, M.cxx_b }, scala = { M.cxx_l, M.cxx_b }, + scheme = { M.lisp }, sh = { M.hash }, sql = { M.dash, M.cxx_b }, svelte = { M.html, M.html }, From 281c5a566e9fc84ea7ab93fb91bdf97e0743d631 Mon Sep 17 00:00:00 2001 From: mvllow Date: Tue, 15 Feb 2022 14:16:57 -0600 Subject: [PATCH 2/2] feat: add `lisp` block comment --- lua/Comment/ft.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lua/Comment/ft.lua b/lua/Comment/ft.lua index 7e5d7d63..9f862db9 100644 --- a/lua/Comment/ft.lua +++ b/lua/Comment/ft.lua @@ -12,7 +12,8 @@ local M = { fsharp_b = '(*%s*)', html = '', latex = '%%s', - lisp = ';;%s', + lisp_l = ';;%s', + lisp_b = '#|%s|#', } ---Lang table that contains commentstring (linewise/blockwise) for mutliple filetypes @@ -30,7 +31,7 @@ local L = { dhall = { M.dash, M.haskell_b }, dot = { M.cxx_l, M.cxx_b }, elm = { M.dash, M.haskell_b }, - fennel = { M.lisp }, + fennel = { M.lisp_l }, fish = { M.hash }, fsharp = { M.cxx_l, M.fsharp_b }, gdb = { M.hash }, @@ -48,7 +49,7 @@ local L = { jsonc = { M.cxx_l }, julia = { M.hash, '#=%s=#' }, lidris = { M.dash, M.haskell_b }, - lisp = { M.lisp }, + lisp = { M.lisp_l, M.lisp_b }, lua = { M.dash, M.dash_bracket }, markdown = { M.html, M.html }, make = { M.hash }, @@ -64,7 +65,7 @@ local L = { ruby = { M.hash }, rust = { M.cxx_l, M.cxx_b }, scala = { M.cxx_l, M.cxx_b }, - scheme = { M.lisp }, + scheme = { M.lisp_l, M.lisp_b }, sh = { M.hash }, sql = { M.dash, M.cxx_b }, svelte = { M.html, M.html },