macos custom tweaks

This commit is contained in:
mrflos 2024-08-09 12:34:10 +03:00
parent 232b3546e1
commit 6891dbfaf2
3 changed files with 24 additions and 0 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.DS_Store
configuration.nix

View file

@ -91,3 +91,5 @@ background_opacity 1
#background_tint 0.99
modify_font cell_height 130%
startup_session ~/.config/kitty/session.conf
hide_window_decorations titlebar-only

View file

@ -0,0 +1,21 @@
return {
{
-- Install markdown preview, use npx if available.
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
ft = { "markdown" },
build = function(plugin)
if vim.fn.executable("npx") then
vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install")
else
vim.cmd([[Lazy load markdown-preview.nvim]])
vim.fn["mkdp#util#install"]()
end
end,
init = function()
if vim.fn.executable("npx") then
vim.g.mkdp_filetypes = { "markdown" }
end
end,
},
}