feat(nvim): add fennel (hotpot.nvim)

This commit is contained in:
Maciej Jur 2023-08-19 21:48:52 +02:00
parent 6fefab0b80
commit 1c62cb8812
Signed by: kamov
GPG key ID: 191CBFF5F72ECAFD
5 changed files with 50 additions and 21 deletions

View file

@ -0,0 +1,7 @@
{
1 "rebelot/kanagawa.nvim"
:lazy false
:priority 1000
:config (fn [] (vim.cmd "colorscheme kanagawa"))
}

View file

@ -0,0 +1,11 @@
{
1 "nvim-lualine/lualine.nvim"
:dependencies [
"nvim-tree/nvim-web-devicons"
]
:config (fn []
(local lualine (require "lualine"))
(lualine.setup)
)
}

View file

@ -1,13 +1,15 @@
-- New bytecode cache
vim.loader.enable()
-- Setup global config
require("global")
-- Setup Neovide config
-- Only run this if inside Neovide
if vim.g.neovide then
require("neovide")
end
-- Bootstrap package manager
-- Bootstrap Lazy
do
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
@ -23,6 +25,27 @@ do
vim.opt.rtp:prepend(lazypath)
end
-- Bootstrap Fennel
do
local hotpotpath = vim.fn.stdpath("data") .. "/lazy/hotpot.nvim"
if not vim.loop.fs_stat(hotpotpath) then
vim.notify("Bootstrapping hotpot.nvim...", vim.log.levels.INFO)
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
-- You may with to pin a known version tag with `--branch vX.Y.Z`
"https://github.com/rktjmp/hotpot.nvim.git",
hotpotpath,
})
end
vim.opt.rtp:prepend(hotpotpath)
end
-- Load Fennel
require("hotpot")
-- Load lazy
local lazy_ok, lazy = pcall(require, "lazy")
if lazy_ok then

View file

@ -9,6 +9,7 @@
"diffview.nvim": { "branch": "main", "commit": "db97e667e03294bfa9f15e544e78f3082247bf79" },
"gitsigns.nvim": { "branch": "main", "commit": "749267aaa863c30d721c9913699c5d94e0c07dd3" },
"haskell-tools.nvim": { "branch": "1.x.x", "commit": "2c3cbdf386ecb03210b56962db96e601705c5118" },
"hotpot.nvim": { "branch": "master", "commit": "cfe493572fd80678855c3fd3c4cba9f2fec840de" },
"kanagawa.nvim": { "branch": "master", "commit": "1749cea392acb7d1548a946fcee1e6f1304cd3cb" },
"lazy.nvim": { "branch": "main", "commit": "dac844ed617dda4f9ec85eb88e9629ad2add5e05" },
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },

View file

@ -1,26 +1,13 @@
return {
-- Fennel
{"rktjmp/hotpot.nvim"},
-- Editor theme
{
"rebelot/kanagawa.nvim",
lazy = false,
priority = 1000,
config = function()
vim.cmd("colorscheme kanagawa")
end,
},
require("plugins.kanagawa"),
-- Status line
{
"nvim-lualine/lualine.nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
local lualine = require("lualine")
lualine.setup()
end,
},
require("plugins.lualine"),
-- File tree
{
@ -103,7 +90,7 @@ return {
sync_install = false,
ensure_installed = {
-- nvim
"vim", "vimdoc", "lua",
"vim", "vimdoc", "lua", "fennel",
-- misc
"comment", "dockerfile", "json", "yaml", "toml", "regex",
-- git