Update 2025-02-28

Update 2025-02-14

Update 2025-02-16

Update 2025-02-21

Update 2025-02-23

Update 2025-02-25

Update 2025-02-27

Update 2025-02-28
This commit is contained in:
2025-02-07 19:47:38 +02:00
parent 464e342e58
commit e0f12a9ce3
36 changed files with 487 additions and 331 deletions

View File

@@ -87,12 +87,6 @@ vim.api.nvim_create_autocmd({ "BufWritePost" }, {
end,
})
vim.filetype.add({
pattern = {
[".*/hypr/.*%.conf"] = "hyprlang",
},
})
-- Hyprlang LSP
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.hl", "hypr*.conf" },
@@ -130,8 +124,4 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, {
})
vim.opt_local.colorcolumn = "80"
end
vim.api.nvim_create_autocmd({ "FileType" }, {
pattern = { "markdown", "norg", "typst", "tex" },
callback = setup_soft_wrap,
}) ]]
]]

View File

@@ -1,18 +0,0 @@
return {
"LunarVim/bigfile.nvim",
event = "BufReadPre",
opts = {
filesize = 1, -- size of the file in MiB, the plugin round file sizes to the closest MiB
pattern = { "*" }, -- autocmd pattern or function see <### Overriding the detection of big files>
features = { -- features to disable
"indent_blankline",
"illuminate",
"lsp",
"treesitter",
"syntax",
"matchparen",
"vimopts",
"filetype",
},
},
}

View File

