Skip to content

Commit 7ed309a

Browse files
committed
nvim(mappings): remove no-longer-needed plugin_loaded guards
1 parent ada56c6 commit 7ed309a

11 files changed

Lines changed: 0 additions & 46 deletions

File tree

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if not _G.plugin_loaded("aerial.nvim") then
2-
do return end
3-
end
4-
51
local map = vim.keymap.set
62

73
map("n", "<Space>o", function() require("aerial").toggle() end)

nvim/.config/nvim/lua/mappings/_blame_nvim.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if not _G.plugin_loaded("blame.nvim") then
2-
do return end
3-
end
4-
51
local map = vim.keymap.set
62

73

nvim/.config/nvim/lua/mappings/_copilot_lua.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if not _G.plugin_loaded("copilot.lua") then
2-
do return end
3-
end
4-
51
vim.keymap.set("n", "<Leader>c", function()
62
local was_enabled = require("copilot.client").buf_is_attached(0)
73
vim.cmd [[Copilot toggle]]
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
if not _G.plugin_loaded("neo-tree.nvim") then
2-
do return end
3-
end
4-
51
vim.keymap.set("n", "<space>T", ":NeoTreeFocusToggle<CR>")
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
if not _G.plugin_loaded("nvim-tree.lua") then
2-
do return end
3-
end
4-
51
vim.keymap.set("n", "<space>T", ":NvimTreeFindFileToggle<CR>")

nvim/.config/nvim/lua/mappings/_telescope_nvim.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if not _G.plugin_loaded("telescope.nvim") then
2-
do return end
3-
end
4-
51
local map = vim.keymap.set
62

73
---@format disable

nvim/.config/nvim/lua/mappings/_trouble_nvim.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if not _G.plugin_loaded("trouble.nvim") then
2-
do return end
3-
end
4-
51
vim.keymap.set("n", "<space>t", ":Trouble<CR>")
62
vim.keymap.set("n", "<space>l", ":Trouble loclist toggle<CR>")
73
vim.keymap.set("n", "<space>q", ":Trouble quickfix toggle<CR>")

nvim/.config/nvim/lua/mappings/_vim_vsnip.lua

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
if not _G.plugin_loaded("vim-vsnip") then
2-
do return end
3-
end
4-
51
vim.cmd [[
62
73
" Expand

nvim/.config/nvim/lua/mappings/disabled/_leap_nvim.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
if not _G.plugin_loaded("leap.nvim") then
2-
do return end
3-
end
4-
5-
61
local leap = require("leap")
72

83

nvim/.config/nvim/lua/mappings/disabled/_lightspeed_nvim.lua

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
if not _G.plugin_loaded("lightspeed.nvim") then
2-
do return end
3-
end
4-
5-
61
local lightspeed = require("lightspeed")
72

83
local n = function(...) vim.keymap.set("n", ...) end

0 commit comments

Comments
 (0)