From f0d22b299f2a49272454f657b32dacadceeb0096 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 18 Jul 2021 16:39:26 +0430 Subject: Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index e11e9267..309e8ebe 100644 --- a/README.md +++ b/README.md @@ -34,12 +34,13 @@ LVBRANCH=rolling bash <(curl -s https://raw.githubusercontent.com/ChristianChiar ``` If your installation is stuck on `Ok to remove? [y/N]`, it means there are some leftovers, \ -you can run the script with `--overwrite` but be warned this will remove the following folder: +you can run the script with `--overwrite` but be warned this will remove the following folders: - `~/.config/nvim` - `~/.cache/nvim` - `~/.local/share/nvim/site/pack/packer` ```bash curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh | LVBRANCH=rolling bash -s -- --overwrite +# then run nvim and wait for treesitter to finish the installation ``` -- cgit v1.2.3 From 59106e860edde09107d2628a81eee816871eb065 Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sun, 18 Jul 2021 19:49:41 +0200 Subject: [Refactor] Make default keybindings configurable (#988) --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 309e8ebe..99440bff 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,27 @@ O.completion.autocomplete = true O.default_options.relativenumber = true O.colorscheme = 'spacegray' O.default_options.timeoutlen = 100 -O.leader_key = ' ' + +-- keymappings +O.keys.leader_key = "space" +-- overwrite the key-mappings provided by LunarVim for any mode, or leave it empty to keep them +O.keys.normal_mode = { + -- Page down/up + {'[d', ''}, + {']d', ''}, + + -- Navigate buffers + {'', ':bnext'}, + {'', ':bprevious'}, +} +-- if you just want to augment the existing ones then use the utility function +require("lv-utils").add_keymap_insert_mode({ silent = true }, { + { "", ":w" }, + { "", "" } +}) + +-- you can also use the native vim way directly +vim.api.nvim_set_keymap("i", "", "compe#complete()", { noremap = true, silent = true, expr = true }) -- After changing plugin config it is recommended to run :PackerCompile O.plugin.dashboard.active = true -- cgit v1.2.3 From 176417d1dc0cf3a50ee089f63b4316988072d903 Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 18 Jul 2021 17:50:17 +0000 Subject: Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 99440bff..29f4e75e 100644 --- a/README.md +++ b/README.md @@ -40,8 +40,8 @@ you can run the script with `--overwrite` but be warned this will remove the fol - `~/.local/share/nvim/site/pack/packer` ```bash curl -s https://raw.githubusercontent.com/ChristianChiarulli/lunarvim/rolling/utils/installer/install.sh | LVBRANCH=rolling bash -s -- --overwrite -# then run nvim and wait for treesitter to finish the installation ``` +then run nvim and wait for treesitter to finish the installation ## Installing LSP for your language -- cgit v1.2.3 From 56f17cebd4520e37c4c8a96e96e008bb5870178b Mon Sep 17 00:00:00 2001 From: Abouzar Parvan Date: Sun, 18 Jul 2021 22:27:05 +0430 Subject: [Feature] Allow users to inspect all settings inside LV (#984) --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 29f4e75e..8edae597 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,14 @@ O.lang.python.analysis.use_library_code_types = true -- vim.cmd('source ' .. CONFIG_PATH .. '/lua/lv-user/init.vim') ``` +In case you want to see all the settings inside LunarVim, run the following: + +```bash +cd ~/.config/nvim +nvim --headless +'lua require("lv-utils").generate_settings()' +qa && sort -o lv-settings.lua{,} +``` +and then inspect `~/.config/nvim/lv-settings.lua` file + ## Updating LunarVim In order to update you should be aware of three things `Plugins`, `LunarVim` and `Neovim` -- cgit v1.2.3