cleanup
This commit is contained in:
parent
950c644892
commit
2339f35451
|
@ -45,7 +45,7 @@ local autocmds = {
|
|||
"BufWritePost",
|
||||
{
|
||||
pattern = { "*.adoc" },
|
||||
command = "silent!!asciidoctor-pdf % &",
|
||||
command = "silent!!asciidoctor -r asciidoctor-pdf -r asciidoctor-diagram -b pdf % &",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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("{{ ", " }}"),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
|
@ -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" } },
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
---@type LazySpec
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
|
|
|
@ -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 } },
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue