feat(nvim): add mappings for floaterm

This commit is contained in:
Oliver Davies 2021-10-15 00:12:18 +01:00
parent ba5b30b136
commit 5d80d36328
2 changed files with 9 additions and 0 deletions

View file

@ -1,6 +1,7 @@
require("colorbuddy").colorscheme("gruvbuddy")
require "opdavies.plugins.completion"
require "opdavies.plugins.floaterm"
require "opdavies.plugins.indent-blankline"
require "opdavies.plugins.lsp"
require "opdavies.plugins.signs"

View file

@ -0,0 +1,8 @@
local map = vim.api.nvim_set_keymap
local options = { noremap = true }
map('n', '<leader>ld', '<CMD>FloatermNew --autoclose=2 --height=0.9 --width=0.9 lazydocker<CR>', options)
map('n', '<leader>lg', '<CMD>FloatermNew --autoclose=2 --height=0.9 --width=0.9 lazygit<CR>', options)
map('n', '<leader>nn', '<CMD>FloatermNew --autoclose=2 --height=0.5 --width=0.5 nnn -Hde<CR>', options)
map('n', '<leader>tt', '<CMD>FloatermNew --autoclose=2 --height=0.9 --width=0.9 zsh<CR>', options)