From e0f12a9ce3717b10b0455b5593a984c339538691 Mon Sep 17 00:00:00 2001 From: Kristofers Solo Date: Fri, 7 Feb 2025 19:47:38 +0200 Subject: [PATCH] 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 --- after/ftplugin/markdown.lua | 7 ++ after/plugin/snips/lua.lua | 3 +- after/plugin/snips/markdown.lua | 50 ++++++++++ after/plugin/snips/typst.lua | 10 ++ ftdetect/conf.lua | 5 + ftplugin/markdown.lua | 6 ++ lazy-lock.json | 124 +++++++++++------------- lua/config/autocmds.lua | 12 +-- lua/plugins/bigfile.lua | 18 ---- lua/plugins/blink.lua | 16 +-- lua/plugins/code-playground.lua | 7 -- lua/plugins/donut.lua | 11 --- lua/plugins/hardtime.lua | 6 -- lua/plugins/hypersonic.lua | 17 ---- lua/plugins/ibl.lua | 1 + lua/plugins/image.lua | 2 +- lua/plugins/jq.lua | 46 --------- lua/plugins/{nvim-lint.lua => lint.lua} | 0 lua/plugins/{lspconfig.lua => lsp.lua} | 9 ++ lua/plugins/markdown.lua | 100 +++++++++++++------ lua/plugins/obsidian.lua | 85 ++++++++++++++++ lua/plugins/oil.lua | 2 +- lua/plugins/peek.lua | 21 ---- lua/plugins/pymple.lua | 23 ----- lua/plugins/snacks.lua | 84 ++++++++++++++++ lua/plugins/startuptime.lua | 5 + lua/plugins/tailwind-fold.lua | 7 -- lua/plugins/tailwind-tools.lua | 34 ------- lua/plugins/tailwind.lua | 43 ++++++++ lua/plugins/twilight.lua | 23 ----- lua/plugins/zen-mode.lua | 1 + neovim.yml | 2 + queries/markdown/folds.scm | 9 ++ spell/en.utf-8.add.spl | Bin 347 -> 538 bytes spell/lv.utf-8.add | 29 ++++++ spell/lv.utf-8.add.spl | Bin 4646 -> 4937 bytes 36 files changed, 487 insertions(+), 331 deletions(-) create mode 100644 after/plugin/snips/markdown.lua create mode 100644 after/plugin/snips/typst.lua create mode 100644 ftdetect/conf.lua create mode 100644 ftplugin/markdown.lua delete mode 100644 lua/plugins/bigfile.lua delete mode 100644 lua/plugins/code-playground.lua delete mode 100644 lua/plugins/donut.lua delete mode 100644 lua/plugins/hardtime.lua delete mode 100644 lua/plugins/hypersonic.lua delete mode 100644 lua/plugins/jq.lua rename lua/plugins/{nvim-lint.lua => lint.lua} (100%) rename lua/plugins/{lspconfig.lua => lsp.lua} (98%) delete mode 100644 lua/plugins/peek.lua delete mode 100644 lua/plugins/pymple.lua create mode 100644 lua/plugins/snacks.lua create mode 100644 lua/plugins/startuptime.lua delete mode 100644 lua/plugins/tailwind-fold.lua delete mode 100644 lua/plugins/tailwind-tools.lua create mode 100644 lua/plugins/tailwind.lua delete mode 100644 lua/plugins/twilight.lua create mode 100644 queries/markdown/folds.scm diff --git a/after/ftplugin/markdown.lua b/after/ftplugin/markdown.lua index b55966e..4d61e09 100644 --- a/after/ftplugin/markdown.lua +++ b/after/ftplugin/markdown.lua @@ -3,3 +3,10 @@ vim.opt_local.spell = true vim.opt_local.tabstop = 2 vim.opt_local.shiftwidth = 2 vim.opt_local.softtabstop = 2 +vim.opt_local.spelllang = "lv,en" + +vim.keymap.set("n", "P", vim.cmd.ObsidianPasteImg) +-- vim.keymap.set({ "n", "v" }, ">>", vim.cmd("Heading increase"), { desc = "Increase heading level" }) +-- vim.keymap.set({ "n", "v" }, "<<", vim.cmd("Heading decrease"), { desc = "Decrease heading level" }) +-- vim.keymap.set({ "n", "v" }, "", vim.cmd("Checkbox toggle"), { desc = "Toggle checkbox", noremap = true }) +-- vim.keymap.set("n", "", vim.cmd.ObsidianQuickSwitch) diff --git a/after/plugin/snips/lua.lua b/after/plugin/snips/lua.lua index b7a540e..81dd1d0 100644 --- a/after/plugin/snips/lua.lua +++ b/after/plugin/snips/lua.lua @@ -39,11 +39,12 @@ ls.add_snippets("lua", { [[ local {} = function({}) {} - end + end{} ]], { i(1), i(2), + i(3), i(0), } ) diff --git a/after/plugin/snips/markdown.lua b/after/plugin/snips/markdown.lua new file mode 100644 index 0000000..0d6dba9 --- /dev/null +++ b/after/plugin/snips/markdown.lua @@ -0,0 +1,50 @@ +if not pcall(require, "luasnip") then + return +end + +local ls = require("luasnip") +local s = ls.snippet +local i = ls.insert_node +local fmt = require("luasnip.extras.fmt").fmt + +ls.add_snippets("markdown", { + s( + "ket", + fmt( + [[ + |{}angle.r{} + ]], + { + i(1), + i(0), + } + ) + ), + s( + "ket0", + fmt( + [[ + |0angle.r + ]], + {} + ) + ), + s( + "ket1", + fmt( + [[ + |1angle.r + ]], + {} + ) + ), + s( + "ketp", + fmt( + [[ + |Psi angle.r + ]], + {} + ) + ), +}) diff --git a/after/plugin/snips/typst.lua b/after/plugin/snips/typst.lua new file mode 100644 index 0000000..c3ff18f --- /dev/null +++ b/after/plugin/snips/typst.lua @@ -0,0 +1,10 @@ +if not pcall(require, "luasnip") then + return +end + +local ls = require("luasnip") +local s = ls.snippet +local i = ls.insert_node +local fmt = require("luasnip.extras.fmt").fmt + +ls.add_snippets("typst", {}) diff --git a/ftdetect/conf.lua b/ftdetect/conf.lua new file mode 100644 index 0000000..08e4eac --- /dev/null +++ b/ftdetect/conf.lua @@ -0,0 +1,5 @@ +vim.filetype.add({ + pattern = { + [".*/hypr/.*%.conf"] = "hyprlang", + }, +}) diff --git a/ftplugin/markdown.lua b/ftplugin/markdown.lua new file mode 100644 index 0000000..0417ba9 --- /dev/null +++ b/ftplugin/markdown.lua @@ -0,0 +1,6 @@ +vim.o.fillchars = "fold: " + +vim.o.foldmethod = "expr" +vim.o.foldexpr = "v:lua.vim.treesitter.foldexpr()" + +vim.o.foldtext = "" diff --git a/lazy-lock.json b/lazy-lock.json index 56a78e7..40688b9 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,123 +2,114 @@ "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" }, "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, - "bigfile.nvim": { "branch": "main", "commit": "33eb067e3d7029ac77e081cfe7c45361887a311a" }, - "blink-cmp-git": { "branch": "master", "commit": "599580d33b4034db4fb071615f7c6777da9a5b25" }, - "blink-emoji.nvim": { "branch": "master", "commit": "81e6c080d1e64c9ef548534c51147fd8063481c8" }, - "blink-ripgrep.nvim": { "branch": "main", "commit": "519ac7894113f6a7b517b157c26e31fbd58a0de5" }, - "blink.cmp": { "branch": "main", "commit": "b6f11a0aa33e601c469a126e3ed6e35208fe3ea3" }, - "blink.compat": { "branch": "main", "commit": "1176525a78319a208300a1910b6fd9e0cfabff25" }, - "catppuccin.nvim": { "branch": "main", "commit": "4965db2d6155c25db4e8417465fc2703fdf4c2b7" }, + "blink-cmp-git": { "branch": "master", "commit": "57f698ca503aa5aeecc338a65567f74b533c0de3" }, + "blink-emoji.nvim": { "branch": "master", "commit": "a77aebc092ebece1eed108f301452ae774d6b67a" }, + "blink-ripgrep.nvim": { "branch": "main", "commit": "305e1ae5363f527abdfd71915a3fe1f42af52824" }, + "blink.cmp": { "branch": "main", "commit": "dcda20d3aa345025699a920c45b0a0603551f41d" }, + "blink.compat": { "branch": "main", "commit": "b0c87b64f9c669d3bcfaea8a80396fbc16e0fcb5" }, + "catppuccin.nvim": { "branch": "main", "commit": "7ab1a6ec70a664ecb95d84669efc20aaf4f4ed1b" }, "ccc.nvim": { "branch": "main", "commit": "b57cbaf8db3ac43c56c9e2c7f3812944638260ed" }, "cellular-automaton.nvim": { "branch": "main", "commit": "1606e9d5d04ff254023c3f3c62842d065708d6d3" }, "cheatsheet.nvim": { "branch": "master", "commit": "8ee4d76b6f902c4017dc28eddd79d925dfc55066" }, "cloak.nvim": { "branch": "main", "commit": "648aca6d33ec011dc3166e7af3b38820d01a71e4" }, - "cmake-tools.nvim": { "branch": "master", "commit": "83268ea6f969f1e6eaa85f72118a11acb6198bf0" }, + "cmake-tools.nvim": { "branch": "master", "commit": "1d96327bf64189110286811a2b502c8c2262d4ca" }, "cmp-dbee": { "branch": "main", "commit": "1650f67b9bf43c029fc37570665ca895a33cdf5a" }, - "code-playground.nvim": { "branch": "main", "commit": "7b257911268ecf7ee11d6fe806193bda2c889e86" }, - "conform.nvim": { "branch": "master", "commit": "363243c03102a531a8203311d4f2ae704c620d9b" }, - "crates.nvim": { "branch": "main", "commit": "1c924d5a9ea3496c4e1a02d0d51388ba809f8468" }, + "conform.nvim": { "branch": "master", "commit": "a6f5bdb78caa305496357d17e962bbc4c0b392e2" }, + "crates.nvim": { "branch": "main", "commit": "85356807f3a0e9a3f7015586f3a010170d338686" }, "cratesearch.nvim": { "branch": "master", "commit": "9d09625d017f6b2e116503f935bc6862961313fa" }, - "csvview.nvim": { "branch": "main", "commit": "22eb36a8d17b15bdb0d934381198089bad1e4b7d" }, + "csvview.nvim": { "branch": "main", "commit": "ed446a55b4ff9297d9b94a955db3a2eca6cdb2b2" }, "darkplus.nvim": { "branch": "master", "commit": "c7fff5ce62406121fc6c9e4746f118b2b2499c4c" }, "darkvoid.nvim": { "branch": "master", "commit": "45be993a5617e05811b6b293c05e6aded7003cc9" }, "demicolon.nvim": { "branch": "main", "commit": "eed33fc75e7af0aacd283c613d4500b188d62169" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, - "dracula.nvim": { "branch": "main", "commit": "515acae4fd294fcefa5b15237a333c2606e958d1" }, - "flow.nvim": { "branch": "main", "commit": "d8b2bc1a76325361fdbb2cdadbfe242d24370edd" }, + "dracula.nvim": { "branch": "main", "commit": "96c9d19ce81b26053055ad6f688277d655b3f7d2" }, + "flow.nvim": { "branch": "main", "commit": "095c54bbaf55473418dd09d61d3167891684cf85" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, "gh.nvim": { "branch": "main", "commit": "6f367b2ab8f9d4a0a23df2b703a3f91137618387" }, "gitignore.nvim": { "branch": "master", "commit": "2455191ec94da8ed222806a4fe3aa358eac1e558" }, "gitpad.nvim": { "branch": "main", "commit": "1e0f6fa335c72c05d1d3635120c572e198e5ae0d" }, - "gitsigns.nvim": { "branch": "main", "commit": "9772ce68a9a6d156f3f2166bfd0a17a09ab37eba" }, + "gitsigns.nvim": { "branch": "main", "commit": "4c40357994f386e72be92a46f41fc1664c84c87d" }, "gruvbox.nvim": { "branch": "main", "commit": "089b60e92aa0a1c6fa76ff527837cd35b6f5ac81" }, - "hardtime.nvim": { "branch": "main", "commit": "5d9adcbe2f12741de79e435c8b85dca69a3b22e4" }, - "harpoon": { "branch": "harpoon2", "commit": "a84ab829eaf3678b586609888ef52f7779102263" }, + "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, "harpoon-lualine": { "branch": "master", "commit": "eae10bc6bddddbc73daa0956ba4ee5cc29cf9a49" }, "hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" }, "http-codes.nvim": { "branch": "main", "commit": "a610788dff2fb5df05b230d73a926c8dc3173c16" }, - "hypersonic.nvim": { "branch": "main", "commit": "734dfbfbe51952f102a9b439d53d4267bb0024cd" }, "image.nvim": { "branch": "master", "commit": "6ffafab2e98b5bda46bf227055aa84b90add8cdc" }, "indent-blankline.nvim": { "branch": "master", "commit": "7a698a1d7ed755af9f5a88733b23ca246ce2df28" }, "inlay-hint.nvim": { "branch": "main", "commit": "eb5f0579537db271dfedd7f38460cdacb238176f" }, "inlay-hints.nvim": { "branch": "master", "commit": "3259b54f3b954b4d8260f3ee49ceabe978ea5636" }, - "jq.nvim": { "branch": "main", "commit": "3a736044a9ff4d2b39919c43e66c8148ce85b6a5" }, - "jupynium.nvim": { "branch": "master", "commit": "b0b71577c6e4a613b6a4180068dd0b2de0659e52" }, + "jupynium.nvim": { "branch": "master", "commit": "4086e40f5ab3b8b74330c5a69a26791953da5cd2" }, "jupytext.nvim": { "branch": "master", "commit": "2e86acfa4345f611c86f57116db0c06ffecb721d" }, - "kanagawa.nvim": { "branch": "master", "commit": "988082eb00b845e4afbcaa4fd8e903da8a3ab3b9" }, + "kanagawa.nvim": { "branch": "master", "commit": "cfd67b0e1eeaa04302b8c7eb072253d24bf22d84" }, "lackluster.nvim": { "branch": "main", "commit": "662fba7e6719b7afc155076385c00d79290bc347" }, - "lazy.nvim": { "branch": "main", "commit": "7527af40ddd4a93a02911be570b32609b9d4ea53" }, - "lazydev.nvim": { "branch": "main", "commit": "a1b78b2ac6f978c72e76ea90ae92a94edf380cfc" }, + "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, + "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, "litee.nvim": { "branch": "main", "commit": "4efaf373322d9e71eaff31164abb393417cc6f6a" }, "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" }, "lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" }, "lualine-lsp-status": { "branch": "main", "commit": "1218d51d4d0b8881a598a77e5d9f334ac31c6cc7" }, - "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" }, + "lualine.nvim": { "branch": "master", "commit": "f4f791f67e70d378a754d02da068231d2352e5bc" }, "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" }, - "markdown-table-mode.nvim": { "branch": "main", "commit": "fe207ea7cef615ccaf2c0f1257c58ffa0a50a9f5" }, - "markdown-togglecheck": { "branch": "main", "commit": "5e9ee3184109a102952c01ef816babe8835b299a" }, "markdown.nvim": { "branch": "master", "commit": "dfa0d2def6dbf77e9206b16dc90cad4dd23d55d2" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "f75e877f5266e87523eb5a18fcde2081820d087b" }, - "mason-nvim-dap.nvim": { "branch": "main", "commit": "8b9363d83b5d779813cdd2819b8308651cec2a09" }, - "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, + "markview.nvim": { "branch": "main", "commit": "386a98e88e021a79df7f0494d8eb4145a78f59ae" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" }, + "mason-nvim-dap.nvim": { "branch": "main", "commit": "09220b99d63d5363f219daa2785242ee5fddba7f" }, + "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "melange.nvim": { "branch": "master", "commit": "2db5407f2f6d6d6286f50f2f7365728d66f6f3ae" }, "mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" }, - "neoconf.nvim": { "branch": "main", "commit": "95b46f16b7bddc1278de8b4379121ed9e4e4a725" }, + "neoconf.nvim": { "branch": "main", "commit": "21483cfdde74fdbd6493b0f7b3b01cfd174199a4" }, "neocord": { "branch": "main", "commit": "4d55d8dab2d5f2f272192add7a2c21982039c699" }, "neogen": { "branch": "main", "commit": "b2e78708876f4da507839726816010a68e33fec8" }, "neogit": { "branch": "master", "commit": "43fa47fb61773b0d90a78ebc2521ea8faaeebd86" }, "neorg": { "branch": "main", "commit": "ed43ed58116caa0a17bbbc7aa663e32bf94bc531" }, "neorg-telescope": { "branch": "main", "commit": "ddb2556644cae922699a239bbb0fe16e25b084b7" }, - "neotest": { "branch": "master", "commit": "d66cf4e05a116957f0d3a7755a24291c7d1e1f72" }, + "neotest": { "branch": "master", "commit": "dddbe8fe358b05b2b7e54fe4faab50563171a76d" }, "neotest-gtest": { "branch": "main", "commit": "16989561a6356878ec4ecd6afed4f0d7a471d1db" }, "neotest-python": { "branch": "master", "commit": "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" }, "neotest-vim-test": { "branch": "master", "commit": "75c4228882ae4883b11bfce9b8383e637eb44192" }, - "nightfly.nvim": { "branch": "master", "commit": "4ce84530dfd296a31a6c7d318fdd9dcbde8e11f1" }, - "nightfox.nvim": { "branch": "main", "commit": "595ffb8f291fc4a9bef3201a28b7c0379a41cdee" }, - "nui-components.nvim": { "branch": "main", "commit": "caecfe2089e5ffbe99c2b0e0468da91990263a90" }, + "nightfly.nvim": { "branch": "master", "commit": "e4fd65b08c5ae590511d77c2ad26c59c353fc64a" }, + "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, "nvim-autopairs": { "branch": "master", "commit": "3d02855468f94bf435db41b661b58ec4f48a06b7" }, - "nvim-colorizer.lua": { "branch": "master", "commit": "9b5fe0450bfb2521c6cea29391e5ec571f129136" }, - "nvim-dap": { "branch": "master", "commit": "12b846bedbc7221e833b5e6611de21917d7d9184" }, + "nvim-colorizer.lua": { "branch": "master", "commit": "943be69156b94fbc96064f4913d653f0c7fb299f" }, + "nvim-dap": { "branch": "master", "commit": "379cf26e9c457b66a0152cd5d018418c03720d47" }, "nvim-dap-python": { "branch": "master", "commit": "34282820bb713b9a5fdb120ae8dd85c2b3f49b51" }, "nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "df66808cd78b5a97576bbaeee95ed5ca385a9750" }, - "nvim-dbee": { "branch": "master", "commit": "f9aa10f113ae439ef20c6d8b91b27dab93274360" }, - "nvim-lint": { "branch": "master", "commit": "789b7ada1b4f00e08d026dffde410dcfa6a0ba87" }, - "nvim-lspconfig": { "branch": "master", "commit": "66bc018936c6ff76beb75f89d986af6442db4001" }, + "nvim-dbee": { "branch": "master", "commit": "9b7762788de74cfac1641b57354e4ce51baa7e5f" }, + "nvim-lint": { "branch": "master", "commit": "6e9dd545a1af204c4022a8fcd99727ea41ffdcc8" }, + "nvim-lspconfig": { "branch": "master", "commit": "62c5fac4c59be9e41b92ef62f3bb0fbdae3e2d9e" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, "nvim-notify": { "branch": "master", "commit": "22f29093eae7785773ee9d543f8750348b1a195c" }, "nvim-silicon": { "branch": "main", "commit": "7f66bda8f60c97a5bf4b37e5b8acb0e829ae3c32" }, "nvim-surround": { "branch": "main", "commit": "ae298105122c87bbe0a36b1ad20b06d417c0433e" }, - "nvim-treesitter": { "branch": "master", "commit": "9e0b5e7f0d148963d6ec71c48cec1a3f8607d619" }, - "nvim-treesitter-context": { "branch": "master", "commit": "9a49f43a2ec9bf77aecfb0fcbc43af43338375c0" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" }, - "nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" }, + "nvim-treesitter": { "branch": "master", "commit": "99487eb34a397befce8182ff63347a21c5f4b881" }, + "nvim-treesitter-context": { "branch": "master", "commit": "198720b4016af04c9590f375d714d5bf8afecc1a" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "88fce4e6496950dab867a7c63a819df0ead56751" }, + "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, - "nvim-ufo": { "branch": "main", "commit": "81f5ffa6e8ba27c48403cf681d4b383d924e03e4" }, - "nvim-web-devicons": { "branch": "master", "commit": "402377242b04be3f4f0f3720bd952df86e946c30" }, + "nvim-ufo": { "branch": "main", "commit": "a52c92c3bbaa10f0c9b547a50adaa8c7d8b29f94" }, + "nvim-web-devicons": { "branch": "master", "commit": "1020869742ecb191f260818234517f4a1515cfe8" }, "obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" }, - "oil.nvim": { "branch": "master", "commit": "ba858b662599eab8ef1cba9ab745afded99cb180" }, + "oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" }, "onedark.nvim": { "branch": "master", "commit": "67a74c275d1116d575ab25485d1bfa6b2a9c38a6" }, "otter.nvim": { "branch": "main", "commit": "e8c662e1aefa8b483cfba6e00729a39a363dcecc" }, "pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" }, - "peek.nvim": { "branch": "master", "commit": "5820d937d5414baea5f586dc2a3d912a74636e5b" }, - "persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" }, - "plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, + "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, + "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, "promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" }, - "pymple.nvim": { "branch": "main", "commit": "110cc9499b89f2b7230a0c3a7332b3e4b1ac5b7b" }, - "rainbow-delimiters.nvim": { "branch": "master", "commit": "cf0da2516b0684596b09c51dbc93c609cdc2f455" }, + "rainbow-delimiters.nvim": { "branch": "master", "commit": "011d98eaa3a73b5a51d82ce5bc6b1397dde95562" }, "rainbow_csv.nvim": { "branch": "main", "commit": "7f3fddfe813641035fac2cdf94c2ff69bb0bf0b9" }, - "render-markdown.nvim": { "branch": "main", "commit": "2a9e0ab6043bfb4996ce6a6a35594ab357e5d299" }, - "rose-pine.nvim": { "branch": "main", "commit": "00ec4cec924b624920baac9d42eac02e1efcae76" }, - "rustaceanvim": { "branch": "master", "commit": "f03035fa03ccb36cd26d0792c946fbacba1d1a39" }, + "rose-pine.nvim": { "branch": "main", "commit": "7718965bdd1526b233f082da17e88b8bde7a7e6e" }, + "rustaceanvim": { "branch": "master", "commit": "2b0f0b7e03751cf8ed123322f9b02d8f73fa9df7" }, + "snacks.nvim": { "branch": "main", "commit": "07f4b9adff7af45a7e0eb22d85a422e32ed4b1ca" }, "spellwarn.nvim": { "branch": "main", "commit": "12734b47b008d912b4925c0bc2c1248eb534409d" }, "tagbar": { "branch": "master", "commit": "8de7694c0aeda253073098bbc9fb890b2902ddb8" }, - "tailwind-fold.nvim": { "branch": "main", "commit": "30b8c04eec28628fbe554fb4f3a26984c4455176" }, + "tailwind-fold.nvim": { "branch": "main", "commit": "599ecda211573f8dc39308468c58e5b156d917a6" }, "telescope-bibtex.nvim": { "branch": "master", "commit": "289a6f86ebec06e8ae1590533b732b9981d84900" }, - "telescope-frecency.nvim": { "branch": "master", "commit": "beb64492c825a8e42683949530bd086923e69b19" }, - "telescope-fzf-native.nvim": { "branch": "main", "commit": "dae2eac9d91464448b584c7949a31df8faefec56" }, + "telescope-frecency.nvim": { "branch": "master", "commit": "871038761e61a621cdf4b24df731f215daabc549" }, + "telescope-fzf-native.nvim": { "branch": "main", "commit": "2a5ceff981501cff8f46871d5402cd3378a8ab6a" }, "telescope-git-diffs.nvim": { "branch": "main", "commit": "b8e5c9e13b9e27f8ccfd14430d04739b9996ae76" }, "telescope-heading.nvim": { "branch": "main", "commit": "e85c0f69cb64048f56e76548dcb2f10277576df9" }, "telescope-import.nvim": { "branch": "main", "commit": "6fd69447679a99b463025e7f2f787e8b185dd740" }, @@ -130,24 +121,23 @@ "telescope.nvim": { "branch": "master", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "timber.nvim": { "branch": "main", "commit": "7e96bc1a01cea35e872e4ac387edfc1c68ca37f6" }, "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, - "tokyonight.nvim": { "branch": "main", "commit": "dca4adba7dc5f09302a00b0e76078d54d82d2658" }, + "tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" }, "tree-sitter-bruno": { "branch": "main", "commit": "347e99f256930213cd7fcd0efe3f9af83035c4b1" }, - "treesitter-utils": { "branch": "main", "commit": "df621499e4227f0476f6f4bdb75a9d8dd18d16f2" }, - "trouble.nvim": { "branch": "main", "commit": "6f380b8826fb819c752c8fd7daaee9ef96d4c689" }, - "ts-comments.nvim": { "branch": "main", "commit": "872dcfa0418f4a33b7437fb4d9f4e89f2f000d74" }, + "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, + "ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" }, "ts-error-translator.nvim": { "branch": "main", "commit": "47e5ba89f71b9e6c72eaaaaa519dd59bd6897df4" }, - "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" }, "typecheck.nvim": { "branch": "main", "commit": "5a0b0f50be009e85c337f3e183fa6cd28a3c95a0" }, "typescript-tools.nvim": { "branch": "master", "commit": "35e397ce467bedbbbb5bfcd0aa79727b59a08d4a" }, - "typst-preview.nvim": { "branch": "master", "commit": "c1100e8788baabe8ca8f8cd7fd63d3d479e49e36" }, + "typst-preview.nvim": { "branch": "master", "commit": "00ff6829030f302e8ff24d0e3a68625dd1a3ac40" }, "undotree": { "branch": "master", "commit": "2556c6800b210b2096b55b66e74b4cc1d9ebbe4f" }, "vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" }, "vim-closetag": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" }, - "vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" }, + "vim-illuminate": { "branch": "master", "commit": "19cb21f513fc2b02f0c66be70107741e837516a1" }, "vim-log-highlighting": { "branch": "master", "commit": "1037e26f3120e6a6a2c0c33b14a84336dee2a78f" }, - "vim-tmux-navigator": { "branch": "master", "commit": "d847ea942a5bb4d4fab6efebc9f30d787fd96e65" }, - "vimtex": { "branch": "master", "commit": "dfaf26c2cafddf61963ebeff28437352002691ac" }, - "which-key.nvim": { "branch": "main", "commit": "b74a3c85f03225bc91f4f5a9056518d3fa9a3470" }, + "vim-startuptime": { "branch": "master", "commit": "b6f0d93f6b8cf6eee0b4c94450198ba2d6a05ff6" }, + "vim-tmux-navigator": { "branch": "master", "commit": "791dacfcfc8ccb7f6eb1c853050883b03e5a22fe" }, + "vimtex": { "branch": "master", "commit": "096a0450261abccb7944630fae66788712be46a8" }, + "which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" }, "yuck.vim": { "branch": "master", "commit": "9b5e0370f70cc30383e1dabd6c215475915fe5c3" }, "zen-mode.nvim": { "branch": "main", "commit": "863f150ca321b3dd8aa1a2b69b5f411a220e144f" } } diff --git a/lua/config/autocmds.lua b/lua/config/autocmds.lua index 4138c62..ef36a87 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -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, -}) ]] +]] diff --git a/lua/plugins/bigfile.lua b/lua/plugins/bigfile.lua deleted file mode 100644 index 789cf06..0000000 --- a/lua/plugins/bigfile.lua +++ /dev/null @@ -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", - }, - }, -} diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index 07cc147..a924730 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -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 = {}, }, diff --git a/lua/plugins/code-playground.lua b/lua/plugins/code-playground.lua deleted file mode 100644 index afbbe14..0000000 --- a/lua/plugins/code-playground.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - "GustavEikaas/code-playground.nvim", - cmd = { "Code" }, - config = function() - require("code-playground").setup() - end, -} diff --git a/lua/plugins/donut.lua b/lua/plugins/donut.lua deleted file mode 100644 index 37efb44..0000000 --- a/lua/plugins/donut.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "NStefan002/donut.nvim", - version = "*", - lazy = false, - enabled = false, - cms = "Donut", - opts = { - timeout = 600, - sync_donuts = false, - }, -} diff --git a/lua/plugins/hardtime.lua b/lua/plugins/hardtime.lua deleted file mode 100644 index e434e17..0000000 --- a/lua/plugins/hardtime.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - "m4xshen/hardtime.nvim", - enabled = false, - dependencies = { "MunifTanjim/nui.nvim" }, - opts = {}, -} diff --git a/lua/plugins/hypersonic.lua b/lua/plugins/hypersonic.lua deleted file mode 100644 index 0e67985..0000000 --- a/lua/plugins/hypersonic.lua +++ /dev/null @@ -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, - }, -} diff --git a/lua/plugins/ibl.lua b/lua/plugins/ibl.lua index c8cfa5b..34a3f3a 100644 --- a/lua/plugins/ibl.lua +++ b/lua/plugins/ibl.lua @@ -1,5 +1,6 @@ return { "lukas-reineke/indent-blankline.nvim", + enabled = false, main = "ibl", version = "*", opts = { diff --git a/lua/plugins/image.lua b/lua/plugins/image.lua index 9f424da..38d768e 100644 --- a/lua/plugins/image.lua +++ b/lua/plugins/image.lua @@ -1,7 +1,7 @@ return { "3rd/image.nvim", opts = { - backend = "kitty", + backend = "ueberzug", -- ueberzug, kitty processor = "magick_rock", -- or "magick_cli" integrations = { markdown = { diff --git a/lua/plugins/jq.lua b/lua/plugins/jq.lua deleted file mode 100644 index 47eebab..0000000 --- a/lua/plugins/jq.lua +++ /dev/null @@ -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 = "", - focus_next = "", - focus_prev = "", - focus_left = "", - focus_right = "", - focus_up = "", - focus_down = "", - }, - }, - 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, -} diff --git a/lua/plugins/nvim-lint.lua b/lua/plugins/lint.lua similarity index 100% rename from lua/plugins/nvim-lint.lua rename to lua/plugins/lint.lua diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lsp.lua similarity index 98% rename from lua/plugins/lspconfig.lua rename to lua/plugins/lsp.lua index 01438c1..06e8d65 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lsp.lua @@ -321,6 +321,15 @@ return { outputPath = "$root/target/$dir/$name", }, }, + matlab_ls = { + indexWorkspace = true, + matlabConnectionTiming = "onStart", + telemetry = false, + filetypes = { + "matlab", + "octave", + }, + }, }, }, } diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua index 6d2dc64..149311c 100644 --- a/lua/plugins/markdown.lua +++ b/lua/plugins/markdown.lua @@ -1,25 +1,25 @@ return { - { - "nfrid/markdown-togglecheck", - dependencies = { "nfrid/treesitter-utils" }, - ft = { "markdown" }, - keys = { - { - "", - 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 = { + -- { + -- "", + -- 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, }, } diff --git a/lua/plugins/obsidian.lua b/lua/plugins/obsidian.lua index ada5f0d..2ced9b9 100644 --- a/lua/plugins/obsidian.lua +++ b/lua/plugins/obsidian.lua @@ -8,6 +8,41 @@ return { "nvim-telescope/telescope.nvim", "nvim-treesitter/nvim-treesitter", }, + keys = { + { "Oo", vim.cmd.ObsidianOpen, desc = "Open a note in the Obsidian app." }, + { "On", vim.cmd.ObsidianNew, desc = "Create a new note." }, + { "Of", vim.cmd.ObsidianQuickSwitch, desc = "Quickly switch to (or open) another note in vault." }, + { "Ob", vim.cmd.ObsidianBacklinks, desc = "Get a picker list of references to the current buffer." }, + { "Ot", vim.cmd.ObsidianTags, desc = "Get a picker list of all occurrences of the given tags." }, + { "Os", vim.cmd.ObsidianSearch, desc = "Search for (or create) notes in your vault." }, + { + "Ol", + vim.cmd.ObsidianLinkNew, + desc = "Create a new note and link it to an inline visual selection of text.", + }, + { + "OL", + vim.cmd.ObsidianLinks, + desc = "Collect all links within the current buffer into a picker window.", + }, + { + "OE", + vim.cmd.ObsidianExtractNote, + desc = "Extract the visually selected text into a new note and link to it.", + }, + { "Ow", vim.cmd.ObsidianWorkspace, desc = "Switch to another workspace." }, + { "Op", vim.cmd.ObsidianPasteImg, desc = "Paste an image from the clipboard into the note." }, + { + "Or", + vim.cmd.ObsidianRename, + desc = "Rename the note of the current buffer or reference under the cursor, updating all backlinks across the vault.", + }, + { + "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. + ["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. + [""] = 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, + }, }, } diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index 24f9457..f0da5ce 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -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 diff --git a/lua/plugins/peek.lua b/lua/plugins/peek.lua deleted file mode 100644 index e4739ef..0000000 --- a/lua/plugins/peek.lua +++ /dev/null @@ -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", - }, -} diff --git a/lua/plugins/pymple.lua b/lua/plugins/pymple.lua deleted file mode 100644 index 49d4891..0000000 --- a/lua/plugins/pymple.lua +++ /dev/null @@ -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 = "li", - }, - }, - }, - config = function(_, opts) - require("pymple").setup(opts) - end, -} diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua new file mode 100644 index 0000000..1dbd682 --- /dev/null +++ b/lua/plugins/snacks.lua @@ -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 = { + { + "zz", + function() + Snacks.zen() + end, + desc = "Toggle Zen Mode", + }, + { + "zZ", + function() + Snacks.zen.zoom() + end, + desc = "Toggle Zoom", + }, + { + "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, +} diff --git a/lua/plugins/startuptime.lua b/lua/plugins/startuptime.lua new file mode 100644 index 0000000..508294d --- /dev/null +++ b/lua/plugins/startuptime.lua @@ -0,0 +1,5 @@ +return { + "dstein64/vim-startuptime", + evnet = "VeryLazy", + cmd = { "StartupTime" }, +} diff --git a/lua/plugins/tailwind-fold.lua b/lua/plugins/tailwind-fold.lua deleted file mode 100644 index 3469fad..0000000 --- a/lua/plugins/tailwind-fold.lua +++ /dev/null @@ -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" }, -} diff --git a/lua/plugins/tailwind-tools.lua b/lua/plugins/tailwind-tools.lua deleted file mode 100644 index dfae4ad..0000000 --- a/lua/plugins/tailwind-tools.lua +++ /dev/null @@ -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 - }, -} diff --git a/lua/plugins/tailwind.lua b/lua/plugins/tailwind.lua new file mode 100644 index 0000000..1927802 --- /dev/null +++ b/lua/plugins/tailwind.lua @@ -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 + }, + }, +} diff --git a/lua/plugins/twilight.lua b/lua/plugins/twilight.lua deleted file mode 100644 index 381ed28..0000000 --- a/lua/plugins/twilight.lua +++ /dev/null @@ -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 - }, -} diff --git a/lua/plugins/zen-mode.lua b/lua/plugins/zen-mode.lua index e8e10ea..6bf813e 100644 --- a/lua/plugins/zen-mode.lua +++ b/lua/plugins/zen-mode.lua @@ -1,6 +1,7 @@ return { "folke/zen-mode.nvim", dependencies = { "lukas-reineke/indent-blankline.nvim" }, + enabled = false, keys = { { "zz", diff --git a/neovim.yml b/neovim.yml index 3454548..f258059 100644 --- a/neovim.yml +++ b/neovim.yml @@ -2,6 +2,8 @@ base: lua51 globals: vim: any: true + Snacks: + any: true assert: args: - type: bool diff --git a/queries/markdown/folds.scm b/queries/markdown/folds.scm new file mode 100644 index 0000000..1841169 --- /dev/null +++ b/queries/markdown/folds.scm @@ -0,0 +1,9 @@ +; Folds a section of the document +; that starts with a heading. +((section + (atx_heading)) @fold + (#trim! @fold)) + +; (#trim!) is used to prevent empty +; lines at the end of the section +; from being folded. diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 93364351a206040b05323c5d9356645a7927772b..d91762d4dea22a3de90d9be38eff750859970dc0 100644 GIT binary patch literal 538 zcmX|8F;c`Z479}ce1IYy1w%t~Z=ksHD48*dFXZCH8QVFA@;VwO#l3K zM3zQM8aWP;yPgKrBRxv)%F+%G1zQ7&|2lIR!8X(Bmn7kV2S})t_I~M>K;y}>VP4rL zj$9s~W6=|c`Cl4XuN|az!arH1ndw!#j!?2^$-7z0Cx{K`!z+#lbWN1G36OJKnokLe zoj^Y#n)kT8Wx?Q5h|^YS8g`=CtJPBBmkYsX#z1=Y)4-WkZ&?t<^O=n^WLog;TGihH z?6qiBRtdsE;xDl(0(B(o68fTyW102j$Z?kuMqNh+5RW#!X2{UC)-|-4SX6T!ClJ$- VU06K$M3to819lbUc45um_X9wKY$yN# literal 347 zcmXX?F>(Si5VLmD@&JaKq0R7yG!(S-&aoT@-}%ON$fRQOg%o*FUXj0K5_vCfEK6Eh z_F=a#lg7CHb;s{6V@qz+4w^B)&^a;U^JtflXO2dRm zwwXs%Qws(%g+UQsoQU`!-HmEOrjj7?4{czn=sCi`-g7K5NFK~tP$eXM;hkL53oB?t zA6c~B8hOmz8?~8DpRLtsodVl=>o+%hqc`D3&EnP_REA1Rws%(w40;@mA^Pq`6D7i@ T!cXCTPdGEf&xKck|2VHdm7qeW diff --git a/spell/lv.utf-8.add b/spell/lv.utf-8.add index 8c3d6d5..d0a6f86 100644 --- a/spell/lv.utf-8.add +++ b/spell/lv.utf-8.add @@ -417,3 +417,32 @@ procedurally nepieciešamo nepieciešamo izejams +Furjē +Pamatkoncepti +domēns +Furje +franču +pamatformula +Spektrālā +kvatu +kvantu +Pārlase +algoritmi +Kvantiski +utml +Pielietojamība +naratīvs +mājas +Pedagoģiska +beidz +Tjūringa +uzrakstītie +beigušies +Aizstāj +Doti +Propozīcija +grauj +unitāru +Unitāras +Unitaritātes +mājasdarbs diff --git a/spell/lv.utf-8.add.spl b/spell/lv.utf-8.add.spl index e582ebc4eaee718228fc93648d62b33ee956a777..af47cbf922312b569e65b1f5c9cc9e5e380dcadf 100644 GIT binary patch literal 4937 zcmZ9Qy^mv88OHB9*PiTTMT)H`D9~hN+OV;vLnv&NC+xOh_5HH$z4nq3 z+QdRkgQ#2~q@ZC)AR2|1X0#%a{Rc!*gh)ffih^<~L;=6&J@!n(NVe}i=RNPo^M0Or z`;8yAv$QDg{x^!g@%A^9(eXHaIC+#!^P;TkS<`m&#pCtn)+j5g882?`TIanxiSu^h z61Q+E3z6&G+AW=nqQTT)jxPYU$ zWV{#l-nyJ$aa;D1yzO}1xHCU%IaRxnQLS7Vi&rADxls?7a2WGhyGyTS?Y+0=$c#^S zy>uki8mN{~^X;Q9jzlkIp_hSrZTxY|V}-RD3|JaeyqD6zr+R${Hlj>!A5VZ!*sV8^ zi1{i2ayR2m@NE3qQ*^6LZtElOy@X;w0>YKgYQBt_6zlf1IgkZ|T3;Z(vva^UEVY`# z?GkV(QKd zAuI`{!8(DZq5s;YPczgy4zKrDuo9DFcH%Gm-`?IO;_8UK*gvWz=D+R7cSuaVm z4O;5#Q=ctFri~NRoz>fCdI$ReW#hre9e}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