chore: clean up dotfiles and add gitignore whitelist
Switch to whitelist-based .gitignore to only track essential configs: nvim, yazi, kitty, zsh, ideavim, karabiner, tmux, scripts, starship. Remove history, compiled files, and plugin dirs from tracking. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -11,25 +11,6 @@ return {
|
||||
"okuuva/auto-save.nvim",
|
||||
version = "v1.*",
|
||||
event = { "InsertLeave", "TextChanged" },
|
||||
init = function()
|
||||
local group = vim.api.nvim_create_augroup("autosave_message", { clear = true })
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "AutoSaveWritePost",
|
||||
group = group,
|
||||
callback = function(opts)
|
||||
local saved_buffer = opts.data and opts.data.saved_buffer
|
||||
if not saved_buffer then
|
||||
return
|
||||
end
|
||||
|
||||
local filename = vim.fn.fnamemodify(vim.api.nvim_buf_get_name(saved_buffer), ":t")
|
||||
if filename == "" then
|
||||
filename = "[No Name]"
|
||||
end
|
||||
vim.notify("AutoSave: " .. filename, vim.log.levels.INFO, { title = "auto-save.nvim" })
|
||||
end,
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
enabled = true,
|
||||
trigger_events = {
|
||||
@@ -129,7 +110,13 @@ return {
|
||||
{
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
opts = {
|
||||
modes = {
|
||||
char = {
|
||||
enabled = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash jump" },
|
||||
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash treesitter" },
|
||||
@@ -204,6 +191,39 @@ return {
|
||||
|
||||
-- Markdown
|
||||
{ "SidOfc/mkdx", ft = "markdown" },
|
||||
{
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*",
|
||||
lazy = true,
|
||||
ft = "markdown",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
keys = {
|
||||
{ "<leader>on", "<cmd>ObsidianNew<cr>", desc = "New note" },
|
||||
{ "<leader>oo", "<cmd>ObsidianQuickSwitch<cr>", desc = "Quick switch" },
|
||||
{ "<leader>os", "<cmd>ObsidianSearch<cr>", desc = "Search notes" },
|
||||
{ "<leader>ob", "<cmd>ObsidianBacklinks<cr>", desc = "Backlinks" },
|
||||
{ "<leader>ot", "<cmd>ObsidianTags<cr>", desc = "Tags" },
|
||||
{ "<leader>od", "<cmd>ObsidianToday<cr>", desc = "Today's note" },
|
||||
},
|
||||
opts = {
|
||||
workspaces = {
|
||||
{ name = "private", path = "~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Private" },
|
||||
{ name = "work", path = "~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Work" },
|
||||
},
|
||||
completion = { nvim_cmp = false, min_chars = 2 },
|
||||
ui = { enable = false }, -- render-markdown.nvim übernimmt das
|
||||
disable_frontmatter = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"iamcco/markdown-preview.nvim",
|
||||
cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
|
||||
ft = { "markdown" },
|
||||
build = function() vim.fn["mkdp#util#install"]() end,
|
||||
keys = {
|
||||
{ "<leader>mp", "<cmd>MarkdownPreviewToggle<cr>", desc = "Markdown Preview" },
|
||||
},
|
||||
},
|
||||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons" },
|
||||
|
||||
@@ -104,7 +104,7 @@ return {
|
||||
end,
|
||||
},
|
||||
{
|
||||
"fmuaddel/blink-copilot",
|
||||
"giuxtaposition/blink-cmp-copilot",
|
||||
dependencies = { "zbirenbaum/copilot.lua" },
|
||||
},
|
||||
},
|
||||
@@ -126,7 +126,7 @@ return {
|
||||
},
|
||||
copilot = {
|
||||
name = "copilot",
|
||||
module = "blink-copilot",
|
||||
module = "blink-cmp-copilot",
|
||||
score_offset = 50,
|
||||
async = true,
|
||||
},
|
||||
|
||||
@@ -34,6 +34,9 @@ return {
|
||||
highlight_git = true,
|
||||
highlight_opened_files = "all",
|
||||
icons = {
|
||||
show = {
|
||||
diagnostics = false,
|
||||
},
|
||||
glyphs = {
|
||||
default = "",
|
||||
symlink = "",
|
||||
@@ -61,12 +64,6 @@ return {
|
||||
diagnostics = {
|
||||
enable = true,
|
||||
show_on_dirs = true,
|
||||
icons = {
|
||||
hint = "",
|
||||
info = "",
|
||||
warning = "",
|
||||
error = "",
|
||||
},
|
||||
},
|
||||
filters = {
|
||||
dotfiles = false,
|
||||
|
||||
@@ -18,7 +18,7 @@ return {
|
||||
json = { "prettier" },
|
||||
html = { "prettier" },
|
||||
css = { "prettier" },
|
||||
markdown = { "prettier" },
|
||||
markdown = { "mdformat" },
|
||||
yaml = { "prettier" },
|
||||
},
|
||||
format_on_save = {
|
||||
|
||||
Reference in New Issue
Block a user