From 82a1c1e251210f4805dec8f6d59a6ab2c6791334 Mon Sep 17 00:00:00 2001 From: pml68 Date: Fri, 29 Nov 2024 23:28:27 +0100 Subject: feat: split plugins.lua into manageable "chunks" --- lua/pml68/plugins/lang-specific.lua | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 lua/pml68/plugins/lang-specific.lua (limited to 'lua/pml68/plugins/lang-specific.lua') diff --git a/lua/pml68/plugins/lang-specific.lua b/lua/pml68/plugins/lang-specific.lua new file mode 100644 index 0000000..f2cb418 --- /dev/null +++ b/lua/pml68/plugins/lang-specific.lua @@ -0,0 +1,41 @@ +return { + -- JSON + { + "b0o/schemastore.nvim", + }, + -- Java + { + "mfussenegger/nvim-jdtls" + }, + -- Rust + { + "rust-lang/rust.vim", + ft = "rust", + init = function() + 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 + }, + -- LaTeX + { + "lervag/vimtex", + dependencies = "micangl/cmp-vimtex", + ft = "tex", + init = function() + vim.g.vimtex_view_method = 'mupdf' + end + }, +} -- cgit v1.2.3