aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/plugins/json-nvim.lua8
-rw-r--r--lua/plugins/rustowl.lua5
2 files changed, 13 insertions, 0 deletions
diff --git a/lua/plugins/json-nvim.lua b/lua/plugins/json-nvim.lua
new file mode 100644
index 0000000..3866e1b
--- /dev/null
+++ b/lua/plugins/json-nvim.lua
@@ -0,0 +1,8 @@
+return {
+ "VPavliashvili/json-nvim",
+ ft = "json", -- only load for json filetype
+ config = function()
+ vim.keymap.set("n", "<leader>jff", "<cmd>JsonFormatFile<cr>")
+ vim.keymap.set("n", "<leader>jmf", "<cmd>JsonMinifyFile<cr>")
+ end,
+}
diff --git a/lua/plugins/rustowl.lua b/lua/plugins/rustowl.lua
new file mode 100644
index 0000000..b85ec08
--- /dev/null
+++ b/lua/plugins/rustowl.lua
@@ -0,0 +1,5 @@
+return {
+ "cordx56/rustowl",
+ ft = { "rust" },
+ dependencies = { "neovim/nvim-lspconfig" },
+}