Skip to content

Commit

Permalink
nvim(mappings): remove no-longer-needed plugin_loaded guards
Browse files Browse the repository at this point in the history
  • Loading branch information
YodaEmbedding committed Aug 12, 2024
1 parent ada56c6 commit 7ed309a
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 46 deletions.
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_aerial_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("aerial.nvim") then
do return end
end

local map = vim.keymap.set

map("n", "<Space>o", function() require("aerial").toggle() end)
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_blame_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("blame.nvim") then
do return end
end

local map = vim.keymap.set


Expand Down
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_copilot_lua.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("copilot.lua") then
do return end
end

vim.keymap.set("n", "<Leader>c", function()
local was_enabled = require("copilot.client").buf_is_attached(0)
vim.cmd [[Copilot toggle]]
Expand Down
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_neo_tree_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
if not _G.plugin_loaded("neo-tree.nvim") then
do return end
end

vim.keymap.set("n", "<space>T", ":NeoTreeFocusToggle<CR>")
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_nvim_tree_lua.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
if not _G.plugin_loaded("nvim-tree.lua") then
do return end
end

vim.keymap.set("n", "<space>T", ":NvimTreeFindFileToggle<CR>")
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_telescope_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("telescope.nvim") then
do return end
end

local map = vim.keymap.set

---@format disable
Expand Down
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_trouble_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("trouble.nvim") then
do return end
end

vim.keymap.set("n", "<space>t", ":Trouble<CR>")
vim.keymap.set("n", "<space>l", ":Trouble loclist toggle<CR>")
vim.keymap.set("n", "<space>q", ":Trouble quickfix toggle<CR>")
Expand Down
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/_vim_vsnip.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("vim-vsnip") then
do return end
end

vim.cmd [[
" Expand
Expand Down
5 changes: 0 additions & 5 deletions nvim/.config/nvim/lua/mappings/disabled/_leap_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if not _G.plugin_loaded("leap.nvim") then
do return end
end


local leap = require("leap")


Expand Down
5 changes: 0 additions & 5 deletions nvim/.config/nvim/lua/mappings/disabled/_lightspeed_nvim.lua
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
if not _G.plugin_loaded("lightspeed.nvim") then
do return end
end


local lightspeed = require("lightspeed")

local n = function(...) vim.keymap.set("n", ...) end
Expand Down
4 changes: 0 additions & 4 deletions nvim/.config/nvim/lua/mappings/disabled/_snap.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
if not _G.plugin_loaded("snap") then
do return end
end

local snap = require("snap")

local git_file = snap.get "producer.git.file".args {
Expand Down

0 comments on commit 7ed309a

Please sign in to comment.