diff --git a/after/plugin/barbar.lua b/after/plugin/barbar.lua index 3906bf7..1c7183f 100644 --- a/after/plugin/barbar.lua +++ b/after/plugin/barbar.lua @@ -31,7 +31,7 @@ map('n', '', 'BufferClose', opts) -- :BufferCloseBuffersLeft -- :BufferCloseBuffersRight -- Magic buffer-picking mode -map('n', '', 'BufferPick', opts) +map('n', '', 'BufferPick', opts) -- Sort automatically by... map('n', 'bb', 'BufferOrderByBufferNumber', opts) map('n', 'bd', 'BufferOrderByDirectory', opts) diff --git a/after/plugin/fugitive.lua b/after/plugin/fugitive.lua new file mode 100644 index 0000000..80c9070 --- /dev/null +++ b/after/plugin/fugitive.lua @@ -0,0 +1 @@ +vim.keymap.set("n", "gs", vim.cmd.Git) diff --git a/lua/junikim/packer.lua b/lua/junikim/packer.lua index 79ffaa0..4e14a2c 100644 --- a/lua/junikim/packer.lua +++ b/lua/junikim/packer.lua @@ -21,6 +21,8 @@ return require('packer').startup(function(use) use { 'romgrk/barbar.nvim', wants = 'nvim-web-devicons' } use 'vim-airline/vim-airline' use 'vim-airline/vim-airline-themes' + use 'tpope/vim-fugitive' + use { 'VonHeikemen/lsp-zero.nvim', branch = 'v1.x', diff --git a/lua/junikim/remap.lua b/lua/junikim/remap.lua index 0dda0b1..7b923e0 100644 --- a/lua/junikim/remap.lua +++ b/lua/junikim/remap.lua @@ -1,9 +1,9 @@ local function map(mode, lhs, rhs, opts) - local options = { noremap = true } - if opts then - options = vim.tbl_extend("force", options, opts) - end - vim.api.nvim_set_keymap(mode, lhs, rhs, options) + local options = { noremap = true } + if opts then + options = vim.tbl_extend("force", options, opts) + end + vim.api.nvim_set_keymap(mode, lhs, rhs, options) end vim.g.mapleader = " " @@ -24,5 +24,3 @@ map("i", "", "ū") map("n", "", ":w|:!texbld run compile") map("n", "", ":w|:!./test.sh") - -vim.keymap.set("n", "pv", vim.cmd.Ex)