chore: backup

This commit is contained in:
Stefan Imhoff
2024-09-13 16:42:19 +02:00
parent 3a9ceb7bfb
commit 0a36a6d4b8
6 changed files with 165 additions and 151 deletions

View File

@@ -1,10 +1,10 @@
-- Markdown Preview
-- https://github.com/iamcco/markdown-preview.nvim
return {
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function()
vim.fn["mkdp#util#install"]()
end,
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function()
vim.fn["mkdp#util#install"]()
end,
}

View File

@@ -1,53 +1,53 @@
-- Package manager for LSP servers, DAP servers, linters, and formatters
-- https://github.com/williamboman/mason.nvim
return {
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"astro-language-server",
"black",
"codespell",
"cspell",
"css-lsp",
"cssmodules-language-server",
"delve",
"diagnostic-languageserver",
"emmet-ls",
"eslint-lsp",
"eslint_d",
"gofumpt",
"goimports",
"gomodifytags",
"html-lsp",
"htmlbeautifier",
"impl",
"isort",
"json-lsp",
"lua-language-server",
"markdown-oxide",
"nixpkgs-fmt",
"prettier",
"prettierd",
"pyright",
"rubocop",
"rubyfmt",
"shellcheck",
"stylua",
"svelte-language-server",
"tailwindcss-language-server",
"typescript-language-server",
"typos-lsp",
"vale",
"yaml-language-server",
"yamlfmt",
},
ui = {
border = "rounded",
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
},
"williamboman/mason.nvim",
opts = {
ensure_installed = {
"astro-language-server",
"black",
"codespell",
"cspell",
"css-lsp",
"cssmodules-language-server",
"delve",
"diagnostic-languageserver",
"emmet-ls",
"eslint-lsp",
"eslint_d",
"gofumpt",
"goimports",
"gomodifytags",
"html-lsp",
"htmlbeautifier",
"impl",
"isort",
"json-lsp",
"lua-language-server",
"markdown-oxide",
"nixpkgs-fmt",
"prettier",
"prettierd",
"pyright",
"rubocop",
"rubyfmt",
"shellcheck",
"stylua",
"svelte-language-server",
"tailwindcss-language-server",
"typescript-language-server",
-- "typos-lsp",
"vale",
"yaml-language-server",
"yamlfmt",
},
ui = {
border = "rounded",
icons = {
package_installed = "",
package_pending = "",
package_uninstalled = "",
},
},
},
}

View File

@@ -1,71 +1,72 @@
-- Obsidian
-- https://github.com/epwalsh/obsidian.nvim
return {
"epwalsh/obsidian.nvim",
version = "*",
lazy = true,
ft = "markdown",
dependencies = {
-- required
"nvim-lua/plenary.nvim",
-- optional
"hrsh7th/nvim-cmp",
"nvim-telescope/telescope.nvim",
"ibhagwan/fzf-lua",
"junegunn/fzf",
"junegunn/fzf.vim",
"godlygeek/tabular",
"preservim/vim-markdown",
},
opts = {
workspaces = {
{
name = "zettelkasten",
path = "~/Code/GitHub/obsidian/zettelkasten",
overrides = {
notes_subdir = "pages",
},
},
{
name = "highlights",
path = "~/Code/GitHub/obsidian/highlights",
},
},
completion = {
nvim_cmp = true,
min_chars = 2,
use_path_only = false,
},
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.toggle_checkbox()
end,
opts = { buffer = true },
},
},
disable_frontmatter = true,
note_id_func = function(title)
local suffix = ""
if title ~= nil and title ~= "" then
suffix = title
else
suffix = tostring(os.date("%Y%m%d%H%M"))
end
return suffix
end,
templates = {
subdir = "templates",
date_format = "%Y-%m-%d",
time_format = "%H:%M",
},
},
"epwalsh/obsidian.nvim",
version = "*",
lazy = true,
ft = "markdown",
dependencies = {
-- required
"nvim-lua/plenary.nvim",
-- optional
"hrsh7th/nvim-cmp",
"nvim-telescope/telescope.nvim",
"ibhagwan/fzf-lua",
"junegunn/fzf",
"junegunn/fzf.vim",
"godlygeek/tabular",
"preservim/vim-markdown",
},
opts = {
ui = { enable = false },
workspaces = {
{
name = "zettelkasten",
path = "~/Code/GitHub/obsidian/zettelkasten",
overrides = {
notes_subdir = "pages",
},
},
{
name = "highlights",
path = "~/Code/GitHub/obsidian/highlights",
},
},
completion = {
nvim_cmp = true,
min_chars = 2,
use_path_only = false,
},
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.toggle_checkbox()
end,
opts = { buffer = true },
},
},
disable_frontmatter = true,
note_id_func = function(title)
local suffix = ""
if title ~= nil and title ~= "" then
suffix = title
else
suffix = tostring(os.date("%Y%m%d%H%M"))
end
return suffix
end,
templates = {
subdir = "templates",
date_format = "%Y-%m-%d",
time_format = "%H:%M",
},
},
}

View File

@@ -0,0 +1,9 @@
-- Plugin to improve viewing Markdown files in Neovim
-- https://github.com/MeanderingProgrammer/render-markdown.nvim
return {
"MeanderingProgrammer/render-markdown.nvim",
opts = {
file_types = { "markdown", "mdx" },
},
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.nvim" },
}