Nvim: update most of the plugins

This commit is contained in:
Robert Kmieć
2024-02-26 12:51:21 +01:00
parent 71f71cb3ce
commit c55b301dc4
34 changed files with 439 additions and 531 deletions

View File

@@ -1,6 +1,7 @@
return {
'numToStr/FTerm.nvim',
opts = {
config = function()
require('FTerm').setup({
-- Filetype of the terminal buffer
ft = 'FTerm',
@@ -23,10 +24,10 @@ return {
-- Object containing the terminal window dimensions.
-- The value for each field should be between `0` and `1`
dimensions = {
height = 0.9, -- Height of the terminal window
width = 0.9, -- Width of the terminal window
x = 0.5, -- X axis of the terminal window
y = 0.5, -- Y axis of the terminal window
height = 0.9, -- Height of the terminal window
width = 0.9, -- Width of the terminal window
x = 0.5, -- X axis of the terminal window
y = 0.5, -- Y axis of the terminal window
},
-- Callback invoked when the terminal exits.
@@ -40,5 +41,10 @@ return {
-- Callback invoked when the terminal emits stderr data.
-- See `:h jobstart-options`
on_stderr = nil,
}
})
vim.keymap.set('n', '<leader>i', '<cmd>lua require("FTerm").toggle()<CR>', { noremap = true, silent = true })
vim.keymap.set('t', '<leader>i', '<cmd>lua require("FTerm").toggle()<CR>', { noremap = true, silent = true })
end,
enabled = false
}