kickstart.nvim/lua/custom/plugins/lisp.lua

52 lines
1.5 KiB
Lua
Raw Normal View History

2023-08-24 17:57:27 -04:00
local lisp_dialects = { "clojure", "fennel", "scheme", "lisp" }
return {
2023-08-30 00:34:43 -04:00
-- perhaps replace parinfer with guns/vim-sexp and tpope/vim-sexp-mappings-for-regular-people
2023-09-26 12:58:00 -04:00
-- {
-- "gpanders/nvim-parinfer",
-- ft = lisp_dialects,
-- init = function()
-- vim.g.parinfer_force_balance = true
-- vim.g.parinfer_comment_chars = ";;"
-- end,
-- },
2023-08-24 17:57:27 -04:00
{
2023-09-26 12:58:00 -04:00
"julienvincent/nvim-paredit",
2023-09-07 16:30:38 -04:00
ft = lisp_dialects,
2023-09-26 12:58:00 -04:00
config = function()
require("nvim-paredit").setup()
end
2023-08-24 17:57:27 -04:00
},
{
"Olical/conjure",
2023-09-07 16:30:38 -04:00
ft = lisp_dialects,
2023-08-24 17:57:27 -04:00
init = function()
vim.api.nvim_create_autocmd("BufNewFile", {
group = vim.api.nvim_create_augroup("conjure_log_disable_lsp", { clear = true }),
pattern = { "conjure-log-*" },
callback = function() vim.diagnostic.disable(0) end,
desc = "Conjure Log disable LSP diagnostics",
})
vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("comment_config", { clear = true }),
pattern = { "clojure" },
callback = function() vim.bo.commentstring = ";; %s" end,
desc = "Lisp style line comment",
})
2023-09-07 16:30:20 -04:00
vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, {
group = vim.api.nvim_create_augroup("repl_is_clojrue_file", { clear = true }),
pattern = { "*.repl" },
callback = function()
vim.cmd([[ set ft=clojure ]])
end,
desc = "Associate *.repl file as a clojure filetype."
})
2023-09-27 08:52:16 -04:00
-- Guile socket repl support
vim.g["conjure#filetype#scheme"] = "conjure.client.guile.socket"
2023-08-24 17:57:27 -04:00
end,
},
}