diff --git a/after/ftplugin/markdown.lua b/after/ftplugin/markdown.lua index 4d61e09..1e11a78 100644 --- a/after/ftplugin/markdown.lua +++ b/after/ftplugin/markdown.lua @@ -5,7 +5,6 @@ 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 }) diff --git a/lazy-lock.json b/lazy-lock.json index d66e842..713c72c 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -4,110 +4,117 @@ "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, "blink-cmp-git": { "branch": "master", "commit": "863e0670217d0dffb9edc6ab41b676a4128f813b" }, "blink-emoji.nvim": { "branch": "master", "commit": "a77aebc092ebece1eed108f301452ae774d6b67a" }, - "blink-ripgrep.nvim": { "branch": "main", "commit": "d4af981745ea67b2c29bcd25f9843dbeedc580ed" }, - "blink.cmp": { "branch": "main", "commit": "49f211fe5d729df53df4c042d7c3464cf47d199e" }, + "blink-ripgrep.nvim": { "branch": "main", "commit": "89c4d158bc6d6ca03b4059452f2f9ffaa850db8a" }, + "blink.cmp": { "branch": "main", "commit": "cb5e346d9e0efa7a3eee7fd4da0b690c48d2a98e" }, "blink.compat": { "branch": "main", "commit": "2ed6d9a28b07fa6f3bface818470605f8896408c" }, "catppuccin.nvim": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, - "ccc.nvim": { "branch": "main", "commit": "b57cbaf8db3ac43c56c9e2c7f3812944638260ed" }, + "ccc.nvim": { "branch": "main", "commit": "af2cf5a963f401aad868c065222ee13d4bbc9050" }, "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": "a5d5bf0a93bb96085502334a5036fc054ad9cf33" }, + "cmake-tools.nvim": { "branch": "master", "commit": "1ee065c33ca777c0e03cd7c358010202ee70bb88" }, "cmp-dbee": { "branch": "main", "commit": "1650f67b9bf43c029fc37570665ca895a33cdf5a" }, "colorful-menu.nvim": { "branch": "master", "commit": "f80feb8a6706f965321aff24d0ed3849f02a7f77" }, - "conform.nvim": { "branch": "master", "commit": "f9ef25a7ef00267b7d13bfc00b0dea22d78702d5" }, + "conform.nvim": { "branch": "master", "commit": "372fc521f8421b7830ea6db4d6ea3bae1c77548c" }, "crates.nvim": { "branch": "main", "commit": "85356807f3a0e9a3f7015586f3a010170d338686" }, "cratesearch.nvim": { "branch": "master", "commit": "9d09625d017f6b2e116503f935bc6862961313fa" }, "css-vars.nvim": { "branch": "main", "commit": "0615782c320f729b04d9c51a8a61fb498ee4234a" }, - "csvview.nvim": { "branch": "main", "commit": "7dcb6aa2965a1d5555d4940ed0c9c2f0e173ecdb" }, + "csvview.nvim": { "branch": "main", "commit": "6eb9c7293d35c40a71ec1eb9c653d80e8de5a2e9" }, "darkplus.nvim": { "branch": "master", "commit": "c7fff5ce62406121fc6c9e4746f118b2b2499c4c" }, "darkvoid.nvim": { "branch": "master", "commit": "45be993a5617e05811b6b293c05e6aded7003cc9" }, - "demicolon.nvim": { "branch": "main", "commit": "eed33fc75e7af0aacd283c613d4500b188d62169" }, + "demicolon.nvim": { "branch": "main", "commit": "8d79e527dbbef9de06405a30258b8d752c0638c4" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, "dracula.nvim": { "branch": "main", "commit": "96c9d19ce81b26053055ad6f688277d655b3f7d2" }, "flow.nvim": { "branch": "main", "commit": "095c54bbaf55473418dd09d61d3167891684cf85" }, - "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, + "friendly-snippets": { "branch": "main", "commit": "fc8f183479a472df60aa86f00e295462f2308178" }, "gh.nvim": { "branch": "main", "commit": "6f367b2ab8f9d4a0a23df2b703a3f91137618387" }, "gitignore.nvim": { "branch": "master", "commit": "47cefc0b6ea412e1e149552b10ebfe9f7f0b8952" }, "gitpad.nvim": { "branch": "main", "commit": "1e0f6fa335c72c05d1d3635120c572e198e5ae0d" }, - "gitsigns.nvim": { "branch": "main", "commit": "3c76f7fabac723aa682365ef782f88a83ccdb4ac" }, - "gruvbox.nvim": { "branch": "main", "commit": "977b0103c66d505233d739b417cf01bd5994883e" }, + "gitsigns.nvim": { "branch": "main", "commit": "9cd665f46ab7af2e49d140d328b8e72ea1cf511b" }, + "gruvbox.nvim": { "branch": "main", "commit": "8d79de155785f9eaf0031bba92d0289318208fc9" }, "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, "harpoon-lualine": { "branch": "master", "commit": "eae10bc6bddddbc73daa0956ba4ee5cc29cf9a49" }, "http-codes.nvim": { "branch": "main", "commit": "77aea3a73d5f3134089941ebf6d4172af34a4a8d" }, - "image.nvim": { "branch": "master", "commit": "2e2d28b7734b5efdfc1219f4da8a46c761587bc2" }, + "img-clip.nvim": { "branch": "main", "commit": "08a02e14c8c0d42fa7a92c30a98fd04d6993b35d" }, "indent-blankline.nvim": { "branch": "master", "commit": "7a698a1d7ed755af9f5a88733b23ca246ce2df28" }, - "inlay-hint.nvim": { "branch": "main", "commit": "eb5f0579537db271dfedd7f38460cdacb238176f" }, + "inlay-hint.nvim": { "branch": "main", "commit": "9dce1b25bc60fd9cf06e548c2143ab87517c5cd6" }, "inlay-hints.nvim": { "branch": "master", "commit": "3259b54f3b954b4d8260f3ee49ceabe978ea5636" }, "jupynium.nvim": { "branch": "master", "commit": "4086e40f5ab3b8b74330c5a69a26791953da5cd2" }, "jupytext.nvim": { "branch": "master", "commit": "2e86acfa4345f611c86f57116db0c06ffecb721d" }, - "kanagawa.nvim": { "branch": "master", "commit": "709018d5af92d2e5780bfb8a6d36e9cad01a6402" }, - "lackluster.nvim": { "branch": "main", "commit": "662fba7e6719b7afc155076385c00d79290bc347" }, + "kanagawa.nvim": { "branch": "master", "commit": "cc3b68b08e6a0cb6e6bf9944932940091e49bb83" }, + "lackluster.nvim": { "branch": "main", "commit": "d2519d14b2b6e9eef05752d5d4486ed5c48d6178" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, "lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" }, "litee.nvim": { "branch": "main", "commit": "4efaf373322d9e71eaff31164abb393417cc6f6a" }, + "lua-async-await": { "branch": "main", "commit": "652d94df34e97abe2d4a689edbc4270e7ead1a98" }, "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" }, "lualine-lsp-progress": { "branch": "master", "commit": "56842d097245a08d77912edf5f2a69ba29f275d7" }, - "lualine.nvim": { "branch": "master", "commit": "1517caa8fff05e4b4999857319d3b0609a7f57fa" }, + "lualine.nvim": { "branch": "master", "commit": "15884cee63a8c205334ab13ab1c891cd4d27101a" }, "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" }, "markdown.nvim": { "branch": "master", "commit": "dfa0d2def6dbf77e9206b16dc90cad4dd23d55d2" }, - "markview.nvim": { "branch": "main", "commit": "b3c0f3caf78518d33a0b5ad8af944a3c70aa0389" }, + "markview.nvim": { "branch": "main", "commit": "6bbbbf5790cdea622b53fe94b49b9801037e2db9" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "1a31f824b9cd5bc6f342fc29e9a53b60d74af245" }, - "mason-nvim-dap.nvim": { "branch": "main", "commit": "ea387e0819ab189d536bb4067e4d8ece3801a292" }, + "mason-nvim-dap.nvim": { "branch": "main", "commit": "4c2cdc69d69fe00c15ae8648f7e954d99e5de3ea" }, "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "melange.nvim": { "branch": "master", "commit": "2db5407f2f6d6d6286f50f2f7365728d66f6f3ae" }, - "mini.icons": { "branch": "main", "commit": "86a633f0dffcfd80110bac86681dbf4b5c37ba5c" }, - "neoconf.nvim": { "branch": "main", "commit": "2e7474008df461327f3356715d75c11821fbfa92" }, + "mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" }, + "neoconf.nvim": { "branch": "main", "commit": "33880483b4ca91fef04d574b9c8b8cca88061c8f" }, "neocord": { "branch": "main", "commit": "41bacd44e9d36f5e36e0271672ac2c02f6fa355a" }, "neogen": { "branch": "main", "commit": "b2e78708876f4da507839726816010a68e33fec8" }, "neogit": { "branch": "master", "commit": "43fa47fb61773b0d90a78ebc2521ea8faaeebd86" }, "neorg": { "branch": "main", "commit": "e206c9642f4a115cd836e76c98ef785623d335bc" }, - "neorg-telescope": { "branch": "main", "commit": "ddb2556644cae922699a239bbb0fe16e25b084b7" }, - "neotest": { "branch": "master", "commit": "dddbe8fe358b05b2b7e54fe4faab50563171a76d" }, + "neorg-telescope": { "branch": "main", "commit": "7fb6ca6a632c3c095601d379a664c0c1f802dc6c" }, + "neotest": { "branch": "master", "commit": "6267dcd577aa519c828d2526b05844770d3a2c6a" }, "neotest-gtest": { "branch": "main", "commit": "16989561a6356878ec4ecd6afed4f0d7a471d1db" }, "neotest-python": { "branch": "master", "commit": "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" }, "neotest-vim-test": { "branch": "master", "commit": "75c4228882ae4883b11bfce9b8383e637eb44192" }, - "nightfly.nvim": { "branch": "master", "commit": "467980e03f0e72250ad9ac0160a21a1f0310cfff" }, + "nightfly.nvim": { "branch": "master", "commit": "033e0240479126267deae2f9a4a1b0864f14bba6" }, "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, - "nui.nvim": { "branch": "main", "commit": "8d3bce9764e627b62b07424e0df77f680d47ffdb" }, + "nui.nvim": { "branch": "main", "commit": "8d5b0b568517935d3c84f257f272ef004d9f5a59" }, "nvim-autopairs": { "branch": "master", "commit": "3d02855468f94bf435db41b661b58ec4f48a06b7" }, "nvim-colorizer.lua": { "branch": "master", "commit": "517df88cf2afb36652830df2c655df2da416a0ae" }, - "nvim-dap": { "branch": "master", "commit": "7aade9e99bef5f0735cf966e715b3ce45515d786" }, + "nvim-dap": { "branch": "master", "commit": "8df427aeba0a06c6577dc3ab82de3076964e3b8d" }, "nvim-dap-python": { "branch": "master", "commit": "34282820bb713b9a5fdb120ae8dd85c2b3f49b51" }, - "nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" }, + "nvim-dap-ui": { "branch": "master", "commit": "73a26abf4941aa27da59820fd6b028ebcdbcf932" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "df66808cd78b5a97576bbaeee95ed5ca385a9750" }, "nvim-dbee": { "branch": "master", "commit": "b4aebcabedbf0f5aa90ca391c87d6095e365ac33" }, - "nvim-lint": { "branch": "master", "commit": "93b8040115c9114dac1047311763bef275e752dc" }, - "nvim-lspconfig": { "branch": "master", "commit": "0a1ac55d7d4ec2b2ed9616dfc5406791234d1d2b" }, + "nvim-java": { "branch": "main", "commit": "e552f06d86752edd77aedf50b9b49e59f6de1b65" }, + "nvim-java-core": { "branch": "main", "commit": "401bf7683012a25929a359deec418f36beb876e2" }, + "nvim-java-dap": { "branch": "main", "commit": "55f239532f7a3789d21ea68d1e795abc77484974" }, + "nvim-java-refactor": { "branch": "main", "commit": "b51a57d862338999059e1d1717df3bc80a3a15c0" }, + "nvim-java-test": { "branch": "main", "commit": "7f0f40e9c5b7eab5096d8bec6ac04251c6e81468" }, + "nvim-lint": { "branch": "master", "commit": "9dfb77ef6c5092a19502883c02dc5a02ec648729" }, + "nvim-lspconfig": { "branch": "master", "commit": "f448052a80c0bd93f479bb644a5164b9a4e2a31d" }, "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, "nvim-silicon": { "branch": "main", "commit": "7f66bda8f60c97a5bf4b37e5b8acb0e829ae3c32" }, - "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-surround": { "branch": "main", "commit": "0e62500b98f4513feaaf7425c135472457ea5b7d" }, + "nvim-treesitter": { "branch": "master", "commit": "3b308861a8d7d7bfbe9be51d52e54dcfd9fe3d38" }, + "nvim-treesitter-context": { "branch": "master", "commit": "6daca3ad780f045550b820f262002f35175a6c04" }, + "nvim-treesitter-textobjects": { "branch": "master", "commit": "ed373482db797bbf71bdff37a15c7555a84dce47" }, "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, - "nvim-ufo": { "branch": "main", "commit": "5b75cf5fdb74054fc8badb2e7ca9911dc0470d94" }, - "nvim-web-devicons": { "branch": "master", "commit": "4c3a5848ee0b09ecdea73adcd2a689190aeb728c" }, + "nvim-ufo": { "branch": "main", "commit": "cac999ec9f6302d2fd4ad8a846bf8f731af6e7cf" }, + "nvim-web-devicons": { "branch": "master", "commit": "50b5b06bff13a9b4eab946de7c7033649a6618a1" }, "obsidian.nvim": { "branch": "main", "commit": "ae1f76a75c7ce36866e1d9342a8f6f5b9c2caf9b" }, "oil.nvim": { "branch": "master", "commit": "975a77cce3c8cb742bc1b3629f4328f5ca977dad" }, - "onedark.nvim": { "branch": "master", "commit": "67a74c275d1116d575ab25485d1bfa6b2a9c38a6" }, + "onedark.nvim": { "branch": "master", "commit": "0e5512d1bebd1f08954710086f87a5caa173a924" }, "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": "de39919a57e1a40a4c7dc5bae0de276f9c616ef3" }, + "rainbow-delimiters.nvim": { "branch": "master", "commit": "55ad4fb76ab68460f700599b7449385f0c4e858e" }, "rainbow_csv.nvim": { "branch": "main", "commit": "26de78d8324f7ac6a3e478319d1eb1f17123eb5b" }, - "rose-pine.nvim": { "branch": "main", "commit": "7d1b5c7dcd274921f0f58e90a8bf935f6a95fbf3" }, - "rustaceanvim": { "branch": "master", "commit": "1486b5a2cc0de646d6d0837ec77127c9d6e2c50f" }, + "rose-pine.nvim": { "branch": "main", "commit": "96ff3993a67356ee85d1cdab9be652cdc1c5d1ac" }, + "rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" }, "snacks.nvim": { "branch": "main", "commit": "bc0630e43be5699bb94dadc302c0d21615421d93" }, "spellwarn.nvim": { "branch": "main", "commit": "12734b47b008d912b4925c0bc2c1248eb534409d" }, + "spring-boot.nvim": { "branch": "main", "commit": "218c0c26c14d99feca778e4d13f5ec3e8b1b60f0" }, "tagbar": { "branch": "master", "commit": "8de7694c0aeda253073098bbc9fb890b2902ddb8" }, - "tailwind-fold.nvim": { "branch": "main", "commit": "f8ce6d3c37be5a023c292357efde0c200b0b5138" }, + "tailwind-fold.nvim": { "branch": "main", "commit": "b1e07f4734dc2bd56778ae690a3cbaeda1a53bf2" }, "telescope-bibtex.nvim": { "branch": "master", "commit": "289a6f86ebec06e8ae1590533b732b9981d84900" }, - "telescope-frecency.nvim": { "branch": "master", "commit": "aa28501258a66b7182a3071064c2d214ca840fbd" }, + "telescope-frecency.nvim": { "branch": "master", "commit": "4d2f5854d3a161b355c4949059e6cd1087fd1d4a" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, "telescope-git-diffs.nvim": { "branch": "main", "commit": "b8e5c9e13b9e27f8ccfd14430d04739b9996ae76" }, "telescope-heading.nvim": { "branch": "main", "commit": "e85c0f69cb64048f56e76548dcb2f10277576df9" }, @@ -122,18 +129,19 @@ "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, "tokyonight.nvim": { "branch": "main", "commit": "057ef5d260c1931f1dffd0f052c685dcd14100a3" }, "tree-sitter-bruno": { "branch": "main", "commit": "347e99f256930213cd7fcd0efe3f9af83035c4b1" }, + "tree-sitter-ghostty": { "branch": "main", "commit": "1d5238fc0da5fd5a59130b95c3e1c4948a3f96c1" }, "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, "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": "255782c1840b3356f921ce949ace8efd633ba6ac" }, - "typst-preview.nvim": { "branch": "master", "commit": "ddcc71126f910ec83037622bc8d506f91a290ade" }, + "typescript-tools.nvim": { "branch": "master", "commit": "3c501d7c7f79457932a8750a2a1476a004c5c1a9" }, + "typst-preview.nvim": { "branch": "master", "commit": "2503b188cd2a17ce44fdd21a944a93335e935215" }, "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-illuminate": { "branch": "master", "commit": "fbc16dee336d8cc0d3d2382ea4a53f4a29725abf" }, "vim-log-highlighting": { "branch": "master", "commit": "1037e26f3120e6a6a2c0c33b14a84336dee2a78f" }, - "vim-tmux-navigator": { "branch": "master", "commit": "791dacfcfc8ccb7f6eb1c853050883b03e5a22fe" }, + "vim-tmux-navigator": { "branch": "master", "commit": "33afa80db65113561dc53fa732b7f5e53d5ecfd0" }, "vimtex": { "branch": "master", "commit": "bcb14eb6e3739f0c1902115a710292bc37c62d2e" }, "which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" }, "yuck.vim": { "branch": "master", "commit": "9b5e0370f70cc30383e1dabd6c215475915fe5c3" }, diff --git a/lua/plugins/dap.lua b/lua/plugins/dap.lua index 480d246..de57e32 100644 --- a/lua/plugins/dap.lua +++ b/lua/plugins/dap.lua @@ -8,6 +8,7 @@ return { "nvim-neotest/nvim-nio", { "mfussenegger/nvim-dap-python", ft = "python" }, "theHamsta/nvim-dap-virtual-text", + "neovim/nvim-lspconfig", }, keys = { { @@ -192,8 +193,9 @@ return { dapui.setup() require("mason-nvim-dap").setup({ + automatic_installation = true, ensure_installed = { - "firefox-debug-adapter", + -- "firefox-debug-adapter", "codelldb", }, automatic_install = true, @@ -205,7 +207,7 @@ return { require("dap-python").setup("python") --- JS/TS - local firefox_debug_adapter = mason_registry.get_package("firefox-debug-adapter"):get_install_path() + --[[ local firefox_debug_adapter = mason_registry.get_package("firefox-debug-adapter"):get_install_path() .. "/dist/adapter.bundle.js" dap.adapters.firefox = { type = "executable", @@ -225,7 +227,7 @@ return { } dap.configurations.javascriptreact = dap.configurations.javascript dap.configurations.typescript = dap.configurations.javascript - dap.configurations.typescriptreact = dap.configurations.javascript + dap.configurations.typescriptreact = dap.configurations.javascript ]] -- C/C++ dap.adapters.gdb = { diff --git a/lua/plugins/image.lua b/lua/plugins/image.lua index 5b17a4a..679337b 100644 --- a/lua/plugins/image.lua +++ b/lua/plugins/image.lua @@ -1,64 +1,25 @@ return { - "3rd/image.nvim", + "HakonHarnes/img-clip.nvim", + event = "VeryLazy", + keys = { + { "v", vim.cmd.PasteImage, desc = "Paste image from system clipboard" }, + }, opts = { - backend = "ueberzug", -- ueberzug, kitty - processor = "magick_rock", -- or "magick_cli" - integrations = { + default = { + dir_path = "assets/img", + extension = "webp", + process_cmd = "convert - -quality 75 webp:-", + file_name = "%Y-%m-%d-%H%M%S", + relative_to_current_file = false, + prompt_for_file_name = false, + }, + filetypes = { markdown = { - enabled = true, - clear_in_insert_mode = false, - download_remote_images = true, - only_render_image_at_cursor = true, - filetypes = { "markdown", "vimwiki" }, -- markdown extensions (ie. quarto) can go here + template = "![[$FILE_PATH]]", }, - neorg = { - enabled = true, - only_render_image_at_cursor = true, - filetypes = { "norg" }, - }, - typst = { - enabled = true, - only_render_image_at_cursor = true, - filetypes = { "typst" }, - }, - html = { - enabled = true, - only_render_image_at_cursor = true, - }, - css = { - enabled = true, - only_render_image_at_cursor = true, + vimwiki = { + template = "![[$FILE_PATH]]", }, }, - max_width = nil, - max_height = nil, - max_width_window_percentage = nil, - max_height_window_percentage = 50, - window_overlap_clear_enabled = false, -- toggles images when windows are overlapped - window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" }, - 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 0898629..c38c99a 100644 --- a/lua/plugins/inlay-hints.lua +++ b/lua/plugins/inlay-hints.lua @@ -14,7 +14,6 @@ return { { "felpafel/inlay-hint.nvim", event = "LspAttach", - version = "1.0.*", opts = { virt_text_pos = "eol", highlight_group = "comment", diff --git a/lua/plugins/java.lua b/lua/plugins/java.lua new file mode 100644 index 0000000..49854a8 --- /dev/null +++ b/lua/plugins/java.lua @@ -0,0 +1,3 @@ +return { + "nvim-java/nvim-java", +} diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 983361a..164aa84 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -10,6 +10,7 @@ return { "piersolenski/telescope-import.nvim", "mrcjkb/rustaceanvim", "pmizio/typescript-tools.nvim", + "nvim-java/nvim-java", }, config = function(_, opts) require("mason").setup() @@ -48,14 +49,13 @@ return { nmap("gD", vim.lsp.buf.declaration, "[G]oto [D]eclaration") nmap("gd", vim.lsp.buf.definition, "[G]oto [D]efinition") - nmap("K", vim.lsp.buf.hover, "Hover Documentation") + nmap("K", function() + vim.lsp.buf.hover({ border = "rounded" }) + end, "Hover Documentation") nmap("gi", vim.lsp.buf.implementation, "[G]oto [I]mplementation") - vim.keymap.set( - "i", - "", - vim.lsp.buf.signature_help, - { buffer = event.buf, desc = "LSP: Signature Documentation" } - ) + vim.keymap.set("i", "", function() + vim.lsp.buf.signature_help({ border = "rounded" }) + end, { buffer = event.buf, desc = "LSP: Signature Documentation" }) nmap("wa", vim.lsp.buf.add_workspace_folder, "[W]orkspace [A]dd Folder") nmap("wr", vim.lsp.buf.remove_workspace_folder, "[W]orkspace [R]emove Folder") nmap("ws", vim.lsp.buf.workspace_symbol, "[W]orkspace [S]ymbol") @@ -65,14 +65,18 @@ return { end, "[W]orkspace [L]ist Folders") nmap("lD", vim.lsp.buf.type_definition, "Type [D]efinition") nmap("lr", vim.lsp.buf.rename, "[R]ename") - nmap("lj", vim.diagnostic.goto_next, "Diagnostic Next") - nmap("lk", vim.diagnostic.goto_prev, "Diagnostic Prev") - nmap("]d", function() - trouble.next({ mode = "diagnostics", skip_groups = true, jump = true }) - end, "LSP: Trouble Next") - nmap("[d", function() - trouble.prev({ mode = "diagnostics", skip_groups = true, jump = true }) - end, "Trouble Prev") + nmap("lj", function() + vim.diagnostic.jump({ count = 1, float = true }) + end, "Diagnostic Next") + nmap("lk", function() + vim.diagnostic.jump({ count = -1, float = true }) + end, "Diagnostic Prev") + -- nmap("]d", function() + -- trouble.next({ mode = "diagnostics", skip_groups = true, jump = true }) + -- end, "LSP: Trouble Next") + -- nmap("[d", function() + -- trouble.prev({ mode = "diagnostics", skip_groups = true, jump = true }) + -- end, "Trouble Prev") vim.keymap.set( { "n", "v" }, "la", @@ -80,26 +84,22 @@ return { { buffer = event.buf, desc = "LSP: Code [A]ction" } ) nmap("gr", function() - require("trouble").toggle("lsp_references") + trouble.toggle("lsp_references") end, "[G]oto [R]eferences") nmap("gR", require("telescope.builtin").lsp_references, "[G]oto [R]eferences") end, }) - local signs = { - { name = "DiagnosticSignError", text = "" }, - { name = "DiagnosticSignWarn", text = "" }, - { name = "DiagnosticSignHint", text = "" }, - { name = "DiagnosticSignInfo", text = "" }, - } - - for _, sign in ipairs(signs) do - vim.fn.sign_define(sign.name, { texthl = sign.name, text = sign.text, numhl = "" }) - end - vim.diagnostic.config({ - virtual_text = true, -- virtual text - signs = { active = signs }, -- show signs + virtual_text = true, + signs = { + text = { + [vim.diagnostic.severity.ERROR] = "", + [vim.diagnostic.severity.WARN] = "", + [vim.diagnostic.severity.HINT] = "", + [vim.diagnostic.severity.INFO] = "", + }, + }, update_in_insert = true, underline = true, severity_sort = true, @@ -113,14 +113,6 @@ return { }, }) - vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { - border = "rounded", - }) - - vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { - border = "rounded", - }) - require("mason-lspconfig").setup({ automatic_installation = true, automatic_setup = true, @@ -141,6 +133,9 @@ return { handlers = { default_setup, ts_ls = function() end, + jdtls = function() + require("java").setup({}) + end, }, }) @@ -149,6 +144,19 @@ return { config.capabilities = extend_capabilities(capabilities) lspconfig[server].setup(config) end + + local function setup_ghostty_lsp() + -- Only activate ghostty-lsp when editing the ghostty config + if vim.fn.expand("%:p") == vim.fs.normalize("**/ghostty/config") then + vim.lsp.start({ + name = "ghostty-lsp", + cmd = { "ghostty-lsp" }, + root_dir = vim.fs.normalize("~/.config/ghostty"), + }) + end + end + + vim.api.nvim_create_autocmd("BufRead", { pattern = "*", callback = setup_ghostty_lsp }) end, opts = { @@ -175,7 +183,7 @@ return { }, diagnostics = { -- Get the language server to recognize the `vim` global - globals = { "vim", "awesome", "client" }, + globals = { "vim", "awesome", "client", "ya" }, }, -- workspace = { -- Make the server aware of Neovim runtime files @@ -313,15 +321,15 @@ return { provideFormatter = false, }, }, - tinymist = { - offset_encoding = "utf-8", - settings = { - formatterMode = "typstyle", - exportPdf = "onSave", - outputPath = "$root/target/$dir/$name", - semanticTokens = "disable", - }, - }, + -- tinymist = { + -- offset_encoding = "utf-8", + -- settings = { + -- formatterMode = "typstyle", + -- exportPdf = "none", + -- outputPath = "$root/target/$dir/$name", + -- semanticTokens = "disable", + -- }, + -- }, matlab_ls = { indexWorkspace = true, matlabConnectionTiming = "onStart", @@ -331,6 +339,7 @@ return { "octave", }, }, + jdtls = {}, }, }, } diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua index 149311c..c02080b 100644 --- a/lua/plugins/markdown.lua +++ b/lua/plugins/markdown.lua @@ -107,31 +107,9 @@ return { blocks = true, -- Enable for math blocks }, }, - latex = { - enable = false, - blocks = { - -- ["$$"] = { - -- renderer = "typst.math_blocks", - -- }, - }, - }, + latex = { enable = false }, 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" }, - }, - }, }, config = function(_, opts) require("markview").setup(opts) diff --git a/lua/plugins/obsidian.lua b/lua/plugins/obsidian.lua index 2ced9b9..7ca74b3 100644 --- a/lua/plugins/obsidian.lua +++ b/lua/plugins/obsidian.lua @@ -31,7 +31,7 @@ return { 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." }, + -- { "Op", vim.cmd.ObsidianPasteImg, desc = "Paste an image from the clipboard into the note." }, { "Or", vim.cmd.ObsidianRename, diff --git a/lua/plugins/rainbow-delimeters.lua b/lua/plugins/rainbow-delimeters.lua index 6409c08..4d116d0 100644 --- a/lua/plugins/rainbow-delimeters.lua +++ b/lua/plugins/rainbow-delimeters.lua @@ -1,5 +1,6 @@ return { "HiPhish/rainbow-delimiters.nvim", + submodules = false, opts = { strategy = {}, query = {}, diff --git a/lua/plugins/silicon.lua b/lua/plugins/silicon.lua index 0ab1948..32efeb3 100644 --- a/lua/plugins/silicon.lua +++ b/lua/plugins/silicon.lua @@ -1,6 +1,7 @@ return { "michaelrommel/nvim-silicon", lazy = true, + main = "nvim-silicon", cmd = "Silicon", opts = { -- the font settings with size and fallback font diff --git a/lua/plugins/snacks.lua b/lua/plugins/snacks.lua index d6d28cf..39aec97 100644 --- a/lua/plugins/snacks.lua +++ b/lua/plugins/snacks.lua @@ -4,9 +4,9 @@ return { lazy = false, opts = function() -- Toggle the profiler - Snacks.toggle.profiler():map("Pp") + Snacks.toggle.profiler():map("sp") -- Toggle the profiler highlights - Snacks.toggle.profiler_highlights():map("Ph") + Snacks.toggle.profiler_highlights():map("sh") return { animate = { enabled = false }, bigfile = { enabled = true }, @@ -17,7 +17,15 @@ return { explorer = { enabled = false }, git = { enabled = false }, gitbrowse = { enabled = false }, - image = { enabled = false }, + image = { + enabled = true, + doc = { + inline = false, + float = true, + }, + img_dirs = { "img", "images", "assets", "assets/img", "static", "public", "media", "attachments" }, + math = { enabled = false }, + }, indent = { enabled = true, animate = { enabled = false }, @@ -26,7 +34,7 @@ return { layout = { enabled = false }, lazygit = { enabled = false }, notifier = { enabled = false }, - picker = { enabled = false }, -- TODO: might replace telescope + picker = { enabled = false }, profiler = { enabled = false }, quickfile = { enabled = true, exclude = { "latex" } }, rename = { enabled = true }, @@ -38,7 +46,7 @@ return { toggle = { enabled = false }, win = { enabled = false }, words = { enabled = true }, - zen = { enabled = false }, + zen = { enabled = true }, } end, keys = { @@ -64,7 +72,7 @@ return { desc = "History", }, { - "Ps", + "ss", function() Snacks.profiler.scratch() end, diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index d7041ea..83396e7 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -6,6 +6,10 @@ return { "JoosepAlviste/nvim-ts-context-commentstring", "nvim-treesitter/nvim-treesitter-textobjects", "kristoferssolo/tree-sitter-bruno", + { + "bezhermoso/tree-sitter-ghostty", + build = "make nvim_install", + }, }, opts = { -- A list of parser names, or "all" (the five listed parsers should always be installed) diff --git a/lua/plugins/trouble.lua b/lua/plugins/trouble.lua index dc95277..4613c68 100644 --- a/lua/plugins/trouble.lua +++ b/lua/plugins/trouble.lua @@ -16,58 +16,5 @@ return { desc = "[D]ocument Diagnostics", }, }, - opts = { - position = "bottom", -- position of the list can be: bottom, top, left, right - height = 10, -- height of the trouble list when position is top or bottom - width = 50, -- width of the list when position is left or right - mode = "workspace_diagnostics", -- "workspace_diagnostics", "document_diagnostics", "quickfix", "lsp_references", "loclist" - severity = nil, -- nil (ALL) or vim.diagnostic.severity.ERROR | WARN | INFO | HINT - fold_open = "", -- icon used for open folds - fold_closed = "", -- icon used for closed folds - group = true, -- group results by file - padding = true, -- add an extra new line on top of the list - cycle_results = true, -- cycle item list when reaching beginning or end of list - action_keys = { -- key mappings for actions in the trouble list - -- map to {} to remove a mapping, for example: - -- close = {}, - close = "q", -- close the list - cancel = "", -- cancel the preview and get back to your last window / buffer / cursor - refresh = "r", -- manually refresh - jump = { "", "", "<2-leftmouse>" }, -- jump to the diagnostic or open / close folds - open_split = { "" }, -- open buffer in new split - open_vsplit = { "" }, -- open buffer in new vsplit - open_tab = { "" }, -- open buffer in new tab - jump_close = { "o" }, -- jump to the diagnostic and close the list - toggle_mode = "m", -- toggle between "workspace" and "document" diagnostics mode - switch_severity = "s", -- switch "diagnostics" severity filter level to HINT / INFO / WARN / ERROR - toggle_preview = "P", -- toggle auto_preview - hover = "K", -- opens a small popup with the full multiline message - preview = "p", -- preview the diagnostic location - open_code_href = "c", -- if present, open a URI with more information about the diagnostic error - close_folds = { "zM", "zm" }, -- close all folds - open_folds = { "zR", "zr" }, -- open all folds - toggle_fold = { "zA", "za" }, -- toggle fold of current file - previous = "k", -- previous item - next = "j", -- next item - help = "?", -- help menu - }, - multiline = true, -- render multi-line messages - indent_lines = true, -- add an indent guide below the fold icons - win_config = { border = "single" }, -- window configuration for floating windows. See |nvim_open_win()|. - auto_open = false, -- automatically open the list when you have diagnostics - auto_close = false, -- automatically close the list when you have no diagnostics - auto_preview = true, -- automatically preview the location of the diagnostic. to close preview and go back to last window - auto_fold = false, -- automatically fold a file trouble list at creation - auto_jump = { "lsp_definitions" }, -- for the given modes, automatically jump if there is only a single result - include_declaration = { "lsp_references", "lsp_implementations", "lsp_definitions" }, -- for the given modes, include the declaration of the current symbol in the results - signs = { - -- icons / text used for a diagnostic - error = "", - warning = "", - hint = "", - information = "", - other = "", - }, - use_diagnostic_signs = false, -- enabling this will use the signs defined in your lsp client - }, + opts = {}, } diff --git a/lua/plugins/which-key.lua b/lua/plugins/which-key.lua index 042dd7f..6e649c8 100644 --- a/lua/plugins/which-key.lua +++ b/lua/plugins/which-key.lua @@ -67,7 +67,7 @@ return { { "LI", "setlocal autoindent", desc = "Enable autoindent" }, { "Li", "setlocal noautoindent", desc = "Disable autoindent" }, }, - { + --[[ { "P", group = "Templates", { @@ -136,7 +136,7 @@ return { }, }, }, - }, + }, ]] }, }, }, diff --git a/spell/lv.utf-8.add b/spell/lv.utf-8.add index f70eed7..9b9bd13 100644 --- a/spell/lv.utf-8.add +++ b/spell/lv.utf-8.add @@ -456,3 +456,10 @@ starprezultātu veicot atceļ izlaiž +vispirms +darbotos +šekojoši +rodas +Dota +triviāla +iterācijas diff --git a/spell/lv.utf-8.add.spl b/spell/lv.utf-8.add.spl index 2d9c3d3..b26d889 100644 Binary files a/spell/lv.utf-8.add.spl and b/spell/lv.utf-8.add.spl differ