Skip to content

Commit 721c925

Browse files
Update plugins.lua
1 parent 57d4130 commit 721c925

File tree

1 file changed

+26
-25
lines changed

1 file changed

+26
-25
lines changed
Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,5 @@
11
-- This file can be loaded by calling `lua require('plugins')` from your init.vim
22

3-
local builtin = require('telescope.builtin')
4-
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
5-
6-
vim.api.nvim_set_keymap("n", "<Leader><Leader>",
7-
[[<cmd>lua require('telescope').extensions.recent_files.pick()<CR>]],
8-
{noremap = true, silent = true})
9-
10-
function search_word_all()
11-
local input_string = vim.fn.input("Search For > ")
12-
if (input_string == '') then
13-
return
14-
end
15-
builtin.grep_string({
16-
search = input_string,
17-
})
18-
end
19-
vim.keymap.set('n', '<leader>fa', search_word_all, {})
20-
21-
vim.keymap.set("n", "<leader>rn", function()
22-
return ":IncRename " .. vim.fn.expand("<cword>")
23-
end, { expr = true })
24-
25-
263
return require('packer').startup(function(use)
274
-- packers
285
use 'wbthomason/packer.nvim'
@@ -38,7 +15,14 @@ return require('packer').startup(function(use)
3815
use { 'junegunn/fzf', run = ":call fzf#install()" }
3916
use { 'junegunn/fzf.vim' }
4017
use "smartpde/telescope-recent-files"
41-
use "preservim/nerdtree"
18+
19+
-- file explorer
20+
use {
21+
'nvim-tree/nvim-tree.lua',
22+
requires = {
23+
'nvim-tree/nvim-web-devicons', -- optional
24+
},
25+
}
4226

4327
-- git
4428
use "tpope/vim-fugitive"
@@ -52,14 +36,31 @@ return require('packer').startup(function(use)
5236
}
5337

5438

39+
-- astro
40+
use 'wuelnerdotexe/vim-astro'
41+
5542
--Style
5643
use 'Mofiqul/dracula.nvim'
5744

45+
--Markdown
46+
use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install", setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
47+
5848
--Terminal
5949
use {"akinsho/toggleterm.nvim", tag = '*', config = function()
6050
require("toggleterm").setup()
6151
end}
6252

63-
53+
--- Update imports when renaming a file
54+
use {
55+
"antosha417/nvim-lsp-file-operations",
56+
requires = {
57+
"nvim-lua/plenary.nvim",
58+
"nvim-tree/nvim-tree.lua",
59+
},
60+
config = function()
61+
require("lsp-file-operations").setup()
62+
end,
63+
}
64+
6465

6566
end)

0 commit comments

Comments
 (0)