AutoYADM commit: 2024-12-25 19:30:02

This commit is contained in:
Daniel Fichtinger 2024-12-25 19:30:02 -05:00
parent 8064ff2098
commit 5662240325
4 changed files with 46 additions and 0 deletions

View file

@ -83,6 +83,7 @@
"rustaceanvim": { "branch": "master", "commit": "6db1fe9e3f005b2e0921c7302d2c195eeb90a451" },
"snacks.nvim": { "branch": "main", "commit": "98df370703b3c47a297988f3e55ce99628639590" },
"speedtyper.nvim": { "branch": "v2", "commit": "f27fa7870dd35f1884efaef1c9f1d2e7dcedcacf" },
"tabout.nvim": { "branch": "master", "commit": "9a3499480a8e53dcaa665e2836f287e3b7764009" },
"telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" },
"text-case.nvim": { "branch": "main", "commit": "e898cfd46fa6cde0e83abb624a16e67d2ffc6457" },
"todo-comments.nvim": { "branch": "main", "commit": "ae0a2afb47cf7395dc400e5dc4e05274bf4fb9e0" },

View file

@ -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" })

View file

@ -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,

View file

@ -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,
},
}