diff --git a/configs/nvim/lua/mappings.lua b/configs/nvim/lua/mappings.lua index ac1034b..0b6dad2 100644 --- a/configs/nvim/lua/mappings.lua +++ b/configs/nvim/lua/mappings.lua @@ -9,8 +9,8 @@ local function init() map('n', 'ps', [[lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")})]]) -------------------- NvimTreeToggle ------------------------ - map('n', 'tt', 'NvimTreeToggle') - map('n', 'tr', 'NvimTreeRefresh') + map('n', '', 'NvimTreeToggle') + map('n', '', 'NvimTreeRefresh') -------------------- LSP ----------------------------------- map('n', ',', 'lua vim.lsp.diagnostic.goto_prev()') @@ -31,9 +31,13 @@ local function init() map('n', 'g*', "g*lua require('hlslens').start()") map('n', 'g#', "g#lua require('hlslens').start()") + -------------------- FTerm --------------------------------- + map('n', '', 'lua require("FTerm").toggle()') + map('t', '', 'lua require("FTerm").toggle()') + -------------------- LAZYGIT ------------------------------- -- Install docs : https://github.com/jesseduffield/lazygit - map('n', 'lg', 'LazyGit') + map('n', '', 'LazyGit') -------------------- COMMANDS ------------------------------ cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode diff --git a/configs/nvim/lua/plugins/init.lua b/configs/nvim/lua/plugins/init.lua index 689eea1..6199d52 100644 --- a/configs/nvim/lua/plugins/init.lua +++ b/configs/nvim/lua/plugins/init.lua @@ -8,6 +8,7 @@ function configure_packages() call_with_helpers(require('plugins.nvim-notify').init) call_with_helpers(require('plugins.nvim-hlslens').init) call_with_helpers(require('plugins.nvim-flutter-tools').init) + call_with_helpers(require('plugins.nvim-fterm').init) end function install_packages() @@ -40,6 +41,7 @@ function install_packages() use 'kevinhwang91/nvim-hlslens' -- nvim-hlslens helps you better glance at matched information, seamlessly jump between matched instances. use 'mfussenegger/nvim-dap' -- debugger use {'akinsho/flutter-tools.nvim', requires = 'nvim-lua/plenary.nvim'} + use 'numtostr/FTerm.nvim' -- Floating terminal use 'mhinz/vim-startify' -- The fancy start screen for Vim. end diff --git a/configs/nvim/lua/plugins/nvim-fterm.lua b/configs/nvim/lua/plugins/nvim-fterm.lua new file mode 100644 index 0000000..e35f4f6 --- /dev/null +++ b/configs/nvim/lua/plugins/nvim-fterm.lua @@ -0,0 +1,15 @@ +local function init() + require('FTerm').setup { + dimensions = { + height = 0.8, + width = 0.8, + x = 0.5, + y = 0.5 + }, + border = 'double' + } +end + +return { + init = init +} \ No newline at end of file