vnoremap("<M-j>", ":m .+1<CR>==")
vnoremap("<M-k>", ":m .-2<CR>==")
-xnoremap("J", ":move '>+1<CR>gv-gv", opts)
-xnoremap("K", ":move '<-2<CR>gv-gv", opts)
-xnoremap("<A-j>", ":move '>+1<CR>gv-gv", opts)
-xnoremap("<A-k>", ":move '<-2<CR>gv-gv", opts)
+xnoremap("J", ":move '>+1<CR>gv-gv")
+xnoremap("K", ":move '<-2<CR>gv-gv")
+xnoremap("<A-j>", ":move '>+1<CR>gv-gv")
+xnoremap("<A-k>", ":move '<-2<CR>gv-gv")
-- Terminal --
-- Better terminal navigation
tnoremap("<C-j>", "<C-\\><C-N><C-w>j")
tnoremap("<C-k>", "<C-\\><C-N><C-w>k")
tnoremap("<C-l>", "<C-\\><C-N><C-w>l")
+
+-- Telescope
+nnoremap("<leader>f", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<CR>")
+nnoremap("<C-t>", "<cmd>Telescope live_grep<CR>")
-- Use a protected call so we don't error out on the first use
local status_ok, packer = pcall(require, "packer")
if not status_ok then
- vim.notify("Error with require packer")
+ vim.notify("Error with require packer")
return
end
use "navarasu/onedark.nvim"
-- cmp Plugins
- use 'hrsh7th/nvim-cmp'
- use 'hrsh7th/cmp-buffer'
- use 'hrsh7th/cmp-path'
- use 'hrsh7th/cmp-cmdline'
- use 'saadparwaiz1/cmp_luasnip'
- use 'hrsh7th/cmp-nvim-lsp'
- use 'hrsh7th/cmp-nvim-lua'
+ use "hrsh7th/nvim-cmp"
+ use "hrsh7th/cmp-buffer"
+ use "hrsh7th/cmp-path"
+ use "hrsh7th/cmp-cmdline"
+ use "saadparwaiz1/cmp_luasnip"
+ use "hrsh7th/cmp-nvim-lsp"
+ use "hrsh7th/cmp-nvim-lua"
-- snippets
- use 'L3MON4D3/LuaSnip'
+ use "L3MON4D3/LuaSnip"
use "rafamadriz/friendly-snippets" -- a bunch of snippets to use
-- LSP
use "neovim/nvim-lspconfig" -- enable LSP
use "williamboman/nvim-lsp-installer" -- simple to use language server installer
+ --Telescope
+ use {
+ "nvim-telescope/telescope.nvim",
+ requires = { {"nvim-lua/plenary.nvim"} },
+ }
+
+ use "BurntSushi/ripgrep"
+
-- Commenter
use {
- 'numToStr/Comment.nvim',
+ "numToStr/Comment.nvim",
config = function()
- require('Comment').setup()
+ require("Comment").setup()
end
}