diff options
| author | Elvis Claros Castro <elvis@claros.ar> | 2025-01-31 14:21:32 -0300 |
|---|---|---|
| committer | Elvis Claros Castro <elvis@claros.ar> | 2025-01-31 14:21:32 -0300 |
| commit | 65eb48ffcdb0aa7a0245b462b860b0f9c2c6d906 (patch) | |
| tree | 9c0261d184ed5e7c2ae59192f353f1a004b857fd | |
| parent | f27115f7c053d1d8e4b2af4b7506210fffc51c95 (diff) | |
| download | nvim-conf-65eb48ffcdb0aa7a0245b462b860b0f9c2c6d906.tar.gz nvim-conf-65eb48ffcdb0aa7a0245b462b860b0f9c2c6d906.zip | |
Feat: agrego vimtex
| -rw-r--r-- | lazy-lock.json | 112 | ||||
| -rw-r--r-- | lua/config/codecompanion-save.lua | 145 | ||||
| -rw-r--r-- | lua/pi/completition/init.lua | 5 | ||||
| -rw-r--r-- | lua/plugins/cmp-ai.lua | 59 | ||||
| -rw-r--r-- | lua/plugins/codecompanion.lua | 41 | ||||
| -rw-r--r-- | lua/plugins/codeium.lua | 11 | ||||
| -rw-r--r-- | lua/plugins/copilot-chat.lua | 7 | ||||
| -rw-r--r-- | lua/plugins/treesitter.lua | 1 | ||||
| -rw-r--r-- | lua/plugins/vimtex.lua | 13 |
9 files changed, 201 insertions, 193 deletions
diff --git a/lazy-lock.json b/lazy-lock.json index 08c79b1..ec6b0ac 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -1,16 +1,15 @@ { "Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" }, - "CopilotChat.nvim": { "branch": "main", "commit": "2ebe591cff06018e265263e71e1dbc4c5aa8281e" }, + "CopilotChat.nvim": { "branch": "main", "commit": "1b375c24602680b5fe28c3c223a822111857dc37" }, "FixCursorHold.nvim": { "branch": "master", "commit": "1900f89dc17c603eec29960f57c00bd9ae696495" }, - "LazyVim": { "branch": "main", "commit": "41f40b73d94f12cd6aa2d87bfee8808e76e80d5d" }, + "LazyVim": { "branch": "main", "commit": "3242ab8cff7d49e429320b9ec43c4be1f6e46dfe" }, "LuaSnip": { "branch": "master", "commit": "500981ff6cefc7343e3959ef0f939bd0bfd49ba9" }, "NeoColumn.nvim": { "branch": "main", "commit": "db7695c7c70fcacd290712deef659bca464634ee" }, "SmoothCursor.nvim": { "branch": "main", "commit": "12518b284e1e3f7c6c703b346815968e1620bee2" }, - "aerial.nvim": { "branch": "master", "commit": "b3ec25ca8c347fafa976484a6cace162239112e1" }, + "aerial.nvim": { "branch": "master", "commit": "2aeafd99937602fc40609ffffbdd2f99d77343e9" }, "animation.nvim": { "branch": "main", "commit": "fb77091ab72ec9971aee0562e7081182527aaa6a" }, "baleia.nvim": { "branch": "main", "commit": "1b25eac3ac03659c3d3af75c7455e179e5f197f7" }, "buffer_manager.nvim": { "branch": "main", "commit": "f196217f7c1ddae74ed51dfc2c3befe6d62b26d1" }, - "cmp-ai": { "branch": "main", "commit": "fa08e42144b0f3763d1a3fb81bafc495f769cab8" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" }, "cmp-dap": { "branch": "master", "commit": "ea92773e84c0ad3288c3bc5e452ac91559669087" }, @@ -19,99 +18,99 @@ "cmp-nvim-lsp": { "branch": "main", "commit": "99290b3ec1322070bcfb9e846450a46f6efa50f0" }, "cmp-nvim-lua": { "branch": "main", "commit": "f12408bdb54c39c23e67cab726264c10db33ada8" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, + "cmp-vimtex": { "branch": "master", "commit": "5283bf9108ef33d41e704027b9ef22437ce7a15b" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, - "codecompanion.nvim": { "branch": "main", "commit": "4c91a46136b6db99880c694313c9cabee24bd715" }, - "codeium.nvim": { "branch": "main", "commit": "ebed4f7cc8a18184d8332d421ca10bed5f7d59a1" }, + "codecompanion.nvim": { "branch": "main", "commit": "8207e7c52cea8e8576a9447758cbf618b2f216b6" }, "color-picker.nvim": { "branch": "master", "commit": "06cb5f853535dea529a523e9a0e8884cdf9eba4d" }, "composer.nvim": { "branch": "main", "commit": "ec9537969adc7fc128cfe9c3a9925850455896c8" }, "copilot-cmp": { "branch": "master", "commit": "15fc12af3d0109fa76b60b5cffa1373697e261d1" }, "copilot.lua": { "branch": "master", "commit": "886ee73b6d464b2b3e3e6a7ff55ce87feac423a9" }, "direnv.vim": { "branch": "master", "commit": "ab2a7e08dd630060cd81d7946739ac7442a4f269" }, - "dressing.nvim": { "branch": "master", "commit": "3a45525bb182730fe462325c99395529308f431e" }, + "dressing.nvim": { "branch": "master", "commit": "56ef6a969a4990d938c5fed40c370f65e125fc97" }, "duck.nvim": { "branch": "main", "commit": "d8a6b08af440e5a0e2b3b357e2f78bb1883272cd" }, - "elixir-tools.nvim": { "branch": "main", "commit": "32c6b0d7a5b5e77dec96d758156689230741cd50" }, - "firenvim": { "branch": "master", "commit": "dd2d6f6b3b87b3726d5ef59adfe8a6c444889dda" }, + "elixir-tools.nvim": { "branch": "main", "commit": "f7e18753f5587b422aac628249fa46c66ed24af3" }, + "firenvim": { "branch": "master", "commit": "f8a5fa6f1ed42536490acf0840497c40331c184f" }, "flutter-tools.nvim": { "branch": "main", "commit": "234a9d4022d0a17301e85a08660d489bffb7383f" }, - "fzf": { "branch": "master", "commit": "6783417504a2e2a378b8a55a5dd111c18a051425" }, - "fzf-lua": { "branch": "main", "commit": "3d7e5db8fa56cfc2b92a38999016a51abe9e1d23" }, - "fzf.vim": { "branch": "master", "commit": "556f45e79ae5e3970054fee4c4373472604a1b4e" }, + "fzf": { "branch": "master", "commit": "6c0ca4a64a4e2f8697dfa830dcae56c1d7ddca51" }, + "fzf-lua": { "branch": "main", "commit": "aaf7604bca38890cb487b29738f8cb02586bc818" }, + "fzf.vim": { "branch": "master", "commit": "b3a49d7993801a0cd4fbac200154f1c6142c34a8" }, "git-worktree.nvim": { "branch": "master", "commit": "f247308e68dab9f1133759b05d944569ad054546" }, - "gitsigns.nvim": { "branch": "main", "commit": "b544bd62623ca1b483d8b9bfb6d65805f112a320" }, + "gitsigns.nvim": { "branch": "main", "commit": "9b36d497495436c135659902054ee637e0ba6021" }, "guihua.lua": { "branch": "master", "commit": "d783191eaa75215beae0c80319fcce5e6b3beeda" }, "harpoon": { "branch": "master", "commit": "1bc17e3e42ea3c46b33c0bbad6a880792692a1b3" }, - "hurl.nvim": { "branch": "main", "commit": "438360f62e73e8d149f0374d9d1d75c1441807e3" }, + "hurl.nvim": { "branch": "main", "commit": "13ef79d58f96da3d1860a611db427891ec8c3101" }, "hydra.nvim": { "branch": "master", "commit": "3ced42c0b6a6c85583ff0f221635a7f4c1ab0dd0" }, "icon-picker.nvim": { "branch": "master", "commit": "3ee9a0ea9feeef08ae35e40c8be6a2fa2c20f2d3" }, "image.nvim": { "branch": "main", "commit": "acbd1d7d64ac0643021a6146eb0557e7c2e793d0" }, - "indent-blankline.nvim": { "branch": "master", "commit": "259357fa4097e232730341fa60988087d189193a" }, + "indent-blankline.nvim": { "branch": "master", "commit": "e10626f7fcd51ccd56d7ffc00883ba7e0aa28f78" }, "indent-o-matic": { "branch": "master", "commit": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719" }, - "laravel.nvim": { "branch": "main", "commit": "325fa34f5e02d5393ad8a38fe7c9e1add94279e8" }, - "lazy.nvim": { "branch": "main", "commit": "d8f26efd456190241afd1b0f5235fe6fdba13d4a" }, + "laravel.nvim": { "branch": "main", "commit": "8bcf9e5dad38d31ca6938fc97d6ed5d8e9e33e4f" }, + "lazy.nvim": { "branch": "main", "commit": "7527af40ddd4a93a02911be570b32609b9d4ea53" }, "lspkind-nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" }, "lua-utils.nvim": { "branch": "main", "commit": "e565749421f4bbb5d2e85e37c3cef9d56553d8bd" }, "lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" }, "luarocks.nvim": { "branch": "main", "commit": "1db9093915eb16ba2473cfb8d343ace5ee04130a" }, "markdown-preview.nvim": { "branch": "main", "commit": "cc05a30393e2bf9f12e2d59fc35a1aa928ed1727" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "97d9f1d3ad205dece6bcafd1d71cf1507608f3c7" }, - "mason-tool-installer.nvim": { "branch": "main", "commit": "c5e07b8ff54187716334d585db34282e46fa2932" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "f75e877f5266e87523eb5a18fcde2081820d087b" }, + "mason-tool-installer.nvim": { "branch": "main", "commit": "374c78d3ebb5c53f43ea6bd906b6587b5e899b9e" }, "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" }, "middleclass": { "branch": "master", "commit": "9fab4d5bca67262614960960ca35c4740eb2be2c" }, - "mini.icons": { "branch": "main", "commit": "1c79feb7478ca773fa3dac5cadf43ced9180e861" }, - "mini.nvim": { "branch": "main", "commit": "bac6c8bb77fe0a872719ea43c39e35c7c695f05e" }, + "mini.icons": { "branch": "main", "commit": "ec61af6e606fc89ee3b1d8f2f20166a3ca917a36" }, + "mini.nvim": { "branch": "main", "commit": "0de7ac99824a315b9ef37aba0161f70bdbb1e66b" }, "my-note.nvim": { "branch": "main", "commit": "bce15c38514df229eb446a6b6bef2fcbb1993e80" }, - "navigator.lua": { "branch": "master", "commit": "b1d0da438b2e0fa32e2d52a4a047b4900bb0e8ca" }, + "navigator.lua": { "branch": "master", "commit": "f269dd2b8805e6fb30f4dd1c38f72a443175f57a" }, "neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" }, "neogen": { "branch": "main", "commit": "dd0301bfba1f83a3bc009b5430fce7aa3cee6941" }, - "neorg": { "branch": "main", "commit": "bc660d6e2f3b5985ab6eaa02288efe418a1ce99a" }, + "neorg": { "branch": "main", "commit": "bdb29ea3e069f827d31973bc942c18793ee9fa64" }, "neotest": { "branch": "master", "commit": "d66cf4e05a116957f0d3a7755a24291c7d1e1f72" }, "neotest-go": { "branch": "main", "commit": "92950ad7be2ca02a41abca5c6600ff6ffaf5b5d6" }, "neotest-plenary": { "branch": "master", "commit": "3523adcf9ffaad1911960c5813b0136c1b63a2ec" }, "neotest-python": { "branch": "master", "commit": "a2861ab3c9a0bf75a56b11835c2bfc8270f5be7e" }, "neotest-vim-test": { "branch": "master", "commit": "75c4228882ae4883b11bfce9b8383e637eb44192" }, - "noice.nvim": { "branch": "main", "commit": "eaed6cc9c06aa2013b5255349e4f26a6b17ab70f" }, + "noice.nvim": { "branch": "main", "commit": "e3c68a4d2275a01268a52e2931bfccfbfb693d15" }, "none-ls-extras.nvim": { "branch": "main", "commit": "6557f20e631d2e9b2a9fd27a5c045d701a3a292c" }, "none-ls-luacheck.nvim": { "branch": "main", "commit": "a1dfea0d4c40c4023829c8b9a7ab0a26135985ca" }, "none-ls-shellcheck.nvim": { "branch": "main", "commit": "0f84461241e76e376a95fb7391deac82dc3efdbf" }, - "none-ls.nvim": { "branch": "main", "commit": "7bebb35a05871aeb99825f29d869cbd9a46bdbba" }, + "none-ls.nvim": { "branch": "main", "commit": "ed8f80849ef1ad31c2f74679fafdef7801091247" }, "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, - "numb.nvim": { "branch": "master", "commit": "3f7d4a74bd456e747a1278ea1672b26116e0824d" }, - "nvim-autopairs": { "branch": "master", "commit": "d65a9678336c8b48753dba8bff49672cbeb7c892" }, + "numb.nvim": { "branch": "master", "commit": "7f564e638d3ba367abf1ec91181965b9882dd509" }, + "nvim-autopairs": { "branch": "master", "commit": "3d02855468f94bf435db41b661b58ec4f48a06b7" }, "nvim-bqf": { "branch": "main", "commit": "ebb6d2689e4427452180f17c53f29f7e460236f1" }, - "nvim-cmp": { "branch": "main", "commit": "8c82d0bd31299dbff7f8e780f5e06d2283de9678" }, + "nvim-cmp": { "branch": "main", "commit": "12509903a5723a876abd65953109f926f4634c30" }, "nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" }, - "nvim-dap": { "branch": "master", "commit": "b768c8d0ce6da614ac17ed097bf2d94e35fe1a58" }, - "nvim-dap-go": { "branch": "main", "commit": "6aa88167ea1224bcef578e8c7160fe8afbb44848" }, + "nvim-dap": { "branch": "master", "commit": "b4f27d451c187de912fa8d3229025a952917eb9e" }, + "nvim-dap-go": { "branch": "main", "commit": "1bacf2fa7d4dc6a8a4f6cc390f1544e5b34c35a4" }, "nvim-dap-python": { "branch": "master", "commit": "34282820bb713b9a5fdb120ae8dd85c2b3f49b51" }, - "nvim-dap-ui": { "branch": "master", "commit": "e94d98649dccb6a3884b66aabc2e07beb279e535" }, + "nvim-dap-ui": { "branch": "master", "commit": "bc81f8d3440aede116f821114547a476b082b319" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "df66808cd78b5a97576bbaeee95ed5ca385a9750" }, "nvim-dap-vscode-js": { "branch": "main", "commit": "03bd29672d7fab5e515fc8469b7d07cc5994bbf6" }, "nvim-early-retirement": { "branch": "main", "commit": "9ae6fcc933fc865ddf2728460194b67985e06e27" }, - "nvim-html-css": { "branch": "main", "commit": "303c9ee3c0b9c284e1b4e7f648e1bb41580a327b" }, - "nvim-lspconfig": { "branch": "master", "commit": "88157521e890fe7fdf18bee22438875edd6300a6" }, - "nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" }, - "nvim-notify": { "branch": "master", "commit": "bd9cd51f9ef2f6326fc2bc9931d0718c1794e247" }, - "nvim-python-repl": { "branch": "main", "commit": "ccc5f104f5e934d49b1571a748a09dc9d210221e" }, - "nvim-spectre": { "branch": "master", "commit": "08be31c104df3b4b049607694ebb2b6ced4f928b" }, + "nvim-html-css": { "branch": "main", "commit": "fa7e2da75edfd3d110fc8d4f8e5215b5de56ff42" }, + "nvim-lspconfig": { "branch": "master", "commit": "ead2fbc4893fdd062e1dd0842679a48bfb7bac5c" }, + "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, + "nvim-notify": { "branch": "master", "commit": "22f29093eae7785773ee9d543f8750348b1a195c" }, + "nvim-python-repl": { "branch": "main", "commit": "eee18e1e7248000c73ad9a9c38a480b57eea323c" }, + "nvim-spectre": { "branch": "master", "commit": "ddd7383e856a7c939cb4f5143278fe041bbb8cb9" }, "nvim-transparent": { "branch": "main", "commit": "8a2749a2fa74f97fe6557f61b89ac7fd873f3c21" }, - "nvim-treesitter": { "branch": "master", "commit": "10a9464a82fb540cca912a1d25810f242cb97b5f" }, - "nvim-treesitter-context": { "branch": "master", "commit": "d0dd7ce5a9d0be1f28086e818e52fdc5c78975df" }, + "nvim-treesitter": { "branch": "master", "commit": "7e3942ceca9e0c28760f77ac33bc16399146d879" }, + "nvim-treesitter-context": { "branch": "master", "commit": "bece284c5322ddf6946fa4bdc383a2bc033269d7" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "8b34305ffc28bd75a22f5a0a9928ee726a85c9a6" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" }, "nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" }, - "nvim-web-devicons": { "branch": "master", "commit": "5740b7382429d20b6ed0bbdb0694185af9507d44" }, - "oil-git-status.nvim": { "branch": "main", "commit": "a7ea816bac0cc3b8b4c3605e2f2b87960be60a05" }, + "nvim-web-devicons": { "branch": "master", "commit": "1c9136332840edee0c593f2f4f89598c8ed97f5f" }, + "oil-git-status.nvim": { "branch": "main", "commit": "293021c42f9d725981616c26c05964c7e5a88a08" }, "oil-image-preview.nvim": { "branch": "master", "commit": "a71eacc879e1264339a62019ee3c2ff376f2cc39" }, - "oil.nvim": { "branch": "master", "commit": "7041528bdedb350ad66e650684deec8456e053cc" }, + "oil.nvim": { "branch": "master", "commit": "add50252b5e9147c0a09d36480d418c7e2737472" }, "pathlib.nvim": { "branch": "main", "commit": "57e5598af6fe253761c1b48e0b59b7cd6699e2c1" }, "playground": { "branch": "master", "commit": "ba48c6a62a280eefb7c85725b0915e021a1a0749" }, - "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" }, + "plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, "rayso.nvim": { "branch": "main", "commit": "4a94c6fa2410e3800cf47a03b8f5e5315595ba99" }, "refactoring.nvim": { "branch": "master", "commit": "2db6d378e873de31d18ade549c2edba64ff1c2e3" }, - "render-markdown.nvim": { "branch": "main", "commit": "786d643ac7a691515d401930b8850f596992725d" }, + "render-markdown.nvim": { "branch": "main", "commit": "1ba6fb7998985736ca3480366c9792be05b93ad7" }, "rustaceanvim": { "branch": "master", "commit": "0a1876b970ab946be3f4d341e9d743a5d62d646a" }, - "smart-splits.nvim": { "branch": "master", "commit": "4b16e5d303c80e5628b04066032ee1b090af5940" }, - "solarized-osaka.nvim": { "branch": "main", "commit": "725064069861811398e6d7f4653e6be6d760a07d" }, + "smart-splits.nvim": { "branch": "master", "commit": "bfb5e63bd4639439b48815f46636dbd52b19b1bd" }, + "solarized-osaka.nvim": { "branch": "main", "commit": "a655760409ec0e75a0868ca983f6077bf3c230f5" }, "spinner.nvim": { "branch": "main", "commit": "67ae7f64a6a7940be10c226301413521da26ea72" }, "telescope-dap.nvim": { "branch": "master", "commit": "783366bd6c1e7fa0a5c59c07db37f49c805a28df" }, "telescope-file-browser.nvim": { "branch": "master", "commit": "626998e5c1b71c130d8bc6cf7abb6709b98287bb" }, @@ -120,26 +119,27 @@ "telescope-live-grep-args.nvim": { "branch": "master", "commit": "649b662a8f476fd2c0289570764459e95ebaa3f3" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope.nvim": { "branch": "master", "commit": "415af52339215926d705cccc08145f3782c4d132" }, - "todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" }, - "treesj": { "branch": "main", "commit": "ec234a9a13d61a7b95900abdb02fabaea1afd9f3" }, - "trouble.nvim": { "branch": "main", "commit": "46cf952fc115f4c2b98d4e208ed1e2dce08c9bf6" }, + "todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" }, + "treesj": { "branch": "main", "commit": "48c1a7539f376fd40ceb9cf12d697040fcf90649" }, + "trouble.nvim": { "branch": "main", "commit": "6f380b8826fb819c752c8fd7daaee9ef96d4c689" }, "twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" }, "undotree": { "branch": "master", "commit": "2556c6800b210b2096b55b66e74b4cc1d9ebbe4f" }, - "vim-dadbod": { "branch": "master", "commit": "f740950d0703099e0f172016f10e0e39f50fd0ba" }, - "vim-dadbod-completion": { "branch": "master", "commit": "95cbcf21ea7a5c8c025f387280c2e261b8cb3a89" }, - "vim-dadbod-ui": { "branch": "master", "commit": "65454e2011c029922c2c972d63f8bf04282de033" }, + "vim-dadbod": { "branch": "master", "commit": "9f0ca8bcef704659820a95c3bbd2c262583a66a1" }, + "vim-dadbod-completion": { "branch": "master", "commit": "c7f1be21a08b8fc9d927a19db89a4aa995402787" }, + "vim-dadbod-ui": { "branch": "master", "commit": "f4d37b7312ae6489e5c04bee654ca521baac188a" }, "vim-dispatch": { "branch": "master", "commit": "a2ff28abdb2d89725192db5b8562977d392a4d3f" }, "vim-dotenv": { "branch": "master", "commit": "5c51cfcf8d87280d6414e03cd6b253eb70ecb800" }, "vim-easy-align": { "branch": "master", "commit": "9815a55dbcd817784458df7a18acacc6f82b1241" }, "vim-eunuch": { "branch": "master", "commit": "e86bb794a1c10a2edac130feb0ea590a00d03f1e" }, - "vim-fugitive": { "branch": "master", "commit": "174230d6a7f2df94705a7ffd8d5413e27ec10a80" }, + "vim-fugitive": { "branch": "master", "commit": "d74a7cff4cfcf84f83cc7eccfa365488f3bbabc2" }, "vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" }, "vim-jsdoc": { "branch": "master", "commit": "6e5bc2a1f98a69e4902081c9f5969b228a7a5fd6" }, "vim-lastplace": { "branch": "master", "commit": "e58cb0df716d3c88605ae49db5c4741db8b48aa9" }, "vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" }, - "vim-rhubarb": { "branch": "master", "commit": "ee69335de176d9325267b0fd2597a22901d927b1" }, + "vim-rhubarb": { "branch": "master", "commit": "386daa2e9d98e23e27ad089afcbe5c5a903e488d" }, "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, - "vim-test": { "branch": "master", "commit": "ade33384bd8ca8555853cf5d7dd26a293fcb332e" }, - "which-key.nvim": { "branch": "main", "commit": "1f8d414f61e0b05958c342df9b6a4c89ce268766" }, + "vim-test": { "branch": "master", "commit": "d317336c4022c272e74cfe11e277483183dd0b5f" }, + "vimtex": { "branch": "master", "commit": "3a9f47ce6e42c4a3c9a92a254f1f611a8d374fc9" }, + "which-key.nvim": { "branch": "main", "commit": "0e76a87ac51772569aec678dc74baa8e2a86100c" }, "zen-mode.nvim": { "branch": "main", "commit": "863f150ca321b3dd8aa1a2b69b5f411a220e144f" } } diff --git a/lua/config/codecompanion-save.lua b/lua/config/codecompanion-save.lua index 46f2d94..1659b22 100644 --- a/lua/config/codecompanion-save.lua +++ b/lua/config/codecompanion-save.lua @@ -1,60 +1,99 @@ --- add 2 commands: --- CodeCompanionSave [space delimited args] --- CodeCompanionLoad --- Save will save current chat in a md file named 'space-delimited-args.md' --- Load will use a telescope filepicker to open a previously saved chat - --- create a folder to store our chats -local Path = require("plenary.path") -local data_path = vim.fn.stdpath("data") -local save_folder = Path:new(data_path, "cc_saves") -if not save_folder:exists() then - save_folder:mkdir({ parents = true }) +local copilot_fn = function() + local copilot_config = { + + schema = { + model = { + default = "claude-3.5-sonnet", + }, + }, + } + return require("codecompanion.adapters").extend("copilot", copilot_config) +end + +local supported_adapters = { + copilot = copilot_fn, +} +local function save_path() + local Path = require("plenary.path") + local p = Path:new(vim.fn.stdpath("data") .. "/cc_saves") + p:mkdir({ parents = true }) + return p end --- telescope picker for our saved chats +--- Load a saved codecompanion.nvim chat file into a new CodeCompanion chat buffer. +--- Usage: CodeCompanionLoad vim.api.nvim_create_user_command("CodeCompanionLoad", function() - local t_builtin = require("telescope.builtin") - local t_actions = require("telescope.actions") - local t_action_state = require("telescope.actions.state") - - local function start_picker() - t_builtin.find_files({ - prompt_title = "Saved CodeCompanion Chats | <c-d>: delete", - cwd = save_folder:absolute(), - attach_mappings = function(_, map) - map("i", "<c-d>", function(prompt_bufnr) - local selection = t_action_state.get_selected_entry() - local filepath = selection.path or selection.filename - os.remove(filepath) - t_actions.close(prompt_bufnr) - start_picker() - end) - return true - end, - }) - end - start_picker() + local fzf = require("fzf-lua") + + local function select_adapter(filepath) + local adapters = vim.tbl_keys(supported_adapters) + + fzf.fzf_exec(adapters, { + prompt = "Select CodeCompanion Adapter> ", + actions = { + ["default"] = function(selected) + local adapter = selected[1] + -- Open new CodeCompanion chat with selected adapter + vim.cmd("CodeCompanionChat " .. adapter) + + -- Read contents of saved chat file + local lines = vim.fn.readfile(filepath) + + -- Get the current buffer (which should be the new CodeCompanion chat) + local current_buf = vim.api.nvim_get_current_buf() + + -- Paste contents into the new chat buffer + vim.api.nvim_buf_set_lines(current_buf, 0, -1, false, lines) + end, + }, + }) + end + + local function start_picker() + local files = vim.fn.glob(save_path() .. "/*", false, true) + + fzf.fzf_exec(files, { + prompt = "Saved CodeCompanion Chats | <c-r>: remove >", + previewer = "builtin", + actions = { + ["default"] = function(selected) + if #selected > 0 then + local filepath = selected[1] + select_adapter(filepath) + end + end, + ["ctrl-r"] = function(selected) + if #selected > 0 then + local filepath = selected[1] + os.remove(filepath) + -- Refresh the picker + start_picker() + end + end, + }, + }) + end + + start_picker() end, {}) --- save current chat, `CodeCompanionSave foo bar baz` will save as 'foo-bar-baz.md' +--- Save the current codecompanion.nvim chat buffer to a file in the save_folder. +--- Usage: CodeCompanionSave <filename>.md +---@param opts table vim.api.nvim_create_user_command("CodeCompanionSave", function(opts) - local codecompanion = require("codecompanion") - local success, chat = pcall(function() - return codecompanion.buf_get_chat(0) - end) - if not success or chat == nil then - vim.notify( - "CodeCompanionSave should only be called from CodeCompanion chat buffers", - vim.log.levels.ERROR - ) - return - end - if #opts.fargs == 0 then - vim.notify("CodeCompanionSave requires at least 1 arg to make a file name", vim.log.levels.ERROR) - end - local save_name = table.concat(opts.fargs, "-") .. ".md" - local save_path = Path:new(save_folder, save_name) - local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false) - save_path:write(table.concat(lines, "\n"), "w") + local codecompanion = require("codecompanion") + local success, chat = pcall(function() + return codecompanion.buf_get_chat(0) + end) + if not success or chat == nil then + vim.notify("CodeCompanionSave should only be called from CodeCompanion chat buffers", vim.log.levels.ERROR) + return + end + if #opts.fargs == 0 then + vim.notify("CodeCompanionSave requires at least 1 arg to make a file name", vim.log.levels.ERROR) + end + local save_name = table.concat(opts.fargs, "-") .. ".md" + local save_file = save_path():joinpath(save_name) + local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false) + save_file:write(table.concat(lines, "\n"), "w") end, { nargs = "*" }) diff --git a/lua/pi/completition/init.lua b/lua/pi/completition/init.lua index 9ac1216..72671ff 100644 --- a/lua/pi/completition/init.lua +++ b/lua/pi/completition/init.lua @@ -60,8 +60,9 @@ cmp.setup { { name = "nvim_lsp" }, { name = "path" }, { name = "luasnip" }, - { name = "copilot" }, - { name = "codeium" }, + { name = "codecompanion" }, + { name = 'vimtex', }, + -- { name = "codeium" }, -- { name = 'cmp_ai' }, { name = "html-css", diff --git a/lua/plugins/cmp-ai.lua b/lua/plugins/cmp-ai.lua deleted file mode 100644 index 5431187..0000000 --- a/lua/plugins/cmp-ai.lua +++ /dev/null @@ -1,59 +0,0 @@ -return { - "ElvisClaros/cmp-ai", - dependencies = "nvim-lua/plenary.nvim", - config = function() - local cmp_ai = require "cmp_ai.config" - cmp_ai:setup { - max_lines = 10, - provider = "LlamaCPP", - provider_options = { - model = "null", - }, - notify = false, - notify_callback = function(msg) - vim.notify(msg) - end, - run_on_every_keystroke = true, - ignored_file_types = { - -- default is not to ignore - -- uncomment to ignore in lua: - -- lua = true - }, - } - - -- cmp_ai:setup { - -- max_lines = 10, - -- provider = "Ollama", - -- provider_options = { - -- model = "tinyllama:1.1b", - -- }, - -- notify = false, - -- notify_callback = function(msg) - -- vim.notify(msg) - -- end, - -- run_on_every_keystroke = true, - -- ignored_file_types = { - -- -- default is not to ignore - -- -- uncomment to ignore in lua: - -- -- lua = true - -- }, - -- } - -- cmp_ai:setup { - -- max_lines = 10, - -- provider = "OpenAI", - -- provider_options = { - -- model = "gpt-4", - -- }, - -- notify = true, - -- notify_callback = function(msg) - -- vim.notify(msg) - -- end, - -- run_on_every_keystroke = true, - -- ignored_file_types = { - -- -- default is not to ignore - -- -- uncomment to ignore in lua: - -- -- lua = true - -- }, - -- } - end, -} diff --git a/lua/plugins/codecompanion.lua b/lua/plugins/codecompanion.lua index 324f4d2..7fe6114 100644 --- a/lua/plugins/codecompanion.lua +++ b/lua/plugins/codecompanion.lua @@ -1,10 +1,6 @@ local IS_DEV = false return { { - "nvim-treesitter/nvim-treesitter", - opts = { ensure_installed = { "yaml", "markdown" } }, - }, - { dir = IS_DEV and "~/Projects/research/codecompanion.nvim" or nil, "olimorris/codecompanion.nvim", dependencies = { @@ -85,7 +81,7 @@ return { env = { api_key = "cmd:echo $OPENAI_API_KEY", chat_url = "/v1/chat/completions", - url = "http://127.0.0.1:8080", + url = "http://127.0.0.1:8012", }, headers = { ["Content-Type"] = "application/json", @@ -106,10 +102,43 @@ return { }, }) end, + deepseek = function() + return require("codecompanion.adapters").extend("deepseek", { + env = { + api_key = "cmd:echo $OPENAI_API_KEY", + chat_url = "/v1/chat/completions", + url = "http://127.0.0.1:8000", + }, + headers = { + ["Content-Type"] = "application/json", + }, + schema = { + model = { + default = function() + return "davinci" + end, + }, + }, + }) + end, + azure_openai = function() + return require("codecompanion.adapters").extend("azure_openai", { + env = { + api_key = "cmd:echo $AZ_DS_API_KEY", + endpoint = "https://DeepSeek-R1-nphob.eastus2.models.ai.azure.com", + }, + schema = { + model = { + default = "DeepSeek-R1-nphob", + }, + }, + }) + end, }, + strategies = { chat = { - adapter = "copilot", + adapter = "openai_compatible", -- roles = { llm = " Copilot Chat", user = "IT Man" }, }, inline = { adapter = "copilot" }, diff --git a/lua/plugins/codeium.lua b/lua/plugins/codeium.lua deleted file mode 100644 index 2de0def..0000000 --- a/lua/plugins/codeium.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "Exafunction/codeium.nvim", - dependencies = { - "nvim-lua/plenary.nvim", - "hrsh7th/nvim-cmp", - }, - config = function() - require("codeium").setup({ - }) - end -} diff --git a/lua/plugins/copilot-chat.lua b/lua/plugins/copilot-chat.lua index d389d2f..9262258 100644 --- a/lua/plugins/copilot-chat.lua +++ b/lua/plugins/copilot-chat.lua @@ -21,12 +21,8 @@ local prompts = { return { { - "nvim-treesitter/nvim-treesitter", - opts = { ensure_installed = { "diff", "markdown" } }, - }, - { - dir = IS_DEV and "~/research/CopilotChat.nvim" or nil, "CopilotC-Nvim/CopilotChat.nvim", + build = "make tiktoken", -- Only on MacOS or Linux -- version = "v3.3.0", dependencies = { { "nvim-lua/plenary.nvim" }, @@ -38,7 +34,6 @@ return { }, }, opts = { - model = 'claude-3.5-sonnet', -- question_header = "## User ", -- answer_header = "## Copilot ", -- error_header = "## Error ", diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 363f081..80f98cf 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -44,6 +44,7 @@ return { "luadoc", "markdown", "markdown_inline", + "typst", "nix", "org", "php", diff --git a/lua/plugins/vimtex.lua b/lua/plugins/vimtex.lua new file mode 100644 index 0000000..588b848 --- /dev/null +++ b/lua/plugins/vimtex.lua @@ -0,0 +1,13 @@ +return { + { + "lervag/vimtex", + init = function() + vim.g.vimtex_view_method = "zathura" -- Integración con el visor PDF + vim.g.vimtex_compiler_method = "latexmk" -- Compilación automática + vim.g.vimtex_quickfix_mode = 0 -- Desactiva la ventana de quickfix automática + end, + }, + { + "micangl/cmp-vimtex", + }, +} |