aboutsummaryrefslogtreecommitdiff
path: root/lua/pml68/plugins/lang-specific.lua
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-01-01 01:19:19 +0100
committerpml68 <contact@pml68.dev>2025-01-01 01:19:19 +0100
commitd6b3f9aaf670eec24ba008e9113839b308666f01 (patch)
treef73c6be95db320e51d75cfb5a7d8689801f6cff4 /lua/pml68/plugins/lang-specific.lua
parentfix: cmp deleting text, behaving weirdly (diff)
downloadnvim-d6b3f9aaf670eec24ba008e9113839b308666f01.tar.gz
fix: revert to rust.vim, fix weird cmp behavior
Diffstat (limited to 'lua/pml68/plugins/lang-specific.lua')
-rw-r--r--lua/pml68/plugins/lang-specific.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/lua/pml68/plugins/lang-specific.lua b/lua/pml68/plugins/lang-specific.lua
index 782e207..8b664e3 100644
--- a/lua/pml68/plugins/lang-specific.lua
+++ b/lua/pml68/plugins/lang-specific.lua
@@ -15,6 +15,17 @@ return {
},
-- Rust
{
+ "rust-lang/rust.vim",
+ ft = "rust",
+ init = function()
+ vim.g.rustfmt_autosave = 1
+ end,
+ config = function()
+ vim.keymap.set("n", "<leader>rts", "<cmd>RustTest<CR>")
+ vim.keymap.set("n", "<leader>rta", "<cmd>RustTest!<CR>")
+ end
+ },
+ {
"saecki/crates.nvim",
tag = "stable",
dependencies = "hrsh7th/nvim-cmp",
@@ -35,6 +46,6 @@ return {
ft = "tex",
init = function()
vim.g.vimtex_view_method = 'mupdf'
- end
+ end,
},
}