Add zen-mode and twilight plugins

This commit is contained in:
Evie Litherland-Smith 2023-03-10 10:40:14 +00:00
parent 25c4204419
commit 79f730c6ab
2 changed files with 17 additions and 0 deletions

View file

@ -18,6 +18,7 @@ vim.keymap.set("i", "jk", "<esc>")
vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>") vim.keymap.set("n", "<leader>l", "<cmd>Lazy<CR>")
vim.keymap.set("n", "<leader>m", "<cmd>Mason<CR>") vim.keymap.set("n", "<leader>m", "<cmd>Mason<CR>")
vim.keymap.set("n", "<leader>s", "<cmd>Dashboard<CR>") vim.keymap.set("n", "<leader>s", "<cmd>Dashboard<CR>")
vim.keymap.set("n", "<leader>z", "<cmd>ZenMode<CR>")
vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>") vim.keymap.set({ "n", "t" }, "<A-h>", "<CMD>NavigatorLeft<CR>")
vim.keymap.set({ "n", "t" }, "<A-l>", "<CMD>NavigatorRight<CR>") vim.keymap.set({ "n", "t" }, "<A-l>", "<CMD>NavigatorRight<CR>")
vim.keymap.set({ "n", "t" }, "<A-k>", "<CMD>NavigatorUp<CR>") vim.keymap.set({ "n", "t" }, "<A-k>", "<CMD>NavigatorUp<CR>")

View file

@ -0,0 +1,16 @@
return {
"folke/zen-mode.nvim",
cmd = "ZenMode",
config = function() require("zen-mode").setup() end,
dependencies = {
"folke/twilight.nvim",
cmd = {
"TwilightEnable",
"Twilight",
},
config = function() require("twilight").setup() end,
dependencies = {
"nvim-treesitter",
},
},
}