1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-04-14 20:08:33 +02:00
parent 950c644892
commit 2339f35451
8 changed files with 42 additions and 8 deletions

View File

@ -45,7 +45,7 @@ local autocmds = {
"BufWritePost",
{
pattern = { "*.adoc" },
command = "silent!!asciidoctor-pdf % &",
command = "silent!!asciidoctor -r asciidoctor-pdf -r asciidoctor-diagram -b pdf % &",
},
},
}

View File

@ -8,6 +8,7 @@ local g = vim.g
o.shiftwidth = 4
o.tabstop = 4
o.scrolloff = 8
o.conceallevel = 0
g.loaded_node_provider = 0
g.loaded_perl_provider = 0

View File

@ -2,11 +2,16 @@
---@field ui custom.ui
---@field language custom.language
---@field shortcuts custom.shortcuts
---@field prompts custom.prompts
---@field secrets? custom.secrets
local M = {}
setmetatable(M, {
__index = function(_, k)
return require("custom." .. k)
local ok, mod = pcall(require, "custom." .. k)
if ok then
return mod
end
end,
})

View File

@ -30,6 +30,7 @@ M.mason_install = {
"basedpyright",
"bash-language-server",
"codelldb",
"debugpy",
"dockerfile-language-server",
"docker-compose-language-service",
"json-lsp",
@ -191,4 +192,6 @@ setmetatable(M, {
end,
})
M.dap = {}
return M

View File

@ -0,0 +1,23 @@
return {
{
"echasnovski/mini.surround",
opts = {
custom_surroundings = {
B = {
input = { "{{ ().*() }}" },
output = { left = "{{ ", right = " }}" },
},
},
},
},
{
"echasnovski/mini.ai",
opts = {
custom_textobjects = {
B = {
require("mini.ai").gen_spec.pair("{{ ", " }}"),
},
},
},
},
}

View File

@ -275,7 +275,6 @@ return {
{ "<leader>zl", function() require("zk.commands").get("ZkLinks")() end, desc = "Backlinks" },
{ "<leader>zx", function() require("zk.commands").get("ZkIndex")() end, desc = "Index" },
{ "<leader>zf", function() require("zk.commands").get("ZkNotes")({ sort = { 'modified' } }) end, desc = "Find Notes" },
{ "<leader>sz", function() require("zk.commands").get("ZkNotes")({ sort = { 'modified' } }) end, desc = "Notes" },
{ "<leader>zt", function() require("zk.commands").get("ZkTags")() end, desc = "Find Note Tags" },
{ "<leader>zf", function() require("zk.commands").get("ZkMatch")() end, desc = "Find Notes (Match Selection)", mode = { "v" } },
{ "<leader>zi", function() require("zk.commands").get("ZkInsertLinkAtSelection")() end, desc = "Insert Link", mode = { "n", "v" } },

View File

@ -1,3 +1,4 @@
---@type LazySpec
return {
{
"nvim-treesitter/nvim-treesitter",

View File

@ -1,3 +1,4 @@
---@type LazySpec
return {
{
"folke/tokyonight.nvim",
@ -5,7 +6,7 @@ return {
opts = { style = "night" },
on_highlights = function(hl, _)
hl.CurSearch = nil
end
end,
},
{
"folke/noice.nvim",
@ -53,8 +54,9 @@ return {
lualine_y = {
{
function()
--stylua: ignore
local chars = { "", "", "", "", "", "", "", "", "", "", "", "", "" }
return chars[math.ceil(vim.fn.line "." / vim.fn.line "$" * #chars)]
return chars[math.ceil(vim.fn.line(".") / vim.fn.line("$") * #chars)]
end,
separator = " ",
padding = { left = 1, right = 0 },
@ -70,7 +72,7 @@ return {
},
{ "fileformat", padding = { left = 0, right = 1 } },
},
}
}
}
},
},
},
}