AutoYADM commit: 2024-12-25 19:30:02
This commit is contained in:
parent
8064ff2098
commit
5662240325
4 changed files with 46 additions and 0 deletions
|
@ -21,6 +21,9 @@ vim.keymap.set({ "i", "n" }, "<C-t>", "<Nop>")
|
|||
-- vim.notify("test")
|
||||
-- end)
|
||||
|
||||
map({ "n", "i", "x", "o" }, "<C-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
||||
map({ "n", "i", "x", "o" }, "<M-c>", "<Esc>", { noremap = true, desc = "Escape" })
|
||||
|
||||
-- Better Scroll
|
||||
|
||||
map({ "n" }, "<C-e>", "<C-y>", { noremap = true, desc = "Scroll Up" })
|
||||
|
|
|
@ -15,6 +15,7 @@ return {
|
|||
cmd = "Oil",
|
||||
keys = {
|
||||
{ "-", "<CMD>Oil<CR>", desc = "Open Oil" },
|
||||
{ "_", "<CMD>Oil --float<CR>", desc = "Open Oil Floating" },
|
||||
},
|
||||
opts = {
|
||||
default_file_explorer = true,
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
return {
|
||||
{
|
||||
"abecodes/tabout.nvim",
|
||||
lazy = false,
|
||||
config = function()
|
||||
require("tabout").setup({
|
||||
tabkey = "<Tab>", -- key to trigger tabout, set to an empty string to disable
|
||||
backwards_tabkey = "", -- key to trigger backwards tabout, set to an empty string to disable
|
||||
act_as_tab = true, -- shift content if tab out is not possible
|
||||
act_as_shift_tab = false, -- reverse shift content if tab out is not possible (if your keyboard/terminal supports <S-Tab>)
|
||||
default_tab = "<C-t>", -- shift default action (only at the beginning of a line, otherwise <TAB> is used)
|
||||
default_shift_tab = "<C-d>", -- reverse shift default action,
|
||||
enable_backwards = true, -- well ...
|
||||
completion = false, -- if the tabkey is used in a completion pum
|
||||
tabouts = {
|
||||
{ open = "'", close = "'" },
|
||||
{ open = '"', close = '"' },
|
||||
{ open = "`", close = "`" },
|
||||
{ open = "(", close = ")" },
|
||||
{ open = "[", close = "]" },
|
||||
{ open = "{", close = "}" },
|
||||
{ open = "<", close = ">" },
|
||||
},
|
||||
ignore_beginning = true, --[[ if the cursor is at the beginning of a filled element it will rather tab out than shift the content ]]
|
||||
exclude = {}, -- tabout will ignore these filetypes
|
||||
})
|
||||
end,
|
||||
dependencies = { -- These are optional
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
{
|
||||
"L3MON4D3/LuaSnip",
|
||||
keys = function()
|
||||
-- Disable default tab keybinding in LuaSnip
|
||||
return {}
|
||||
end,
|
||||
},
|
||||
},
|
||||
event = "InsertCharPre", -- Set the event to 'InsertCharPre' for better compatibility
|
||||
priority = 1000,
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue