aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/lang-specific.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/pml68/plugins/lang-specific.lua')
-rw-r--r--lua/pml68/plugins/lang-specific.lua41
1 files changed, 41 insertions, 0 deletions
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", "<leader>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
+ },
+}