-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(plugins): iterate plugins (#1198)
This PR introduces BREAKING CHANGE about plugins and keymaps. Plugins removed: 1. `rainbowhxch/accelerated-jk.nvim` 2. `max397574/better-escape.nvim` 3. `sindrets/diffview.nvim` 4. `abecodes/tabout.nvim` 5. `edluffy/specs.nvim` Plugins replaced: 1. `junegunn/vim-easy-align` to `echasnovski/mini.align` 2. `RRethy/vim-illuminate` to `tzachar/local-highlight.nvim` 3. `gelguy/wilder.nvim` to `hrsh7th/cmp-cmdline` Plugins added: 1. `folke/neoconf.nvim` for pre project custom lsp config. 2. `tpope/vim-sleuth` for smart tab size. 3. `nvim-pack/nvim-spectre` for project-level plain text search and replace. 4. `mrjones2014/smart-splits.nvim` for smart window splits with terminal multiplexers. 5. `folke/todo-comments.nvim` for highlight of TODO, NOTE, etc. 6. `nvim-neotest/nvim-nio` for dependency of `nvim-dap-ui`. Keymaps modifications: 1. `n|<A-j>` and `n|<A-k>` are mapped to resize window vertically. 2. `n|<A-h>` and `n|<A-l>` are mapped to resize window horizontally. 3. `n|<A-i>` and `n|<A-o>` are mapped to switch opened buffers/tabs. 4. `n|<A-S-i>` and `n|<A-S-o>` are mapped to move opened buffers/tabs. 5. `n|<leader>Ss`, `n|<leader>Sp`, `v|<leader>Sp` and `n|<leader>Sf` are mapped to project-level text search and replace, you can use `<C-p>` to check the detailed descriptions. 6. `n|<leader>Wh`, `n|<leader>Wj`, `n|<leader>Wk` and `n|<leader>Wl` are mapped to move splitted windows. 7. `n|<leader>gd`, `n|<leader>gD`, `n|<A-[>`, `n|<A-]>`, `n|<A-;>`, `n|<A-'>`, `n|gea`, `n|<A-S-j>`, `n|<A-S-k>`, `i|<A-l>` and `i|<A-h>` are unmapped, they are free now!
- Loading branch information
Showing
26 changed files
with
273 additions
and
812 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
local M = {} | ||
|
||
M.setup = function() | ||
require("modules.utils").load_plugin("neoconf", { | ||
-- name of the local settings files | ||
local_settings = ".neoconf.json", | ||
-- name of the global settings file in your Neovim config directory | ||
global_settings = "neoconf.json", | ||
-- import existing settings from other plugins | ||
import = { | ||
vscode = true, -- local .vscode/settings.json | ||
coc = true, -- global/local coc-settings.json | ||
nlsp = true, -- global/local nlsp-settings.nvim json settings | ||
}, | ||
-- send new configuration to lsp clients when changing json settings | ||
live_reload = true, | ||
-- set the filetype to jsonc for settings files, so you can use comments | ||
-- make sure you have the jsonc treesitter parser installed! | ||
filetype_jsonc = true, | ||
plugins = { | ||
-- configures lsp clients with settings in the following order: | ||
-- - lua settings passed in lspconfig setup | ||
-- - global json settings | ||
-- - local json settings | ||
lspconfig = { | ||
enabled = true, | ||
}, | ||
-- configures jsonls to get completion in .nvim.settings.json files | ||
jsonls = { | ||
enabled = true, | ||
-- only show completion in json settings for configured lsp servers | ||
configured_servers_only = true, | ||
}, | ||
-- configures lua_ls to get completion of lspconfig server settings | ||
lua_ls = { | ||
-- by default, lua_ls annotations are only enabled in your neovim config directory | ||
enabled_for_neovim_config = true, | ||
-- explicitely enable adding annotations. Mostly relevant to put in your local .nvim.settings.json file | ||
enabled = false, | ||
}, | ||
}, | ||
}) | ||
end | ||
|
||
return M |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.