diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index bf78e81..a3e026a 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -37,6 +37,10 @@ vim.opt.tabstop = 2 -- disable compatibility mode vim.cmd("set nocompatible") +-- set leader key to and disable other bindings +vim.g.mapleader = " " +vim.keymap.set('n', '', '') + -- initialize lazy plugin manager local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then @@ -65,6 +69,18 @@ require("lazy").setup({ -- rainbow delimiters for treesitter "hiphish/rainbow-delimiters.nvim", + -- fast comment/uncomment + { + "numToStr/Comment.nvim", + opts = { + toggler = { + line = "\\", + block = "|" + } + }, + lazy = false, + }, + -- sidebar file tree { "nvim-tree/nvim-tree.lua", @@ -118,10 +134,6 @@ vim.opt.termguicolors = true vim.cmd([[colorscheme everforest]]) vim.opt.background = "dark" --- set leader key to and disable other bindings -vim.g.mapleader = " " -vim.keymap.set('n', '', '') - -- open sidebar file tree with e vim.keymap.set('n', 'e', 'NvimTreeToggle')