diff --git a/.gitignore b/.gitignore index 2aca0ce..22e854c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +#--------------------------------------------------# +# The following was generated with gitignore.nvim: # +#--------------------------------------------------# +# Gitignore for the following technologies: Lua + # Compiled Lua sources luac.out @@ -41,10 +46,8 @@ luac.out .luarc.json - plugin/packer_compiled.lua java-debug/ vscode-java-test/ .stversions .stfolder - diff --git a/init.lua b/init.lua index dbaba0b..31508f2 100644 --- a/init.lua +++ b/init.lua @@ -1 +1,15 @@ require("config.init") + +if vim.env.PROF then + -- example for lazy.nvim + -- change this to the correct path for your plugin manager + local snacks = vim.fn.stdpath("data") .. "/lazy/snacks.nvim" + vim.opt.rtp:append(snacks) + require("snacks.profiler").startup({ + startup = { + event = "VimEnter", -- stop profiler on this event. Defaults to `VimEnter` + -- event = "UIEnter", + -- event = "VeryLazy", + }, + }) +end diff --git a/lazy-lock.json b/lazy-lock.json index 40688b9..d66e842 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -2,22 +2,24 @@ "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, "FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" }, "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, - "blink-cmp-git": { "branch": "master", "commit": "57f698ca503aa5aeecc338a65567f74b533c0de3" }, + "blink-cmp-git": { "branch": "master", "commit": "863e0670217d0dffb9edc6ab41b676a4128f813b" }, "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" }, + "blink-ripgrep.nvim": { "branch": "main", "commit": "d4af981745ea67b2c29bcd25f9843dbeedc580ed" }, + "blink.cmp": { "branch": "main", "commit": "49f211fe5d729df53df4c042d7c3464cf47d199e" }, + "blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" }, + "catppuccin.nvim": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, "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": "1d96327bf64189110286811a2b502c8c2262d4ca" }, + "cmake-tools.nvim": { "branch": "master", "commit": "a5d5bf0a93bb96085502334a5036fc054ad9cf33" }, "cmp-dbee": { "branch": "main", "commit": "1650f67b9bf43c029fc37570665ca895a33cdf5a" }, - "conform.nvim": { "branch": "master", "commit": "a6f5bdb78caa305496357d17e962bbc4c0b392e2" }, + "colorful-menu.nvim": { "branch": "master", "commit": "f80feb8a6706f965321aff24d0ed3849f02a7f77" }, + "conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" }, "crates.nvim": { "branch": "main", "commit": "85356807f3a0e9a3f7015586f3a010170d338686" }, "cratesearch.nvim": { "branch": "master", "commit": "9d09625d017f6b2e116503f935bc6862961313fa" }, - "csvview.nvim": { "branch": "main", "commit": "ed446a55b4ff9297d9b94a955db3a2eca6cdb2b2" }, + "css-vars.nvim": { "branch": "main", "commit": "0615782c320f729b04d9c51a8a61fb498ee4234a" }, + "csvview.nvim": { "branch": "main", "commit": "7dcb6aa2965a1d5555d4940ed0c9c2f0e173ecdb" }, "darkplus.nvim": { "branch": "master", "commit": "c7fff5ce62406121fc6c9e4746f118b2b2499c4c" }, "darkvoid.nvim": { "branch": "master", "commit": "45be993a5617e05811b6b293c05e6aded7003cc9" }, "demicolon.nvim": { "branch": "main", "commit": "eed33fc75e7af0aacd283c613d4500b188d62169" }, @@ -26,90 +28,87 @@ "flow.nvim": { "branch": "main", "commit": "095c54bbaf55473418dd09d61d3167891684cf85" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, "gh.nvim": { "branch": "main", "commit": "6f367b2ab8f9d4a0a23df2b703a3f91137618387" }, - "gitignore.nvim": { "branch": "master", "commit": "2455191ec94da8ed222806a4fe3aa358eac1e558" }, + "gitignore.nvim": { "branch": "master", "commit": "47cefc0b6ea412e1e149552b10ebfe9f7f0b8952" }, "gitpad.nvim": { "branch": "main", "commit": "1e0f6fa335c72c05d1d3635120c572e198e5ae0d" }, - "gitsigns.nvim": { "branch": "main", "commit": "4c40357994f386e72be92a46f41fc1664c84c87d" }, - "gruvbox.nvim": { "branch": "main", "commit": "089b60e92aa0a1c6fa76ff527837cd35b6f5ac81" }, + "gitsigns.nvim": { "branch": "main", "commit": "3c76f7fabac723aa682365ef782f88a83ccdb4ac" }, + "gruvbox.nvim": { "branch": "main", "commit": "977b0103c66d505233d739b417cf01bd5994883e" }, "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, "harpoon-lualine": { "branch": "master", "commit": "eae10bc6bddddbc73daa0956ba4ee5cc29cf9a49" }, - "hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" }, - "http-codes.nvim": { "branch": "main", "commit": "a610788dff2fb5df05b230d73a926c8dc3173c16" }, - "image.nvim": { "branch": "master", "commit": "6ffafab2e98b5bda46bf227055aa84b90add8cdc" }, + "http-codes.nvim": { "branch": "main", "commit": "77aea3a73d5f3134089941ebf6d4172af34a4a8d" }, + "image.nvim": { "branch": "master", "commit": "2e2d28b7734b5efdfc1219f4da8a46c761587bc2" }, "indent-blankline.nvim": { "branch": "master", "commit": "7a698a1d7ed755af9f5a88733b23ca246ce2df28" }, "inlay-hint.nvim": { "branch": "main", "commit": "eb5f0579537db271dfedd7f38460cdacb238176f" }, "inlay-hints.nvim": { "branch": "master", "commit": "3259b54f3b954b4d8260f3ee49ceabe978ea5636" }, "jupynium.nvim": { "branch": "master", "commit": "4086e40f5ab3b8b74330c5a69a26791953da5cd2" }, "jupytext.nvim": { "branch": "master", "commit": "2e86acfa4345f611c86f57116db0c06ffecb721d" }, - "kanagawa.nvim": { "branch": "master", "commit": "cfd67b0e1eeaa04302b8c7eb072253d24bf22d84" }, + "kanagawa.nvim": { "branch": "master", "commit": "709018d5af92d2e5780bfb8a6d36e9cad01a6402" }, "lackluster.nvim": { "branch": "main", "commit": "662fba7e6719b7afc155076385c00d79290bc347" }, "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": "f4f791f67e70d378a754d02da068231d2352e5bc" }, + "lualine.nvim": { "branch": "master", "commit": "1517caa8fff05e4b4999857319d3b0609a7f57fa" }, "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" }, "markdown.nvim": { "branch": "master", "commit": "dfa0d2def6dbf77e9206b16dc90cad4dd23d55d2" }, - "markview.nvim": { "branch": "main", "commit": "386a98e88e021a79df7f0494d8eb4145a78f59ae" }, + "markview.nvim": { "branch": "main", "commit": "b3c0f3caf78518d33a0b5ad8af944a3c70aa0389" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" }, - "mason-nvim-dap.nvim": { "branch": "main", "commit": "09220b99d63d5363f219daa2785242ee5fddba7f" }, + "mason-nvim-dap.nvim": { "branch": "main", "commit": "ea387e0819ab189d536bb4067e4d8ece3801a292" }, "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "melange.nvim": { "branch": "master", "commit": "2db5407f2f6d6d6286f50f2f7365728d66f6f3ae" }, - "mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" }, - "neoconf.nvim": { "branch": "main", "commit": "21483cfdde74fdbd6493b0f7b3b01cfd174199a4" }, - "neocord": { "branch": "main", "commit": "4d55d8dab2d5f2f272192add7a2c21982039c699" }, + "mini.icons": { "branch": "main", "commit": "86a633f0dffcfd80110bac86681dbf4b5c37ba5c" }, + "neoconf.nvim": { "branch": "main", "commit": "2e7474008df461327f3356715d75c11821fbfa92" }, + "neocord": { "branch": "main", "commit": "41bacd44e9d36f5e36e0271672ac2c02f6fa355a" }, "neogen": { "branch": "main", "commit": "b2e78708876f4da507839726816010a68e33fec8" }, "neogit": { "branch": "master", "commit": "43fa47fb61773b0d90a78ebc2521ea8faaeebd86" }, - "neorg": { "branch": "main", "commit": "ed43ed58116caa0a17bbbc7aa663e32bf94bc531" }, + "neorg": { "branch": "main", "commit": "e206c9642f4a115cd836e76c98ef785623d335bc" }, "neorg-telescope": { "branch": "main", "commit": "ddb2556644cae922699a239bbb0fe16e25b084b7" }, "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": "e4fd65b08c5ae590511d77c2ad26c59c353fc64a" }, + "nightfly.nvim": { "branch": "master", "commit": "467980e03f0e72250ad9ac0160a21a1f0310cfff" }, "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, - "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, + "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" }, "nvim-autopairs": { "branch": "master", "commit": "3d02855468f94bf435db41b661b58ec4f48a06b7" }, - "nvim-colorizer.lua": { "branch": "master", "commit": "943be69156b94fbc96064f4913d653f0c7fb299f" }, - "nvim-dap": { "branch": "master", "commit": "379cf26e9c457b66a0152cd5d018418c03720d47" }, + "nvim-colorizer.lua": { "branch": "master", "commit": "517df88cf2afb36652830df2c655df2da416a0ae" }, + "nvim-dap": { "branch": "master", "commit": "7aade9e99bef5f0735cf966e715b3ce45515d786" }, "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": "9b7762788de74cfac1641b57354e4ce51baa7e5f" }, - "nvim-lint": { "branch": "master", "commit": "6e9dd545a1af204c4022a8fcd99727ea41ffdcc8" }, - "nvim-lspconfig": { "branch": "master", "commit": "62c5fac4c59be9e41b92ef62f3bb0fbdae3e2d9e" }, + "nvim-dbee": { "branch": "master", "commit": "b4aebcabedbf0f5aa90ca391c87d6095e365ac33" }, + "nvim-lint": { "branch": "master", "commit": "93b8040115c9114dac1047311763bef275e752dc" }, + "nvim-lspconfig": { "branch": "master", "commit": "0a1ac55d7d4ec2b2ed9616dfc5406791234d1d2b" }, "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": "99487eb34a397befce8182ff63347a21c5f4b881" }, - "nvim-treesitter-context": { "branch": "master", "commit": "198720b4016af04c9590f375d714d5bf8afecc1a" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "88fce4e6496950dab867a7c63a819df0ead56751" }, + "nvim-surround": { "branch": "main", "commit": "caf6f633d4d77a29b6e265b560c5a035d171a913" }, + "nvim-treesitter": { "branch": "master", "commit": "86768fdd002c75833414010052a1e95a4760ee32" }, + "nvim-treesitter-context": { "branch": "master", "commit": "93b29a32d5f4be10e39226c6b796f28d68a8b483" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "9937e5e356e5b227ec56d83d0a9d0a0f6bc9cad4" }, "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, - "nvim-ufo": { "branch": "main", "commit": "a52c92c3bbaa10f0c9b547a50adaa8c7d8b29f94" }, - "nvim-web-devicons": { "branch": "master", "commit": "1020869742ecb191f260818234517f4a1515cfe8" }, + "nvim-ufo": { "branch": "main", "commit": "5b75cf5fdb74054fc8badb2e7ca9911dc0470d94" }, + "nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" }, "obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" }, "oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" }, "onedark.nvim": { "branch": "master", "commit": "67a74c275d1116d575ab25485d1bfa6b2a9c38a6" }, - "otter.nvim": { "branch": "main", "commit": "e8c662e1aefa8b483cfba6e00729a39a363dcecc" }, + "otter.nvim": { "branch": "main", "commit": "c72e597f03ad53479424f52c9df71ddebe34c3d8" }, "pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" }, "persistence.nvim": { "branch": "main", "commit": "166a79a55bfa7a4db3e26fc031b4d92af71d0b51" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, "promise-async": { "branch": "main", "commit": "119e8961014c9bfaf1487bf3c2a393d254f337e2" }, - "rainbow-delimiters.nvim": { "branch": "master", "commit": "011d98eaa3a73b5a51d82ce5bc6b1397dde95562" }, - "rainbow_csv.nvim": { "branch": "main", "commit": "7f3fddfe813641035fac2cdf94c2ff69bb0bf0b9" }, - "rose-pine.nvim": { "branch": "main", "commit": "7718965bdd1526b233f082da17e88b8bde7a7e6e" }, - "rustaceanvim": { "branch": "master", "commit": "2b0f0b7e03751cf8ed123322f9b02d8f73fa9df7" }, - "snacks.nvim": { "branch": "main", "commit": "07f4b9adff7af45a7e0eb22d85a422e32ed4b1ca" }, + "rainbow-delimiters.nvim": { "branch": "master", "commit": "de39919a57e1a40a4c7dc5bae0de276f9c616ef3" }, + "rainbow_csv.nvim": { "branch": "main", "commit": "26de78d8324f7ac6a3e478319d1eb1f17123eb5b" }, + "rose-pine.nvim": { "branch": "main", "commit": "7d1b5c7dcd274921f0f58e90a8bf935f6a95fbf3" }, + "rustaceanvim": { "branch": "master", "commit": "1486b5a2cc0de646d6d0837ec77127c9d6e2c50f" }, + "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, "spellwarn.nvim": { "branch": "main", "commit": "12734b47b008d912b4925c0bc2c1248eb534409d" }, "tagbar": { "branch": "master", "commit": "8de7694c0aeda253073098bbc9fb890b2902ddb8" }, - "tailwind-fold.nvim": { "branch": "main", "commit": "599ecda211573f8dc39308468c58e5b156d917a6" }, + "tailwind-fold.nvim": { "branch": "main", "commit": "f8ce6d3c37be5a023c292357efde0c200b0b5138" }, "telescope-bibtex.nvim": { "branch": "master", "commit": "289a6f86ebec06e8ae1590533b732b9981d84900" }, - "telescope-frecency.nvim": { "branch": "master", "commit": "871038761e61a621cdf4b24df731f215daabc549" }, - "telescope-fzf-native.nvim": { "branch": "main", "commit": "2a5ceff981501cff8f46871d5402cd3378a8ab6a" }, + "telescope-frecency.nvim": { "branch": "master", "commit": "aa28501258a66b7182a3071064c2d214ca840fbd" }, + "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, "telescope-git-diffs.nvim": { "branch": "main", "commit": "b8e5c9e13b9e27f8ccfd14430d04739b9996ae76" }, "telescope-heading.nvim": { "branch": "main", "commit": "e85c0f69cb64048f56e76548dcb2f10277576df9" }, "telescope-import.nvim": { "branch": "main", "commit": "6fd69447679a99b463025e7f2f787e8b185dd740" }, @@ -127,16 +126,15 @@ "ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" }, "ts-error-translator.nvim": { "branch": "main", "commit": "47e5ba89f71b9e6c72eaaaaa519dd59bd6897df4" }, "typecheck.nvim": { "branch": "main", "commit": "5a0b0f50be009e85c337f3e183fa6cd28a3c95a0" }, - "typescript-tools.nvim": { "branch": "master", "commit": "35e397ce467bedbbbb5bfcd0aa79727b59a08d4a" }, - "typst-preview.nvim": { "branch": "master", "commit": "00ff6829030f302e8ff24d0e3a68625dd1a3ac40" }, - "undotree": { "branch": "master", "commit": "2556c6800b210b2096b55b66e74b4cc1d9ebbe4f" }, + "typescript-tools.nvim": { "branch": "master", "commit": "255782c1840b3356f921ce949ace8efd633ba6ac" }, + "typst-preview.nvim": { "branch": "master", "commit": "ddcc71126f910ec83037622bc8d506f91a290ade" }, + "undotree": { "branch": "master", "commit": "b951b87b46c34356d44aa71886aecf9dd7f5788a" }, "vim-be-good": { "branch": "master", "commit": "0ae3de14eb8efc6effe7704b5e46495e91931cc5" }, "vim-closetag": { "branch": "master", "commit": "d0a562f8bdb107a50595aefe53b1a690460c3822" }, "vim-illuminate": { "branch": "master", "commit": "19cb21f513fc2b02f0c66be70107741e837516a1" }, "vim-log-highlighting": { "branch": "master", "commit": "1037e26f3120e6a6a2c0c33b14a84336dee2a78f" }, - "vim-startuptime": { "branch": "master", "commit": "b6f0d93f6b8cf6eee0b4c94450198ba2d6a05ff6" }, "vim-tmux-navigator": { "branch": "master", "commit": "791dacfcfc8ccb7f6eb1c853050883b03e5a22fe" }, - "vimtex": { "branch": "master", "commit": "096a0450261abccb7944630fae66788712be46a8" }, + "vimtex": { "branch": "master", "commit": "bcb14eb6e3739f0c1902115a710292bc37c62d2e" }, "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 ef36a87..46af567 100644 --- a/lua/config/autocmds.lua +++ b/lua/config/autocmds.lua @@ -125,3 +125,14 @@ vim.api.nvim_create_autocmd({ "VimEnter" }, { vim.opt_local.colorcolumn = "80" end ]] + +vim.api.nvim_create_user_command("OpenPdf", function() + local filepath = vim.api.nvim_buf_get_name(0) + if filepath:match("%.typ$") then + os.execute( + "zathura " + .. vim.fn.shellescape(filepath:gsub("%.typ$", ".pdf"):gsub("/([^/]+)%.pdf$", "/target/%1.pdf")) + .. " 2>/dev/null &" + ) + end +end, {}) diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index ed07d36..751b3c4 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -4,7 +4,7 @@ local vmap = require("config.mappings").vmap local tmap = require("config.mappings").tmap local imap = require("config.mappings").imap --- Unpam keys +-- Unmap keys vim.keymap.set("", "", "") nmap("Q", "") nmap("", "") diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 14faca9..27b4e0a 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -1,36 +1,32 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +-- Bootstrap lazy.nvim +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +-- Make sure to setup `mapleader` and `maplocalleader` before +-- loading lazy.nvim so that mappings are correct. +-- This is also a good place to setup other settings (vim.opt) vim.g.mapleader = " " vim.g.maplocalleader = " " -if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release - lazypath, - }) -end -vim.opt.rtp:prepend(lazypath) -local opts = { - ui = { - -- The border to use for the UI window. Accepts same border values as |nvim_open_win()|. - border = "rounded", - }, - change_detection = { - -- automatically check for config file changes and reload the ui - enabled = false, - notify = true, -- get a notification when changes are found - }, - install = { - -- try to load one of these colorschemes when starting an installation during startup - colorscheme = { "rose-pine" }, - }, - rocks = { - hererocks = true, -- recommended if you do not have global installation of Lua 5.1. - }, -} - -require("lazy").setup("plugins", opts) +-- Setup lazy.nvim +require("lazy").setup({ + spec = { { import = "plugins" } }, + install = { colorscheme = { "rose-pine" } }, + ui = { border = "rounded" }, + change_detection = { enabled = false }, +}) diff --git a/lua/plugins/blink.lua b/lua/plugins/blink.lua index a924730..68b980f 100644 --- a/lua/plugins/blink.lua +++ b/lua/plugins/blink.lua @@ -4,6 +4,8 @@ return { dependencies = { "folke/lazydev.nvim", "echasnovski/mini.icons", + "jdrupal-dev/css-vars.nvim", + "xzbdmw/colorful-menu.nvim", { "L3MON4D3/LuaSnip", version = "v2.*" }, { "Saecki/crates.nvim", @@ -71,14 +73,24 @@ return { "lsp", "path", "buffer", - "dbee", "snippets", "ripgrep", - "obsidian", - -- "markdown", "jupynium", + "css_vars", + }, + per_filetype = { + sql = { "dbee", "buffer", "snippets" }, + musql = { "dbee", "buffer", "snippets" }, + plsql = { "dbee", "buffer", "snippets" }, + markdown = { "lsp", "obsidian", "ripgrep", "buffer", "path", "snippets" }, }, providers = { + buffer = { + score_offset = -50, + opts = { + prefix_min_len = 3, + }, + }, lazydev = { name = "LazyDev", module = "lazydev.integrations.blink", @@ -99,17 +111,12 @@ return { module = "blink.compat.source", score_offset = 10, }, - -- markdown = { - -- name = "RenderMarkdown", - -- module = "render-markdown.integ.blink", - -- score_offset = 10, - -- fallbacks = { "lsp" }, - -- }, ripgrep = { module = "blink-ripgrep", name = "Ripgrep", + score_offset = -100, opts = { - prefix_min_len = 3, + prefix_min_len = 5, context_size = 5, max_filesize = "1M", project_root_marker = { ".git", "package.json", ".root" }, @@ -127,7 +134,7 @@ return { jupynium = { name = "jupynium", module = "blink.compat.source", - score_offset = 1000, + score_offset = 100, }, git = { score_offset = 100, @@ -139,8 +146,23 @@ return { end, opts = {}, }, + css_vars = { + name = "css-vars", + module = "css-vars.blink", + opts = { + -- WARNING: The search is not optimized to look for variables in JS files. + -- If you change the search_extensions you might get false positives and weird completion results. + search_extensions = { ".js", ".ts", ".jsx", ".tsx" }, + }, + }, + snippets = { + score_offset = -10, + }, }, }, + cmdline = { + enabled = false, + }, completion = { -- 'prefix' will fuzzy match on the text before the cursor -- 'full' will fuzzy match on the text before *and* after the cursor @@ -156,18 +178,12 @@ return { }, list = { selection = { - preselect = function(ctx) - return ctx.mode ~= "cmdline" - end, - auto_insert = function(ctx) - return ctx.mode ~= "cmdline" - end, + preselect = true, + auto_insert = true, }, }, menu = { - auto_show = function(ctx) - return ctx.mode ~= "cmdline" - end, + auto_show = true, border = "single", draw = { columns = { { "kind_icon" }, { "label", "label_description", gap = 1 }, { "kind" } }, @@ -184,6 +200,14 @@ return { return hl end, }, + label = { + text = function(ctx) + return require("colorful-menu").blink_components_text(ctx) + end, + highlight = function(ctx) + return require("colorful-menu").blink_components_highlight(ctx) + end, + }, }, }, }, diff --git a/lua/plugins/cellular-automaton.lua b/lua/plugins/cellular-automaton.lua index 8b980bb..6814f8f 100644 --- a/lua/plugins/cellular-automaton.lua +++ b/lua/plugins/cellular-automaton.lua @@ -1,5 +1,6 @@ return { "eandrju/cellular-automaton.nvim", + cmd = "CellularAutomaton", keys = { { "mr", @@ -7,5 +8,4 @@ return { desc = "[M]ake it [R]ain", }, }, - cmd = "CellularAutomaton", } diff --git a/lua/plugins/colorful-menu.lua b/lua/plugins/colorful-menu.lua new file mode 100644 index 0000000..9c4a020 --- /dev/null +++ b/lua/plugins/colorful-menu.lua @@ -0,0 +1,91 @@ +return { + "xzbdmw/colorful-menu.nvim", + opts = { + ls = { + lua_ls = { + -- Maybe you want to dim arguments a bit. + arguments_hl = "@comment", + }, + gopls = { + -- By default, we render variable/function's type in the right most side, + -- to make them not to crowd together with the original label. + + -- when true: + -- foo *Foo + -- ast "go/ast" + + -- when false: + -- foo *Foo + -- ast "go/ast" + align_type_to_right = true, + -- When true, label for field and variable will format like "foo: Foo" + -- instead of go's original syntax "foo Foo". If align_type_to_right is + -- true, this option has no effect. + add_colon_before_type = true, + -- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36 + preserve_type_when_truncate = true, + }, + -- for lsp_config or typescript-tools + ts_ls = { + -- false means do not include any extra info, + -- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42 + extra_info_hl = "@comment", + }, + vtsls = { + -- false means do not include any extra info, + -- see https://github.com/xzbdmw/colorful-menu.nvim/issues/42 + extra_info_hl = "@comment", + }, + ["rust-analyzer"] = { + -- Such as (as Iterator), (use std::io). + extra_info_hl = "@comment", + -- Similar to the same setting of gopls. + align_type_to_right = true, + -- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36 + preserve_type_when_truncate = true, + }, + clangd = { + -- Such as "From ". + extra_info_hl = "@comment", + -- Similar to the same setting of gopls. + align_type_to_right = true, + -- the hl group of leading dot of "•std::filesystem::permissions(..)" + import_dot_hl = "@comment", + -- See https://github.com/xzbdmw/colorful-menu.nvim/pull/36 + preserve_type_when_truncate = true, + }, + zls = { + -- Similar to the same setting of gopls. + align_type_to_right = true, + }, + roslyn = { + extra_info_hl = "@comment", + }, + dartls = { + extra_info_hl = "@comment", + }, + -- The same applies to pyright/pylance + basedpyright = { + -- It is usually import path such as "os" + extra_info_hl = "@comment", + }, + -- If true, try to highlight "not supported" languages. + fallback = true, + -- this will be applied to label description for unsupport languages + fallback_extra_info_hl = "@comment", + }, + -- If the built-in logic fails to find a suitable highlight group for a label, + -- this highlight is applied to the label. + fallback_highlight = "@variable", + -- If provided, the plugin truncates the final displayed text to + -- this width (measured in display cells). Any highlights that extend + -- beyond the truncation point are ignored. When set to a float + -- between 0 and 1, it'll be treated as percentage of the width of + -- the window: math.floor(max_width * vim.api.nvim_win_get_width(0)) + -- Default 60. + max_width = 80, + }, + config = function(_, opts) + require("colorful-menu").setup(opts) + end, +} diff --git a/lua/plugins/conform.lua b/lua/plugins/conform.lua index bd1ca01..0f80344 100644 --- a/lua/plugins/conform.lua +++ b/lua/plugins/conform.lua @@ -15,27 +15,28 @@ return { }, opts = { formatters_by_ft = { - lua = { "stylua" }, + bash = { "shfmt" }, + c = { "clang-format" }, + cmake = { "cmake_format" }, + cpp = { "clang-format" }, css = { "prettier" }, - scss = { "prettier" }, - python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" }, go = { "goimports", "gofmt" }, + html = { "djlint", "rustywind" }, + htmldjango = { "djlint", "rustywind" }, javascript = js, javascriptreact = js, + json = { "jq" }, + lua = { "stylua" }, + markdown = { "cbfmt", "markdownlint", "markdown-toc" }, + python = { "ruff_format", "ruff_fix", "ruff_organize_imports", "docformatter" }, + rust = { "rustfmt", "leptosfmt", "yew-fmt" }, + scss = { "prettier" }, + sql = { "pg_format" }, + toml = { "taplo" }, typescript = js, typescriptreact = js, - markdown = { "cbfmt", "markdownlint", "markdown-toc" }, - vimwiki = { "cbfmt", "markdownlint", "markdown-toc" }, - json = { "jq" }, - c = { "clang-format" }, - toml = { "taplo" }, - cpp = { "clang-format" }, - cmake = { "cmake_format" }, - htmldjango = { "djlint", "rustywind" }, - html = { "djlint", "rustywind" }, typst = { "typstyle" }, - rust = { "rustfmt", "leptosfmt", "yew-fmt" }, - sql = { "pg_format" }, + vimwiki = { "cbfmt", "markdownlint", "markdown-toc" }, yaml = { "yamlfmt" }, ["_"] = { "trim_whitespace" }, }, diff --git a/lua/plugins/image.lua b/lua/plugins/image.lua index 38d768e..5b17a4a 100644 --- a/lua/plugins/image.lua +++ b/lua/plugins/image.lua @@ -8,22 +8,26 @@ return { enabled = true, clear_in_insert_mode = false, download_remote_images = true, - only_render_image_at_cursor = false, + only_render_image_at_cursor = true, filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here }, neorg = { enabled = true, + only_render_image_at_cursor = true, filetypes = { "norg" }, }, typst = { - enabled = false, + enabled = true, + only_render_image_at_cursor = true, filetypes = { "typst" }, }, html = { - enabled = false, + enabled = true, + only_render_image_at_cursor = true, }, css = { - enabled = false, + enabled = true, + only_render_image_at_cursor = true, }, }, max_width = nil, @@ -35,5 +39,26 @@ return { editor_only_render_when_focused = false, -- auto show/hide images when the editor gains/looses focus tmux_show_only_in_active_window = false, -- auto show/hide images in the correct Tmux window (needs visual-activity off) hijack_file_patterns = { "*.png", "*.jpg", "*.jpeg", "*.gif", "*.webp", "*.avif" }, -- render image files as images when opened + resolve_image_path = function(document_path, image_path, fallback) + -- Define the absolute path to your Assets directory + local assets_dir = vim.fn.expand("~/Obsidian/assets/img/") + + -- Check if the image_path is already an absolute path + if image_path:match("^/") then + -- If it's an absolute path, leave it unchanged + return image_path + end + + -- Construct the new image path by prepending the Assets directory + local new_image_path = assets_dir .. "/" .. image_path + + -- Check if the constructed path exists + if vim.fn.filereadable(new_image_path) == 1 then + return new_image_path + else + -- If the file doesn't exist in Assets, fallback to default behavior + return fallback(document_path, image_path) + end + end, }, } diff --git a/lua/plugins/inlay-hints.lua b/lua/plugins/inlay-hints.lua index c38c99a..0898629 100644 --- a/lua/plugins/inlay-hints.lua +++ b/lua/plugins/inlay-hints.lua @@ -14,6 +14,7 @@ return { { "felpafel/inlay-hint.nvim", event = "LspAttach", + version = "1.0.*", opts = { virt_text_pos = "eol", highlight_group = "comment", diff --git a/lua/plugins/jupynium.lua b/lua/plugins/jupyter.lua similarity index 96% rename from lua/plugins/jupynium.lua rename to lua/plugins/jupyter.lua index 68445b0..f8d2879 100644 --- a/lua/plugins/jupynium.lua +++ b/lua/plugins/jupyter.lua @@ -1,6 +1,7 @@ return { { "kiyoon/jupynium.nvim", + enabled = false, dependencies = { "rcarriga/nvim-notify", -- optional -- "stevearc/dressing.nvim", -- optional, UI for :JupyniumKernelSelect diff --git a/lua/plugins/lazydev.lua b/lua/plugins/lazydev.lua index 72ebd73..321593b 100644 --- a/lua/plugins/lazydev.lua +++ b/lua/plugins/lazydev.lua @@ -1,6 +1,6 @@ return { "folke/lazydev.nvim", - ft = "lua", -- only load on lua files + ft = "lua", opts = { library = { -- See the configuration section for more details diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 06e8d65..983361a 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -132,7 +132,6 @@ return { "cssls", "emmet_language_server", "html", - -- "jedi_language_server", "lua_ls", "tailwindcss", "texlab", @@ -317,8 +316,10 @@ return { tinymist = { offset_encoding = "utf-8", settings = { - exportPdf = "onType", + formatterMode = "typstyle", + exportPdf = "onSave", outputPath = "$root/target/$dir/$name", + semanticTokens = "disable", }, }, matlab_ls = { diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua index b78ea21..0bafa7e 100644 --- a/lua/plugins/lualine.lua +++ b/lua/plugins/lualine.lua @@ -2,7 +2,6 @@ return { "nvim-lualine/lualine.nvim", dependencies = { "nvim-tree/nvim-web-devicons", - "pnx/lualine-lsp-status", "arkav/lualine-lsp-progress", { "letieu/harpoon-lualine", dependencies = { "ThePrimeagen/harpoon", @@ -48,7 +47,7 @@ return { sections = { lualine_a = { "mode" }, lualine_b = { "branch" }, - lualine_c = { "filename", "diff", "harpoon2", "lsp-status", "lsp_progress" }, + lualine_c = { "filename", "diff", "harpoon2", "lsp_progress" }, lualine_x = { "diagnostics", "encoding", "filetype", "filesize" }, lualine_y = { "progress" }, lualine_z = { "location" }, @@ -64,6 +63,6 @@ return { tabline = {}, winbar = {}, inactive_winbar = {}, - extentions = { "fzf", "fugitive", "lazy", "mason", "man", "oil", "nvim-dap-ui", "trouble" }, + extentions = {}, }, } diff --git a/lua/plugins/oil.lua b/lua/plugins/oil.lua index f0da5ce..8a02d02 100644 --- a/lua/plugins/oil.lua +++ b/lua/plugins/oil.lua @@ -1,6 +1,8 @@ return { "stevearc/oil.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, keys = { { "-", diff --git a/lua/plugins/otter.lua b/lua/plugins/otter.lua index c8e4017..656cffd 100644 --- a/lua/plugins/otter.lua +++ b/lua/plugins/otter.lua @@ -4,21 +4,5 @@ return { "nvim-treesitter/nvim-treesitter", }, enabled = false, - keys = { - { - "Ot", - function() - require("otter").open() - end, - desc = "Open Otter", - }, - { - "Oc", - function() - require("otter").close() - end, - desc = "Close Otter", - }, - }, opts = {}, } diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index 1dbd682..d6d28cf 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -2,39 +2,45 @@ 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, + opts = function() + -- Toggle the profiler + Snacks.toggle.profiler():map("Pp") + -- Toggle the profiler highlights + Snacks.toggle.profiler_highlights():map("Ph") + return { 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 }, - }, + 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 }, + } + end, keys = { { "zz", @@ -55,7 +61,14 @@ return { function() Snacks.notifier.show_history() end, - desc = "Notification History", + desc = "History", + }, + { + "Ps", + function() + Snacks.profiler.scratch() + end, + desc = "Profiler Scratch Bufer", }, }, init = function() diff --git a/lua/plugins/startuptime.lua b/lua/plugins/startuptime.lua deleted file mode 100644 index 508294d..0000000 --- a/lua/plugins/startuptime.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "dstein64/vim-startuptime", - evnet = "VeryLazy", - cmd = { "StartupTime" }, -} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua index 31ab217..1ce714e 100644 --- a/lua/plugins/telescope.lua +++ b/lua/plugins/telescope.lua @@ -13,7 +13,7 @@ return { { "crispgm/telescope-heading.nvim" }, { "benfowler/telescope-luasnip.nvim" }, { "paopaol/telescope-git-diffs.nvim" }, - { "ThePrimeagen/harpoon", branch = "harpoon2" }, + { "ThePrimeagen/harpoon", branch = "harpoon2" }, { "piersolenski/telescope-import.nvim" }, { "nvim-telescope/telescope-frecency.nvim" }, }, @@ -37,20 +37,20 @@ return { end, desc = "Current Buffer Fuzzy", }, - { "ps", require("telescope.builtin").live_grep, desc = "Live Grep" }, - { "pb", require("telescope.builtin").buffers, desc = "Find [B]uffers" }, - { "pws", require("telescope.builtin").grep_string, desc = "[S]tring under the cursor" }, - { "pe", require("telescope.builtin").symbols, desc = "[E]moji" }, - { "pd", require("telescope.builtin").diagnostic, desc = "[D]iagnostics" }, - { "pB", require("telescope.builtin").git_branches, desc = "Checkout [B]ranch" }, - { "ph", require("telescope.builtin").help_tags, desc = "[H]elp" }, - { "pM", require("telescope.builtin").man_pages, desc = "[M]an Pages" }, - { "pr", require("telescope.builtin").oldfiles, desc = "Open [R]ecent Files" }, - { "pR", require("telescope.builtin").registers, desc = "[R]egisters" }, - { "pg", require("telescope.builtin").git_files, desc = "[G]it Files" }, - { "pk", require("telescope.builtin").keymaps, desc = "[K]eymaps" }, - { "pC", require("telescope.builtin").commands, desc = "[C]ommands" }, - { "pt", vim.cmd.TodoTelescope, desc = "[T]odo" }, + { "ps", require("telescope.builtin").live_grep, desc = "Live Grep" }, + { "pb", require("telescope.builtin").buffers, desc = "Find [B]uffers" }, + { "pws", require("telescope.builtin").grep_string, desc = "[S]tring under the cursor" }, + { "pe", require("telescope.builtin").symbols, desc = "[E]moji" }, + { "pd", require("telescope.builtin").diagnostic, desc = "[D]iagnostics" }, + { "pB", require("telescope.builtin").git_branches, desc = "Checkout [B]ranch" }, + { "ph", require("telescope.builtin").help_tags, desc = "[H]elp" }, + { "pM", require("telescope.builtin").man_pages, desc = "[M]an Pages" }, + { "pr", require("telescope.builtin").oldfiles, desc = "Open [R]ecent Files" }, + { "pR", require("telescope.builtin").registers, desc = "[R]egisters" }, + { "pg", require("telescope.builtin").git_files, desc = "[G]it Files" }, + { "pk", require("telescope.builtin").keymaps, desc = "[K]eymaps" }, + { "pC", require("telescope.builtin").commands, desc = "[C]ommands" }, + { "pt", vim.cmd.TodoTelescope, desc = "[T]odo" }, { "pm", function() @@ -145,7 +145,7 @@ return { }, extensions = { fzf = { - fuzzy = true, -- false will only do exact matching + fuzzy = true, -- false will only do exact matching override_generic_sorter = true, -- override the generic sorter override_file_sorter = true, -- override the file sorter case_mode = "smart_case", -- or "ignore_case" or "respect_case" @@ -275,12 +275,12 @@ return { pcall(telescope.load_extension, "fzf") pcall(telescope.load_extension, "media_files") -- Telescope media_files - pcall(telescope.load_extension, "lazy") -- Telescope lazy + pcall(telescope.load_extension, "lazy") -- Telescope lazy pcall(telescope.load_extension, "software-licenses") -- Telescope software-licenses list - pcall(telescope.load_extension, "heading") -- Telescope heading - pcall(telescope.load_extension, "luasnip") -- Telescope luasnip - pcall(telescope.load_extension, "git_diffs") -- Telescope git_diffs diff_commits - pcall(telescope.load_extension, "bibtex") -- Telescope bibtex + pcall(telescope.load_extension, "heading") -- Telescope heading + pcall(telescope.load_extension, "luasnip") -- Telescope luasnip + pcall(telescope.load_extension, "git_diffs") -- Telescope git_diffs diff_commits + pcall(telescope.load_extension, "bibtex") -- Telescope bibtex pcall(telescope.load_extension, "harpoon") pcall(telescope.load_extension, "frecency") end, diff --git a/lua/plugins/trouble.lua b/lua/plugins/trouble.lua index 3321928..dc95277 100644 --- a/lua/plugins/trouble.lua +++ b/lua/plugins/trouble.lua @@ -1,6 +1,8 @@ return { "folke/trouble.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, + dependencies = { + "nvim-tree/nvim-web-devicons", + }, cmd = "Trouble", keys = { { diff --git a/lua/plugins/typecheck.lua b/lua/plugins/typecheck.lua index 649167d..ef343e5 100644 --- a/lua/plugins/typecheck.lua +++ b/lua/plugins/typecheck.lua @@ -1,6 +1,6 @@ return { "jellydn/typecheck.nvim", - dependencies = { "folke/trouble.nvim", dependencies = { "nvim-tree/nvim-web-devicons" } }, + dependencies = { "folke/trouble.nvim" }, ft = { "javascript", "javascriptreact", "json", "jsonc", "typescript", "typescriptreact" }, opts = { debug = true, diff --git a/lua/plugins/typst.lua b/lua/plugins/typst.lua index 6eb6bad..fad3941 100644 --- a/lua/plugins/typst.lua +++ b/lua/plugins/typst.lua @@ -20,7 +20,7 @@ return { end, opts = { -- Setting this true will enable printing debug information with print() - debug = true, + debug = false, -- Custom format string to open the output link provided with %s -- Example: open_cmd = 'firefox %s -P typst-preview --class typst-preview' @@ -40,7 +40,7 @@ return { -- required. dependencies_bin = { -- if you are using tinymist, just set ['typst-preview'] = "tinymist". - ["typst-preview"] = "tinymist", + ["typst-preview"] = nil, ["websocat"] = nil, }, -- A list of extra arguments (or nil) to be passed to previewer. diff --git a/lua/plugins/vim-be-good.lua b/lua/plugins/vim-be-good.lua index 605bfe2..e5920c2 100644 --- a/lua/plugins/vim-be-good.lua +++ b/lua/plugins/vim-be-good.lua @@ -1,4 +1,5 @@ return { "ThePrimeagen/vim-be-good", + lazy = true, cmd = { "VimBeGood" }, } diff --git a/lua/plugins/vimtex.lua b/lua/plugins/vimtex.lua index 3426580..29a1003 100644 --- a/lua/plugins/vimtex.lua +++ b/lua/plugins/vimtex.lua @@ -1,5 +1,6 @@ return { "lervag/vimtex", + enabled = false, ft = "tex", keys = { { "Tb", vim.cmd.VimtexCompile, desc = "[B]uild", ft = "tex" }, diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua index 1637655..042dd7f 100644 --- a/lua/plugins/which-key.lua +++ b/lua/plugins/which-key.lua @@ -1,9 +1,10 @@ return { "folke/which-key.nvim", event = "VeryLazy", - dependencies = "nvim-tree/nvim-web-devicons", + dependencies = { + "echasnovski/mini.icons", + }, version = "*", - enabled = true, opts = { preset = "modern", sort = { "alphanum", "local", "order", "group", "mod", "lower", "icase" }, @@ -19,11 +20,11 @@ return { { mode = "v", "s", - ":s///gI", + ":s///gI", desc = "[s]ubstitute word", }, { - { "C", vim.cmd.bdelete, desc = "[C]lose Buffer" }, + { "c", vim.cmd.bdelete, desc = "[C]lose Buffer" }, { "X", function() @@ -31,7 +32,6 @@ return { end, desc = "Make E[x]ecutable", }, - { "c", group = "[C]url", { "cC", group = "[C]SV" } }, { "x", group = "Trouble" }, { "g", group = "[G]it" }, { "q", group = "Persistence" }, @@ -44,6 +44,10 @@ return { { "n", group = "Gitpat" }, { "m", group = "[M]isc" }, { "T", group = "Vim[T]ex" }, + { "N", group = "[N]otifications" }, + { "O", group = "[O]bsidian" }, + { "s", group = "Neogen" }, + { "t", group = "Neo[t]est" }, { "d", group = "[D]AP", diff --git a/spell/lv.utf-8.add b/spell/lv.utf-8.add index d0a6f86..f70eed7 100644 --- a/spell/lv.utf-8.add +++ b/spell/lv.utf-8.add @@ -446,3 +446,13 @@ unitāru Unitāras Unitaritātes mājasdarbs +unitāra +unitārai +Nobīdam +atsakās +negatīvu +jāatgriež +starprezultātu +veicot +atceļ +izlaiž diff --git a/spell/lv.utf-8.add.spl b/spell/lv.utf-8.add.spl index af47cbf..2d9c3d3 100644 Binary files a/spell/lv.utf-8.add.spl and b/spell/lv.utf-8.add.spl differ