diff --git a/data/nvim/init.lua b/data/nvim/init.lua index eeb63bf..cfc46a0 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -35,7 +35,8 @@ vim.keymap.set("i", "", "") -- Keymap vim.keymap.set("n", "s", ":w") --- Plugin + +-- Keymap for plugin vim.keymap.set("n", "q", ":FZF") vim.keymap.set("n", "rg", ":Rg") vim.keymap.set("n", "", ":NvimTreeToggle") @@ -50,13 +51,19 @@ vim.keymap.set("n", "gr", ":GoReferrers") vim.keymap.set("n", "gcv", ":GoCoverage") vim.keymap.set("n", "gdd", ":GoDeclsDir") --- Use plugin vim-better-whitespace -vim.g.better_whitespace_enabled = 1 +-- Use fzf +vim.opt.rtp:append({ "~/.fzf" }) -- Use plugin nvim-tree.lua vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 +-- Use plugin vim-better-whitespace +vim.g.better_whitespace_enabled = 1 + +-- Use plugin which-key.nvim +vim.o.timeoutlen = 500 + -- Use plugin neoformat vim.g.neoformat_enabled_go = { "gofumpt" } vim.g.shfmt_opt = "-ci" @@ -79,16 +86,13 @@ vim.g.copilot_filetypes = { markdown = true, } --- Use fzf -vim.opt.rtp:append({ "~/.fzf" }) - -- https://github.com/wbthomason/packer.nvim require("packer").startup(function() -- Manage itself use("wbthomason/packer.nvim") - -- https://github.com/ntpeters/vim-better-whitespace - use("ntpeters/vim-better-whitespace") + -- https://github.com/junegunn/fzf.vim + use("junegunn/fzf.vim") -- https://github.com/nvim-lualine/lualine.nvim use({ @@ -140,8 +144,8 @@ require("packer").startup(function() end, }) - -- https://github.com/junegunn/fzf.vim - use("junegunn/fzf.vim") + -- https://github.com/ntpeters/vim-better-whitespace + use("ntpeters/vim-better-whitespace") -- https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-bracketed.md use({ @@ -178,6 +182,14 @@ require("packer").startup(function() -- https://github.com/tpope/vim-fugitive use("tpope/vim-fugitive") + -- https://github.com/folke/which-key.nvim + use({ + "folke/which-key.nvim", + config = function() + require("which-key").setup() + end, + }) + -- Colorschemes -- https://github.com/cocopon/iceberg.vim use("cocopon/iceberg.vim")