diff --git a/nvim/.config/nvim/lua/opdavies/init.lua b/nvim/.config/nvim/lua/opdavies/init.lua index 6224484..cae1a3c 100644 --- a/nvim/.config/nvim/lua/opdavies/init.lua +++ b/nvim/.config/nvim/lua/opdavies/init.lua @@ -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" diff --git a/nvim/.config/nvim/lua/opdavies/plugins/floaterm.lua b/nvim/.config/nvim/lua/opdavies/plugins/floaterm.lua new file mode 100644 index 0000000..07345aa --- /dev/null +++ b/nvim/.config/nvim/lua/opdavies/plugins/floaterm.lua @@ -0,0 +1,8 @@ +local map = vim.api.nvim_set_keymap + +local options = { noremap = true } + +map('n', 'ld', 'FloatermNew --autoclose=2 --height=0.9 --width=0.9 lazydocker', options) +map('n', 'lg', 'FloatermNew --autoclose=2 --height=0.9 --width=0.9 lazygit', options) +map('n', 'nn', 'FloatermNew --autoclose=2 --height=0.5 --width=0.5 nnn -Hde', options) +map('n', 'tt', 'FloatermNew --autoclose=2 --height=0.9 --width=0.9 zsh', options)