Browse Source

Updated keymaps

master
Julio Biason 2 years ago
parent
commit
5387682da2
  1. 1
      nvim/after/plugin/pairs.lua
  2. 14
      nvim/after/plugin/telescope.lua
  3. 1
      nvim/lua/packager.lua

1
nvim/after/plugin/pairs.lua

@ -0,0 +1 @@
require("nvim-autopairs").setup({})

14
nvim/after/plugin/telescope.lua

@ -1,5 +1,11 @@
vim.api.nvim_set_keymap('n', '<leader><space>', '<cmd>Telescope find_files<CR>', { noremap = true, silent = true }) local builtin = require('telescope.builtin')
vim.api.nvim_set_keymap('n', '<leader>p', '<cmd>Telescope git_files<CR>', { noremap = true, silent = true }) local options = { noremap = true, silent = true }
vim.api.nvim_set_keymap('n', '<leader>g', '<cmd>Telescope live_grep<CR>', { noremap = true, silent = true })
vim.api.nvim_set_keymap('n', '<leader>b', '<cmd>Telescope buffers<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<leader><space>', builtin.find_files, options)
vim.keymap.set('n', '<leader>g', builtin.live_grep, options)
vim.keymap.set('n', '<leader>p', builtin.git_files, options)
vim.keymap.set('n', '<leader>b', builtin.buffers, options)
vim.keymap.set('n', '<leader>s', function()
builtin.grep_string({ search = vim.fn.input("Search: ")})
end, { noremap = true, silent = false }
)

1
nvim/lua/packager.lua

@ -19,5 +19,6 @@ return require("packer").startup(function(use)
use("nvim-lualine/lualine.nvim") use("nvim-lualine/lualine.nvim")
use("windwp/nvim-autopairs") use("windwp/nvim-autopairs")
use("tpope/vim-commentary") use("tpope/vim-commentary")
end) end)

Loading…
Cancel
Save