Initial commit

This commit is contained in:
Skylar Hill 2024-02-14 18:03:44 -06:00
commit 4d8ed2a1c9
6 changed files with 108 additions and 0 deletions

3
init.lua Normal file
View File

@ -0,0 +1,3 @@
return {
colorscheme = "catppuccin-mocha"
}

24
mappings.lua Normal file
View File

@ -0,0 +1,24 @@
local Terminal = require('toggleterm.terminal').Terminal
local bacon = Terminal:new({ cmd = "bacon", hidden = true })
local entangled = Terminal:new({ cmd = "entangled watch", hidden = true })
function _bacon_toggle()
bacon.dir = vim.fn.expand("%:h")
bacon:toggle()
end
function _entangled_toggle()
entangled.dir = vim.fn.expand("%:h")
entangled:toggle()
end
return {
n = {
["<leader>Z"] = { name = "zk" },
["<leader>Zi"] = { ":ZkIndex<cr>", desc = "Index notes" },
["<leader>Zn"] = { ":ZkNew<cr>", desc = "New note" },
["<leader>Zs"] = { ":ZnNotes<cr>", desc = "Search notes" },
["<leader>tb"] = { _bacon_toggle, desc = "ToggleTerm bacon "},
["<leader>te"] = { _entangled_toggle, desc = "ToggleTerm entangled" },
}
}

9
plugins/community.lua Normal file
View File

@ -0,0 +1,9 @@
return {
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.rust" },
{ import = "astrocommunity.pack.markdown" },
{ import = "astrocommunity.pack.html-css" },
{ import = "astrocommunity.colorscheme.catppuccin" },
{ import = "astrocommunity.note-taking.zk-nvim" },
{ import = "astrocommunity.workflow.hardtime-nvim" },
}

39
plugins/hardtime.lua Normal file
View File

@ -0,0 +1,39 @@
return {
"m4xshen/hardtime.nvim",
opts = {
disabled_keys = {
["<Up>"] = {},
["<Down>"] = {},
["<Left>"] = {},
["<Right>"] = {},
["<Home>"] = {},
["<End>"] = {},
},
restricted_keys = {
["<Up>"] = { "n", "i", "x" },
["<Down>"] = { "n", "i", "x" },
["<Left>"] = { "n", "i", "x" },
["<Right>"] = { "n", "i", "x" },
["<Home>"] = { "i" },
["<End>"] = { "i" },
},
hints = {
["<End>a"] = {
message = function()
return "Use A insead of <End>a"
end,
length = 6,
},
["ddO"] = {
message = function()
return "Use cc instead of ddO"
end,
length = 3,
}
}
},
config = function(_, opts)
require("hardtime").setup(opts)
require("hardtime").enable()
end
}

10
plugins/nvim-surround.lua Normal file
View File

@ -0,0 +1,10 @@
return {
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}

23
plugins/zk-nvim.lua Normal file
View File

@ -0,0 +1,23 @@
local utils = require "astronvim.utils"
return {
{
"mickael-menu/zk-nvim",
opts = {
picker = "telescope",
},
cmd = { "ZkNew", "ZkIndex", "ZkNewFromTitleSelection",
"ZkNewFromContentSelection", "ZkCd", "ZkNotes",
"ZkBacklinks", "ZkLinks", "ZkInsertLink",
"ZkInsertLinkAtSelection", "ZkMatch", "ZkTags" },
config = function(_, opts)
require("zk").setup(opts)
require("zk").enable()
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "zk") end,
},
}