Browse Source

Fugitive and cleanups

macos
Juni Kim 2 years ago
parent
commit
40b8937b73
  1. 2
      after/plugin/barbar.lua
  2. 1
      after/plugin/fugitive.lua
  3. 2
      lua/junikim/packer.lua
  4. 12
      lua/junikim/remap.lua

2
after/plugin/barbar.lua

@ -31,7 +31,7 @@ map('n', '<A-c>', '<Cmd>BufferClose<CR>', opts)
-- :BufferCloseBuffersLeft
-- :BufferCloseBuffersRight
-- Magic buffer-picking mode
map('n', '<C-p>', '<Cmd>BufferPick<CR>', opts)
map('n', '<C-P>', '<Cmd>BufferPick<CR>', opts)
-- Sort automatically by...
map('n', '<Space>bb', '<Cmd>BufferOrderByBufferNumber<CR>', opts)
map('n', '<Space>bd', '<Cmd>BufferOrderByDirectory<CR>', opts)

1
after/plugin/fugitive.lua

@ -0,0 +1 @@
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)

2
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',

12
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", "<A-u>", "ū")
map("n", "<F12>", ":w|:!texbld run compile")
map("n", "<F5>", ":w|:!./test.sh")
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
Loading…
Cancel
Save