diff options
| author | pml68 <contact@pml68.me> | 2024-11-29 23:28:27 +0100 |
|---|---|---|
| committer | pml68 <contact@pml68.me> | 2024-11-29 23:28:27 +0100 |
| commit | 82a1c1e251210f4805dec8f6d59a6ab2c6791334 (patch) | |
| tree | c2db695fe2767ff314319a490c833bebd30f99a8 /lua/pml68/plugins/lang-specific.lua | |
| parent | feat: remove deprecated API call (diff) | |
| download | nvim-82a1c1e251210f4805dec8f6d59a6ab2c6791334.tar.gz | |
feat: split plugins.lua into manageable "chunks"
Diffstat (limited to 'lua/pml68/plugins/lang-specific.lua')
| -rw-r--r-- | lua/pml68/plugins/lang-specific.lua | 41 |
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 + }, +} |
