Skip to content

Commit

Permalink
Addedd new plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
lvim-tech committed Jan 6, 2022
1 parent c46c72d commit 43f4a1a
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 35 deletions.
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@

## LVIM IDE is a modular Neovim configuration written in LUA with full customization

- Now support Neovim 0.6.0, 0.7.0+
- Add or remove plugins, rewrite all plugins
- Add or remove settings, rewrite all settings
- Dynamic LSP activation
- Dynamic debugging activation - Dap
- Automaticaly install of the lsp servers and dap
- Linters
- Autoformat
- Custom settings for projects
- 70 plugins
- Loading time - ~065.000
- Now support Neovim 0.6.0, 0.7.0+
- Add or remove plugins, rewrite all plugins
- Add or remove settings, rewrite all settings
- Dynamic LSP activation
- Dynamic debugging activation - Dap
- Automaticaly install of the lsp servers and dap
- Linters
- Autoformat
- Custom settings for projects
- 73 plugins
- Loading time - ~086.000

---

Expand All @@ -36,13 +36,13 @@ For detail info see [wiki](https://github.com/lvim-tech/lvim/wiki) - `6500+` lin

## Requirements

- [neovim >=0.6.0](https://github.com/neovim/neovim/wiki/Installing-Neovim)
- [pynvim](https://github.com/neovim/pynvim)
- [neovim-remote](https://github.com/mhinz/neovim-remote)
- [nodejs](https://nodejs.org/en/)
- [ripgrep](https://github.com/BurntSushi/ripgrep)
- [fzf](https://github.com/junegunn/fzf)
- [rsync](https://github.com/WayneD/rsync)
- [neovim >=0.6.0](https://github.com/neovim/neovim/wiki/Installing-Neovim)
- [pynvim](https://github.com/neovim/pynvim)
- [neovim-remote](https://github.com/mhinz/neovim-remote)
- [nodejs](https://nodejs.org/en/)
- [ripgrep](https://github.com/BurntSushi/ripgrep)
- [fzf](https://github.com/junegunn/fzf)
- [rsync](https://github.com/WayneD/rsync)

## Current version - 1.3.0

Expand Down
2 changes: 1 addition & 1 deletion help/lvim_bindings_normal_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Normal mode
| -------------- | ---------------------------- | --------------------------- |
| <A-e> | :TroubleToggle<CR> | Trouble toggle |
| -------------- | ---------------------------- | --------------------------- |
| <A-/> | :CommentToggle<CR> | Comment toggle |
| <A-/> | :TelescopeBrowser<CR> | Telescope browser |
| -------------- | ---------------------------- | --------------------------- |
| <A-\*> | :LspVirtualTextToggle<CR> | Lsp virtual text toggle |
| -------------- | ---------------------------- | --------------------------- |
Expand Down
2 changes: 0 additions & 2 deletions help/lvim_bindings_visual_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,3 @@ Visual mode
| J | :move \'>+1<CR>gv-gv | Move down |
| ----- | -------------------- | --------------- |
| <A-j> | :AnyJumpVisual<CR> | Any jump visual |
| ----- | -------------------- | --------------- |
| <A-/> | :CommentToggle<CR> | Comment toggle |
2 changes: 2 additions & 0 deletions lua/configs/global/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ end
configs["commands_global"] = function()
vim.cmd('command! SetGlobalPath lua require("core.funcs").set_global_path()')
vim.cmd('command! SetWindowPath lua require("core.funcs").set_window_path()')
vim.cmd('command! TelescopeBrowser lua require("core.funcs").load_telescope_browser()')
vim.cmd('command! TelescopeBookmarks lua require("core.funcs").load_telescope_bookmarks()')
end

configs["keymaps_global"] = function()
Expand Down
2 changes: 1 addition & 1 deletion lua/configs/global/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ keymaps["normal"] = {
{"<A-n>", ":LspGoToNext<CR>"}, -- Lsp go to next
{"<A-p>", ":LspGoToPrev<CR>"}, -- Lsp go to prev
{"<A-e>", ":TroubleToggle<CR>"}, -- Trouble toggle
{"<A-/>", ":CommentToggle<CR>"}, -- Comment toggle
{"<A-/>", ":TelescopeBrowser<CR>"}, -- Telescope browser
{"<A-*>", ":LspVirtualTextToggle<CR>"}, -- Lsp virtual text toggle
{"<A-1>", "<Cmd>DapToggleBreakpoint<CR>"}, -- Toggle breakpoint
{"<A-2>", "<Cmd>DapStartContinue<CR>"}, -- Start / continue
Expand Down
8 changes: 8 additions & 0 deletions lua/core/funcs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,12 @@ M.set_window_path = function()
vim.api.nvim_command("silent :lcd " .. path)
end

M.load_telescope_browser = function()
require("telescope").extensions.file_browser.file_browser()
end

M.load_telescope_bookmarks = function()
require("telescope").extensions.bookmarks.bookmarks()
end

return M
18 changes: 11 additions & 7 deletions lua/modules/global/configs/editor/init.lua
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
local config = {}

function config.telescope()
if not packer_plugins["telescope.nvim"].loaded then
vim.cmd [[packadd telescope.nvim]]
vim.cmd [[packadd telescope-fzf-native.nvim]]
vim.cmd [[packadd telescope-media-files.nvim]]
end
local telescope = require("telescope")
telescope.load_extension "fzf"
telescope.load_extension "media_files"
telescope.load_extension "file_browser"
telescope.load_extension "flutter"
telescope.setup {
defaults = {
Expand Down Expand Up @@ -80,7 +76,14 @@ function config.telescope()
media_files = {
filetypes = {"png", "webp", "jpg", "jpeg"},
find_cmd = "rg"
}
},
file_browser = {
theme = "ivy"
},
bookmarks = {
selected_browser = "brave",
url_open_plugin = "open_browser"
},
}
}
end
Expand Down Expand Up @@ -179,7 +182,8 @@ function config.nvim_spectre()
end

function config.nvim_comment()
require("nvim_comment").setup()
-- require("nvim_comment").setup()
require('Comment').setup()
end

function config.vim_bookmarks()
Expand Down
10 changes: 7 additions & 3 deletions lua/modules/global/configs/ui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function config.dashboard_nvim()
},
b = {
description = {"  File explorer "},
command = "Telescope file_browser"
command = "TelescopeBrowser"
},
c = {
description = {"  Search file "},
Expand All @@ -33,14 +33,18 @@ function config.dashboard_nvim()
command = "Telescope live_grep"
},
e = {
description = {"  Browser bookmarks "},
command = ":TelescopeBookmarks"
},
f = {
description = {"  Help "},
command = ":LvimHelper"
},
f = {
g = {
description = {"  Settings "},
command = ":e ~/.config/nvim/lua/configs/global/lvim.lua"
},
g = {
h = {
description = {"  Readme "},
command = ":e ~/.config/nvim/README.md"
}
Expand Down
12 changes: 9 additions & 3 deletions lua/modules/global/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ modules["vim-ctrlspace/vim-ctrlspace"] = {
cmd = "CtrlSpace"
}

modules["tyru/open-browser.vim"] = {}

modules["nvim-telescope/telescope.nvim"] = {
requires = {
{
Expand All @@ -104,9 +106,14 @@ modules["nvim-telescope/telescope.nvim"] = {
},
{
"nvim-telescope/telescope-media-files.nvim"
},
{
"nvim-telescope/telescope-file-browser.nvim"
},
{
"dhruvmanila/telescope-bookmarks.nvim"
}
},
cmd = "Telescope",
config = editor_config.telescope
}

Expand All @@ -126,8 +133,7 @@ modules["windwp/nvim-spectre"] = {
config = editor_config.nvim_spectre
}

modules["terrortylor/nvim-comment"] = {
cmd = "CommentToggle",
modules["numToStr/Comment.nvim"] = {
config = editor_config.nvim_comment
}

Expand Down

0 comments on commit 43f4a1a

Please sign in to comment.