Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 0 additions & 58 deletions nvim/lazy-lock.json

This file was deleted.

20 changes: 10 additions & 10 deletions nvim/lua/plugins/mini.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,28 @@ return {
require("mini.surround").setup()
require("mini.pairs").setup()
require("mini.trailspace").setup()

-- utilities
require("mini.misc").setup()
require("mini.misc").setup_restore_cursor()
require("mini.operators").setup()

-- keymap for zoom
vim.keymap.set('n', '<leader>z', require('mini.misc').zoom, { desc = 'Zoom current buffer' })
vim.keymap.set("n", "<leader>z", require("mini.misc").zoom, { desc = "Zoom current buffer" })

-- enhanced text objects
require("mini.ai").setup({
custom_textobjects = {
-- Python text objects
f = require('mini.ai').gen_spec.treesitter({ a = '@function.outer', i = '@function.inner' }),
c = require('mini.ai').gen_spec.treesitter({ a = '@class.outer', i = '@class.inner' }),
f = require("mini.ai").gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }),
c = require("mini.ai").gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }),
-- Markdown text objects
h = require('mini.ai').gen_spec.treesitter({ a = '@markup.heading', i = '@markup.heading' }),
h = require("mini.ai").gen_spec.treesitter({ a = "@markup.heading", i = "@markup.heading" }),
-- Code blocks in markdown
C = function(ai_type)
local pattern = '```.-```'
return require('mini.ai').gen_spec.pair(pattern, pattern, {
type = 'non-balanced'
local pattern = "```.-```"
return require("mini.ai").gen_spec.pair(pattern, pattern, {
type = "non-balanced",
})(ai_type)
end,
},
Expand Down
18 changes: 7 additions & 11 deletions nvim/lua/plugins/obsidian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,18 @@ return {
-- The options are passed directly to `vim.api.nvim_set_hl()`. See `:help nvim_set_hl`.
ObsidianTodo = { fg = "NONE", bg = "NONE" },
},
-- Optional, alternatively you can customize the frontmatter data.
---@return table
note_frontmatter_func = function(note)
local out = {
id = note.id,
created = os.date("%Y-%m-%d %H:%M:%S"),
link = "",
parent = "",
tags = { "note" }, -- Add your default tags here
}

-- Add title as alias if it exists
-- Add the title of the note as an alias.
if note.title then
note:add_alias(note.title)
out.aliases = note.aliases
end

-- Preserve any existing metadata
local out = { id = note.id, aliases = note.aliases, tags = note.tags }

-- `note.metadata` contains any manually added fields in the frontmatter.
-- So here we just make sure those fields are kept in the frontmatter.
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
for k, v in pairs(note.metadata) do
out[k] = v
Expand Down
1 change: 1 addition & 0 deletions python/setup-uv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ uv tool install ruff --python 3.11.9
uv tool install yamllint --python 3.11.9
uv tool install pydocstyle --python 3.11.9
uv tool install sqlfluff --python 3.11.9
uv tool install pynvim --python 3.11.9