Fixing an issue I created with remaps not working for Telescope?

This commit is contained in:
root 2024-02-25 15:02:08 -05:00
parent 4d3950fc83
commit b0a3d7a63d
4 changed files with 7 additions and 6 deletions

5
after/plugin/luasnip.lua Normal file
View File

@ -0,0 +1,5 @@
local opts = { noremap = true, silent = true }
local ls = require("luasnip")
vim.api.nvim_set_keymap("n", "<Leader>nf", ":lua require('neogen').generate()<CR>", opts)
vim.keymap.set({"i", "s"}, "<C-L>", function() ls.jump( 1) end, {silent = true})
vim.keymap.set({"i", "s"}, "<C-J>", function() ls.jump(-1) end, {silent = true})

View File

@ -1,5 +1,5 @@
require("pippy.lazy")
require("pippy.remap")
require("pippy.lazy")
vim.opt.nu = true
vim.opt.relativenumber = true

View File

@ -49,6 +49,7 @@ require("lazy").setup({
cmd = "Neoconf"
},
"folke/neodev.nvim",
-- {'akinsho/toggleterm.nvim', version = "*", config = true},
{"danymat/neogen", dependencies = "nvim-treesitter/nvim-treesitter", config = true},
{'williamboman/mason.nvim'},
{'williamboman/mason-lspconfig.nvim'},

View File

@ -16,8 +16,3 @@ vim.keymap.set("n", "<leader>sg", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left>
vim.keymap.set("n", "<leader>ss", [[:.,$s/\<<C-r><C-w>\>/<C-r><C-w>/gIc<Left><Left><Left><Left>]]) --Search and replace incremental
vim.keymap.set("n", "<C-f>", [[/\<<C-r><C-w>\>/<CR>]]) -- ctrl find
local opts = { noremap = true, silent = true }
local ls = require("luasnip")
vim.api.nvim_set_keymap("n", "<Leader>nf", ":lua require('neogen').generate()<CR>", opts)
vim.keymap.set({"i", "s"}, "<C-L>", function() ls.jump( 1) end, {silent = true})
vim.keymap.set({"i", "s"}, "<C-J>", function() ls.jump(-1) end, {silent = true})