diff --git a/data/nvim/init.lua b/data/nvim/init.lua index a76fece..21846b0 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -36,14 +36,16 @@ vim.keymap.set("i", "", "") -- Keymap vim.keymap.set("n", ";", "", { remap = true }) vim.keymap.set("n", "w", ":w") +vim.keymap.set("n", "q", ":q") -- Keymap for plugin -vim.keymap.set("n", "q", ":FZF") +vim.keymap.set("n", "f", ":FZF") vim.keymap.set("n", "rg", ":Rg") vim.keymap.set("n", "", ":NvimTreeToggle") vim.keymap.set("n", "r", ":NvimTreeRefresh") vim.keymap.set("n", "n", ":NvimTreeFindFile") -vim.keymap.set("n", "f", ":Neoformat") +vim.keymap.set("n", "fm", ":Neoformat") +vim.keymap.set("n", "z", ":ZenMode") vim.keymap.set("n", "", ":GoRename") vim.keymap.set("n", "gf", ":GoFillStruct:w") vim.keymap.set("n", "gt", ":GoAlternate") @@ -63,7 +65,7 @@ vim.g.loaded_netrwPlugin = 1 vim.g.better_whitespace_enabled = 1 -- Use plugin which-key.nvim -vim.o.timeoutlen = 500 +vim.o.timeoutlen = 250 -- Use plugin neoformat vim.g.neoformat_enabled_go = { "gofumpt" } @@ -175,6 +177,14 @@ require("packer").startup(function() -- https://github.com/ntpeters/vim-better-whitespace use("ntpeters/vim-better-whitespace") + -- https://github.com/folke/zen-mode.nvim + use({ + "folke/zen-mode.nvim", + config = function() + require("zen-mode").setup() + end, + }) + -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-bracketed.md use({ "echasnovski/mini.bracketed",