add fterm
This commit is contained in:
parent
76b65bb505
commit
8a0e04ee07
3 changed files with 24 additions and 3 deletions
|
@ -9,8 +9,8 @@ local function init()
|
|||
map('n', '<space>ps', [[<cmd>lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For >")})<CR>]])
|
||||
|
||||
-------------------- NvimTreeToggle ------------------------
|
||||
map('n', '<space>tt', '<cmd>NvimTreeToggle<CR>')
|
||||
map('n', '<space>tr', '<cmd>NvimTreeRefresh<CR>')
|
||||
map('n', '<F4>', '<cmd>NvimTreeToggle<CR>')
|
||||
map('n', '<F5>', '<cmd>NvimTreeRefresh<CR>')
|
||||
|
||||
-------------------- LSP -----------------------------------
|
||||
map('n', '<space>,', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>')
|
||||
|
@ -31,9 +31,13 @@ local function init()
|
|||
map('n', 'g*', "g*<Cmd>lua require('hlslens').start()<CR>")
|
||||
map('n', 'g#', "g#<Cmd>lua require('hlslens').start()<CR>")
|
||||
|
||||
-------------------- FTerm ---------------------------------
|
||||
map('n', '<F3>', '<CMD>lua require("FTerm").toggle()<CR>')
|
||||
map('t', '<F3>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>')
|
||||
|
||||
-------------------- LAZYGIT -------------------------------
|
||||
-- Install docs : https://github.com/jesseduffield/lazygit
|
||||
map('n', '<space>lg', '<cmd>LazyGit<CR>')
|
||||
map('n', '<F2>', '<cmd>LazyGit<CR>')
|
||||
|
||||
-------------------- COMMANDS ------------------------------
|
||||
cmd 'au TextYankPost * lua vim.highlight.on_yank {on_visual = false}' -- disabled in visual mode
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
15
configs/nvim/lua/plugins/nvim-fterm.lua
Normal file
15
configs/nvim/lua/plugins/nvim-fterm.lua
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue