From be0cf4b36bd7be242d04b901eb59539f956f3354 Mon Sep 17 00:00:00 2001 From: pml68 Date: Wed, 20 Mar 2024 16:13:51 +0100 Subject: feat: add crates.nvim and cmp-path plugins --- lua/pml68/plugins.lua | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) (limited to 'lua/pml68/plugins.lua') diff --git a/lua/pml68/plugins.lua b/lua/pml68/plugins.lua index fe432a5..2111880 100644 --- a/lua/pml68/plugins.lua +++ b/lua/pml68/plugins.lua @@ -22,6 +22,7 @@ local plugins = { end, }, "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-path" }, config = function() require("pml68.configs.cmp") @@ -135,23 +136,23 @@ local plugins = { config = function() require("nvim-treesitter.configs").setup({ ensure_installed = { - "c", - "cpp", - "lua", - "kotlin", - "nasm", - "bash", - "html", - "scss", - "css", - "typescript", - "javascript", - "python", - "rust", - "markdown", - "json", - "glsl", - "dart", + "c", + "cpp", + "lua", + "kotlin", + "nasm", + "bash", + "html", + "scss", + "css", + "typescript", + "javascript", + "python", + "rust", + "markdown", + "json", + "glsl", + "dart", } }) end @@ -283,6 +284,20 @@ local plugins = { vim.g.rustfmt_autosave = 1 end, }, + { + "saecki/crates.nvim", + tag = "stable", + dependencies = "hrsh7th/nvim-cmp", + event = {"BufRead Cargo.toml"}, + config = function() + local crates = require("crates") + crates.setup() + + vim.keymap.set("n", "rcu", function() + crates.upgrade_all_crates() + end) + end + }, } return plugins -- cgit v1.2.3