feat(nvim): add fennel (hotpot.nvim)
This commit is contained in:
parent
6fefab0b80
commit
1c62cb8812
7
nvim/fnl/plugins/kanagawa.fnl
Normal file
7
nvim/fnl/plugins/kanagawa.fnl
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
1 "rebelot/kanagawa.nvim"
|
||||||
|
:lazy false
|
||||||
|
:priority 1000
|
||||||
|
:config (fn [] (vim.cmd "colorscheme kanagawa"))
|
||||||
|
}
|
||||||
|
|
11
nvim/fnl/plugins/lualine.fnl
Normal file
11
nvim/fnl/plugins/lualine.fnl
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
1 "nvim-lualine/lualine.nvim"
|
||||||
|
:dependencies [
|
||||||
|
"nvim-tree/nvim-web-devicons"
|
||||||
|
]
|
||||||
|
:config (fn []
|
||||||
|
(local lualine (require "lualine"))
|
||||||
|
(lualine.setup)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
|
@ -1,13 +1,15 @@
|
||||||
|
-- New bytecode cache
|
||||||
|
vim.loader.enable()
|
||||||
|
|
||||||
-- Setup global config
|
-- Setup global config
|
||||||
require("global")
|
require("global")
|
||||||
|
|
||||||
-- Setup Neovide config
|
|
||||||
-- Only run this if inside Neovide
|
-- Only run this if inside Neovide
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
require("neovide")
|
require("neovide")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Bootstrap package manager
|
-- Bootstrap Lazy
|
||||||
do
|
do
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
|
@ -23,6 +25,27 @@ do
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
end
|
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
|
-- Load lazy
|
||||||
local lazy_ok, lazy = pcall(require, "lazy")
|
local lazy_ok, lazy = pcall(require, "lazy")
|
||||||
if lazy_ok then
|
if lazy_ok then
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
"diffview.nvim": { "branch": "main", "commit": "db97e667e03294bfa9f15e544e78f3082247bf79" },
|
"diffview.nvim": { "branch": "main", "commit": "db97e667e03294bfa9f15e544e78f3082247bf79" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "749267aaa863c30d721c9913699c5d94e0c07dd3" },
|
"gitsigns.nvim": { "branch": "main", "commit": "749267aaa863c30d721c9913699c5d94e0c07dd3" },
|
||||||
"haskell-tools.nvim": { "branch": "1.x.x", "commit": "2c3cbdf386ecb03210b56962db96e601705c5118" },
|
"haskell-tools.nvim": { "branch": "1.x.x", "commit": "2c3cbdf386ecb03210b56962db96e601705c5118" },
|
||||||
|
"hotpot.nvim": { "branch": "master", "commit": "cfe493572fd80678855c3fd3c4cba9f2fec840de" },
|
||||||
"kanagawa.nvim": { "branch": "master", "commit": "1749cea392acb7d1548a946fcee1e6f1304cd3cb" },
|
"kanagawa.nvim": { "branch": "master", "commit": "1749cea392acb7d1548a946fcee1e6f1304cd3cb" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "dac844ed617dda4f9ec85eb88e9629ad2add5e05" },
|
"lazy.nvim": { "branch": "main", "commit": "dac844ed617dda4f9ec85eb88e9629ad2add5e05" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },
|
"lualine.nvim": { "branch": "master", "commit": "45e27ca739c7be6c49e5496d14fcf45a303c3a63" },
|
||||||
|
|
|
@ -1,26 +1,13 @@
|
||||||
return {
|
return {
|
||||||
|
|
||||||
|
-- Fennel
|
||||||
|
{"rktjmp/hotpot.nvim"},
|
||||||
|
|
||||||
-- Editor theme
|
-- Editor theme
|
||||||
{
|
require("plugins.kanagawa"),
|
||||||
"rebelot/kanagawa.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
vim.cmd("colorscheme kanagawa")
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Status line
|
-- Status line
|
||||||
{
|
require("plugins.lualine"),
|
||||||
"nvim-lualine/lualine.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-tree/nvim-web-devicons",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local lualine = require("lualine")
|
|
||||||
lualine.setup()
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- File tree
|
-- File tree
|
||||||
{
|
{
|
||||||
|
@ -103,7 +90,7 @@ return {
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
-- nvim
|
-- nvim
|
||||||
"vim", "vimdoc", "lua",
|
"vim", "vimdoc", "lua", "fennel",
|
||||||
-- misc
|
-- misc
|
||||||
"comment", "dockerfile", "json", "yaml", "toml", "regex",
|
"comment", "dockerfile", "json", "yaml", "toml", "regex",
|
||||||
-- git
|
-- git
|
||||||
|
|
Loading…
Reference in a new issue