@@ -75,7 +75,7 @@ return {
"snippets",
"ripgrep",
"obsidian",
"markdown",
-- "markdown",
"jupynium",
},
providers = {
@@ -99,12 +99,12 @@ return {
module = "blink.compat.source",
score_offset = 10,
},
markdown = {
name = "RenderMarkdown",
module = "render-markdown.integ.blink",
score_offset = 10,
fallbacks = { "lsp" },
},
-- markdown = {
-- name = "RenderMarkdown",
-- module = "render-markdown.integ.blink",
-- score_offset = 10,
-- fallbacks = { "lsp" },
-- },
ripgrep = {
module = "blink-ripgrep",
name = "Ripgrep",
@@ -135,7 +135,7 @@ return {
name = "Git",
enabled = true,
should_show_items = function()
return vim.o.filetype == "gitcommit" or vim.o.filetype == "markdown"
return vim.o.filetype == "gitcommit"
end,
opts = {},
},

View File

@@ -1,7 +0,0 @@
return {
"GustavEikaas/code-playground.nvim",
cmd = { "Code" },
config = function()
require("code-playground").setup()
end,
}

View File

@@ -1,11 +0,0 @@
return {
"NStefan002/donut.nvim",
version = "*",
lazy = false,
enabled = false,
cms = "Donut",
opts = {
timeout = 600,
sync_donuts = false,
},
}

View File

@@ -1,6 +0,0 @@
return {
"m4xshen/hardtime.nvim",
enabled = false,
dependencies = { "MunifTanjim/nui.nvim" },
opts = {},
}

View File

@@ -1,17 +0,0 @@
return {
"tomiis4/hypersonic.nvim",
opts = {
---@type "none"|"single"|"double"|"rounded"|"solid"|"shadow"|table
border = "rounded",
---@type number 0-100
winblend = 0,
---@type boolean
add_padding = true,
---@type string
hl_group = "Keyword",
---@type string
wrapping = '"',
---@type boolean
enable_cmdline = false,
},
}

View File

@@ -1,5 +1,6 @@
return {
"lukas-reineke/indent-blankline.nvim",
enabled = false,
main = "ibl",
version = "*",
opts = {

View File

@@ -1,7 +1,7 @@
return {
"3rd/image.nvim",
opts = {
backend = "kitty",
backend = "ueberzug", -- ueberzug, kitty
processor = "magick_rock", -- or "magick_cli"
integrations = {
markdown = {

View File

@@ -1,46 +0,0 @@
return {
"cenk1cenk2/jq.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
"grapp-dev/nui-components.nvim",
},
cmd = "JQ",
opts = {
keymap = {
close = "<Esc>",
focus_next = "<Tab>",
focus_prev = "<S-Tab>",
focus_left = "<C-h>",
focus_right = "<C-l>",
focus_up = "<C-k>",
focus_down = "<C-j>",
},
},
config = function(_, opts)
require("jq").setup(opts)
vim.api.nvim_create_user_command("JQ", function()
require("jq").run({
--- you can pass additional options to configure the current instance
-- if you want to toggle from the memory
toggle = true,
-- commands for the instance else it will use the default
-- the default command would be the first one in the table
commands = {
{
-- command to be run
command = "jq",
-- filetype of the output
filetype = "json",
-- hidden arguments that will not be shown in the ui
arguments = "-r",
},
},
-- arguments to start with in the ui
arguments = "",
-- query to start with, if not provided it will use the default
query = ".",
})
end, {})
end,
}

View File

@@ -321,6 +321,15 @@ return {
outputPath = "$root/target/$dir/$name",
},
},
matlab_ls = {
indexWorkspace = true,
matlabConnectionTiming = "onStart",
telemetry = false,
filetypes = {
"matlab",
"octave",
},
},
},
},
}

View File

@@ -1,25 +1,25 @@
return {
{
"nfrid/markdown-togglecheck",
dependencies = { "nfrid/treesitter-utils" },
ft = { "markdown" },
keys = {
{
"<C-space>",
function()
require("markdown-togglecheck").toggle()
end,
desc = "Toggle Checkmark",
ft = "markdown",
},
},
opts = {
-- create empty checkbox on item without any while toggling
create = true,
-- remove checked checkbox instead of unckecking it while toggling
remove = false,
},
},
-- {
-- "nfrid/markdown-togglecheck",
-- dependencies = { "nfrid/treesitter-utils" },
-- ft = { "markdown" },
-- keys = {
-- {
-- "<C-space>",
-- function()
-- require("markdown-togglecheck").toggle()
-- end,
-- desc = "Toggle Checkmark",
-- ft = "markdown",
-- },
-- },
-- opts = {
-- -- create empty checkbox on item without any while toggling
-- create = true,
-- -- remove checked checkbox instead of unckecking it while toggling
-- remove = false,
-- },
-- },
{
"tadmccorkle/markdown.nvim",
ft = { "markdown" },
@@ -86,16 +86,58 @@ return {
},
},
{
"Kicamon/markdown-table-mode.nvim",
"OXY2DEV/markview.nvim",
-- enabled = false,
lazy = false,
opts = {
filetype = {
"*.md",
preview = {
icon_provider = "mini",
hybrid_modes = { "i", "n" },
debounce = 50,
},
cursor_line = {
disable_rendering = true,
},
linewise_hybrid_mode = true,
markdown = {
enable = true,
math = {
engine = "typst", -- Use Typst engine for math rendering
inline = true, -- Enable for inline math
blocks = true, -- Enable for math blocks
},
},
latex = {
enable = false,
blocks = {
-- ["$$"] = {
-- renderer = "typst.math_blocks",
-- },
},
},
typst = { enable = false },
html = { enable = false },
checkboxes = {
default = " ",
remove_style = "checkbox",
states = {
{ " ", "/", "X" },
{ "<", ">" },
{ "?", "!", "*" },
{ '"' },
{ "l", "b", "i" },
{ "S", "I" },
{ "p", "c" },
{ "f", "k", "w" },
{ "u", "d" },
},
},
},
},
{
"MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons" },
opts = {},
config = function(_, opts)
require("markview").setup(opts)
require("markview.extras.checkboxes").setup(opts.checkboxes)
require("markview.extras.headings").setup()
require("markview.extras.editor").setup()
end,
},
}

View File

@@ -8,6 +8,41 @@ return {
"nvim-telescope/telescope.nvim",
"nvim-treesitter/nvim-treesitter",
},
keys = {
{ "<leader>Oo", vim.cmd.ObsidianOpen, desc = "Open a note in the Obsidian app." },
{ "<leader>On", vim.cmd.ObsidianNew, desc = "Create a new note." },
{ "<leader>Of", vim.cmd.ObsidianQuickSwitch, desc = "Quickly switch to (or open) another note in vault." },
{ "<leader>Ob", vim.cmd.ObsidianBacklinks, desc = "Get a picker list of references to the current buffer." },
{ "<leader>Ot", vim.cmd.ObsidianTags, desc = "Get a picker list of all occurrences of the given tags." },
{ "<leader>Os", vim.cmd.ObsidianSearch, desc = "Search for (or create) notes in your vault." },
{
"<leader>Ol",
vim.cmd.ObsidianLinkNew,
desc = "Create a new note and link it to an inline visual selection of text.",
},
{
"<leader>OL",
vim.cmd.ObsidianLinks,
desc = "Collect all links within the current buffer into a picker window.",
},
{
"<leader>OE",
vim.cmd.ObsidianExtractNote,
desc = "Extract the visually selected text into a new note and link to it.",
},
{ "<leader>Ow", vim.cmd.ObsidianWorkspace, desc = "Switch to another workspace." },
{ "<leader>Op", vim.cmd.ObsidianPasteImg, desc = "Paste an image from the clipboard into the note." },
{
"<leader>Or",
vim.cmd.ObsidianRename,
desc = "Rename the note of the current buffer or reference under the cursor, updating all backlinks across the vault.",
},
{
"<leader>OT",
vim.cmd.ObsidianRename,
desc = "Load the table of contents of the current note into a picker list.",
},
},
opts = {
workspaces = {
{
@@ -23,6 +58,53 @@ return {
path = "~/Obsidian/work",
},
},
mappings = {
-- Overrides the 'gf' mapping to work on markdown/wiki links within your vault.
["gf"] = {
action = function()
return require("obsidian").util.gf_passthrough()
end,
opts = { noremap = false, expr = true, buffer = true },
},
-- Toggle check-boxes.
["<leader>ch"] = {
action = function()
return require("obsidian").util.smart_action()
end,
opts = { buffer = true, expr = true },
},
-- Smart action depending on context, either follow link or toggle checkbox.
["<cr>"] = nil,
},
-- Optional, customize how note IDs are generated given an optional title.
---@param title string|?
---@return string
note_id_func = function(title)
-- Create note IDs in a Zettelkasten format with a timestamp and a suffix.
-- In this case a note with the title 'My new note' will be given an ID that looks
-- like '1657296016-my-new-note', and therefore the file name '1657296016-my-new-note.md'
local suffix = ""
if title ~= nil then
-- If title is given, transform it into valid file name.
suffix = title:gsub(" ", "-"):gsub("[^A-Za-z0-9-]", ""):lower()
else
-- If title is nil, just add 4 random uppercase letters to the suffix.
for _ = 1, 4 do
suffix = suffix .. string.char(math.random(65, 90))
end
end
return tostring(os.time()) .. "-" .. suffix
end,
-- Optional, customize how wiki links are formatted. You can set this to one of:
-- * "use_alias_only", e.g. '[[Foo Bar]]'
-- * "prepend_note_id", e.g. '[[foo-bar|Foo Bar]]'
-- * "prepend_note_path", e.g. '[[foo-bar.md|Foo Bar]]'
-- * "use_path_only", e.g. '[[foo-bar.md]]'
-- Or you can set it to a function that takes a table of options and returns a string, like this:
wiki_link_func = function(opts)
return require("obsidian.util").wiki_link_id_prefix(opts)
end,
templates = {
folder = "templates",
date_format = "%Y-%m-%d",
@@ -52,5 +134,8 @@ return {
return string.format("![%s](../%s)", path.name, path)
end,
},
ui = {
enable = false,
},
},
}

View File

@@ -45,7 +45,7 @@ return {
-- Deleted files will be removed with the trash_command (below).
delete_to_trash = true,
-- Change this to customize the command used when deleting to trash
trash_command = "trash-put",
-- trash_command = "trash-put",
-- Selecting a new/moved/renamed file or directory will prompt you to save changes first
prompt_save_on_select_new_entry = true,
-- Keymaps in oil buffer. Can be any value that `vim.keymap.set` accepts OR a table of keymap

View File

@@ -1,21 +0,0 @@
return {
"toppair/peek.nvim",
event = { "VeryLazy" },
build = "deno task --quiet build:fast",
config = function(_, opts)
require("peek").setup(opts)
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
end,
opts = {
auto_load = true,
close_on_bdelete = true,
syntax = true,
theme = "dark",
update_on_change = true,
app = "browser",
filetype = { "markdown", "vimwiki" },
throttle_at = 200000,
throttle_time = "auto",
},
}

View File

@@ -1,23 +0,0 @@
return {
"alexpasmantier/pymple.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
},
build = ":PympleBuild",
opts = {
-- automatically register the following keymaps on plugin setup
keymaps = {
-- Resolves import for symbol under cursor.
-- This will automatically find and add the corresponding import to
-- the top of the file (below any existing doctsring)
resolve_import_under_cursor = {
desc = "Resolve import under cursor",
keys = "<leader>li",
},
},
},
config = function(_, opts)
require("pymple").setup(opts)
end,
}

84
lua/plugins/snacks.lua Normal file
View File

@@ -0,0 +1,84 @@
return {
"folke/snacks.nvim",
priority = 1000,
lazy = false,
opts = {
animate = { enabled = false },
bigfile = { enabled = true },
bufdelete = { enabled = true },
dashboard = { enabled = false },
debug = { enabled = false },
dim = { enabled = true },
explorer = { enabled = false },
git = { enabled = false },
gitbrowse = { enabled = false },
image = { enabled = false },
indent = {
enabled = true,
animate = { enabled = false },
},
input = { enabled = false },
layout = { enabled = false },
lazygit = { enabled = false },
notifier = { enabled = false },
picker = { enabled = false }, -- TODO: might replace telescope
profiler = { enabled = false },
quickfile = { enabled = true, exclude = { "latex" } },
rename = { enabled = true },
scope = { enabled = false },
scratch = { enabled = false },
scroll = { enabled = false },
statuscolumn = { enabled = false },
terminal = { enabled = false },
toggle = { enabled = false },
win = { enabled = false },
words = { enabled = true },
zen = { enabled = false },
},
keys = {
{
"<leader>zz",
function()
Snacks.zen()
end,
desc = "Toggle Zen Mode",
},
{
"<leader>zZ",
function()
Snacks.zen.zoom()
end,
desc = "Toggle Zoom",
},
{
"<leader>Nn",
function()
Snacks.notifier.show_history()
end,
desc = "Notification History",
},
},
init = function()
vim.api.nvim_create_autocmd("User", {
pattern = "VeryLazy",
callback = function()
-- Setup some globals for debugging (lazy-loaded)
_G.dd = function(...)
Snacks.debug.inspect(...)
end
_G.bt = function()
Snacks.debug.backtrace()
end
vim.print = _G.dd -- Override print to use snacks for `:=` command
end,
})
vim.api.nvim_create_autocmd("User", {
pattern = "OilActionsPost",
callback = function(event)
if event.data.actions.type == "move" then
Snacks.rename.on_rename_file(event.data.actions.src_url, event.data.actions.dest_url)
end
end,
})
end,
}

View File

@@ -0,0 +1,5 @@
return {
"dstein64/vim-startuptime",
evnet = "VeryLazy",
cmd = { "StartupTime" },
}

View File

@@ -1,7 +0,0 @@
return {
"razak17/tailwind-fold.nvim",
opts = {},
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = { "TailwindFoldEnable", "TailwindFoldDisable", "TailwindFoldToggle" },
ft = { "html", "htmldjango", "svelte", "astro", "vue", "javascriptreact", "typescriptreact", "php", "blade" },
}

View File

@@ -1,34 +0,0 @@
return {
"luckasRanarison/tailwind-tools.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter" },
enabled = false,
ft = { "html", "htmldjango", "svelte", "astro", "vue", "javascriptreact", "typescriptreact", "php", "blade" },
cmd = {
"TailwindConcealEnable",
"TailwindConcealDisable",
"TailwindConcealToggle",
"TailwindColorEnable",
"TailwindColorDisable",
"TailwindColorToggle",
"TailwindSort",
"TailwindSortSelection",
"TailwindNextClass",
"TailwindPrevClass",
},
opts = {
document_color = {
enabled = true, -- can be toggled by commands
kind = "background", -- "inline" | "foreground" | "background"
inline_symbol = "󰝤 ", -- only used in inline mode
debounce = 200, -- in milliseconds, only applied in insert mode
},
conceal = {
enabled = false, -- can be toggled by commands
symbol = "󱏿", -- only a single character is allowed
highlight = { -- extmark highlight options, see :h 'highlight'
fg = "#38BDF8",
},
},
custom_filetypes = {}, -- see the extension section to learn how it works
},
}

43
lua/plugins/tailwind.lua Normal file
View File

@@ -0,0 +1,43 @@
return {
{
"razak17/tailwind-fold.nvim",
opts = {},
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = { "TailwindFoldEnable", "TailwindFoldDisable", "TailwindFoldToggle" },
ft = { "html", "htmldjango", "svelte", "astro", "vue", "javascriptreact", "typescriptreact", "php", "blade" },
},
{
"luckasRanarison/tailwind-tools.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter" },
enabled = false,
ft = { "html", "htmldjango", "svelte", "astro", "vue", "javascriptreact", "typescriptreact", "php", "blade" },
cmd = {
"TailwindConcealEnable",
"TailwindConcealDisable",
"TailwindConcealToggle",
"TailwindColorEnable",
"TailwindColorDisable",
"TailwindColorToggle",
"TailwindSort",
"TailwindSortSelection",
"TailwindNextClass",
"TailwindPrevClass",
},
opts = {
document_color = {
enabled = true, -- can be toggled by commands
kind = "background", -- "inline" | "foreground" | "background"
inline_symbol = "󰝤 ", -- only used in inline mode
debounce = 200, -- in milliseconds, only applied in insert mode
},
conceal = {
enabled = false, -- can be toggled by commands
symbol = "󱏿", -- only a single character is allowed
highlight = { -- extmark highlight options, see :h 'highlight'
fg = "#38BDF8",
},
},
custom_filetypes = {}, -- see the extension section to learn how it works
},
},
}

View File

@@ -1,23 +0,0 @@
return {
"folke/twilight.nvim",
opts = {
dimming = {
alpha = 0.25, -- amount of dimming
-- we try to get the foreground from the highlight groups or fallback color
color = { "Normal", "#ffffff" },
term_bg = "#000000", -- if guibg=NONE, this will be used to calculate text color
inactive = false, -- when true, other windows will be fully dimmed (unless they contain the same buffer)
},
context = 10, -- amount of lines we will try to show around the current line
treesitter = true, -- use treesitter when available for the filetype
-- treesitter is used to automatically expand the visible text,
-- but you can further control the types of nodes that should always be fully expanded
expand = { -- for treesitter, we we always try to expand to the top-most ancestor with these types
"function",
"method",
"table",
"if_statement",
},
exclude = {}, -- exclude these filetypes
},
}

View File

@@ -1,6 +1,7 @@
return {
"folke/zen-mode.nvim",
dependencies = { "lukas-reineke/indent-blankline.nvim" },
enabled = false,
keys = {
{
"<leader>zz",