feat: added floating term
This commit is contained in:
parent
4a5f39bd74
commit
459a90f8ab
3 changed files with 12 additions and 60 deletions
|
|
@ -1,4 +1,5 @@
|
|||
require "nvchad.mappings"
|
||||
local term = require("floatty").setup {}
|
||||
|
||||
local map = vim.keymap.set
|
||||
|
||||
|
|
@ -8,4 +9,13 @@ map("n", ";", ":", { desc = "CMD enter command mode" })
|
|||
-- i then j&k to escape
|
||||
map("i", "jk", "<ESC>")
|
||||
|
||||
-- see code actions
|
||||
map("n", "<leader>a", "<cmd>Lspsaga code_action<CR>", { desc = "Display code actions" })
|
||||
|
||||
-- toogle terminal
|
||||
map("n", "<C-t>", function()
|
||||
term.toggle()
|
||||
end)
|
||||
map("t", "<C-t>", function()
|
||||
term.toggle()
|
||||
end)
|
||||
|
|
|
|||
|
|
@ -53,62 +53,6 @@ return {
|
|||
"nvim-treesitter/nvim-treesitter", -- optional
|
||||
"nvim-tree/nvim-web-devicons", -- optional
|
||||
},
|
||||
|
||||
-- beautiful git
|
||||
{
|
||||
"SuperBo/fugit2.nvim",
|
||||
build = false,
|
||||
opts = {
|
||||
width = 100,
|
||||
},
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"nvim-lua/plenary.nvim",
|
||||
{
|
||||
"chrisgrieser/nvim-tinygit", -- optional: for Github PR view
|
||||
dependencies = { "stevearc/dressing.nvim" },
|
||||
},
|
||||
},
|
||||
cmd = { "Fugit2", "Fugit2Diff", "Fugit2Graph" },
|
||||
keys = {
|
||||
{ "<leader>F", mode = "n", "<cmd>Fugit2<cr>" },
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
-- Beautiful indent helpers
|
||||
-- {
|
||||
-- "lukas-reineke/indent-blankline.nvim",
|
||||
-- version = false,
|
||||
-- config = function(_, opts)
|
||||
-- local highlight = {
|
||||
-- "RainbowRed",
|
||||
-- "RainbowYellow",
|
||||
-- "RainbowBlue",
|
||||
-- "RainbowOrange",
|
||||
-- "RainbowGreen",
|
||||
-- "RainbowViolet",
|
||||
-- "RainbowCyan",
|
||||
-- }
|
||||
--
|
||||
-- local hooks = require "ibl.hooks"
|
||||
-- -- create the highlight groups in the highlight setup hook, so they are reset
|
||||
-- -- every time the colorscheme changes
|
||||
-- hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
|
||||
-- vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
|
||||
-- vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
|
||||
-- vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
|
||||
-- vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
|
||||
-- vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
|
||||
-- vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
|
||||
-- vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
|
||||
-- end)
|
||||
--
|
||||
-- require("ibl").setup {
|
||||
-- indent = { highlight = highlight },
|
||||
-- scope = { enabled = true, show_start = true, highlight = highlight },
|
||||
-- }
|
||||
-- end,
|
||||
-- },
|
||||
{ "ingur/floatty.nvim" },
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue