diff options
author | kylo252 <[email protected]> | 2022-05-25 13:35:38 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-05-25 13:35:38 +0200 |
commit | fc63a66ce8d26ab7acf5e178b85d0f69b097ca7e (patch) | |
tree | 1dc5ddb0ec1cdd1d225ded33f157a890699fc348 /utils | |
parent | aa4c9930d9131c60d7a6f2e9bec8a2f3ba6c4055 (diff) | |
parent | 6dbba1f9597e0ba090702aea41357c29874aab7c (diff) |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'utils')
-rw-r--r-- | utils/installer/config.example.lua | 21 | ||||
-rw-r--r-- | utils/installer/config_win.example.lua | 21 |
2 files changed, 30 insertions, 12 deletions
diff --git a/utils/installer/config.example.lua b/utils/installer/config.example.lua index 562d4060..120cd783 100644 --- a/utils/installer/config.example.lua +++ b/utils/installer/config.example.lua @@ -20,9 +20,9 @@ lvim.leader = "space" -- add your own keymapping lvim.keys.normal_mode["<C-s>"] = ":w<cr>" -- unmap a default keymapping --- lvim.keys.normal_mode["<C-Up>"] = false --- edit a default keymapping --- lvim.keys.normal_mode["<C-q>"] = ":q<cr>" +-- vim.keymap.del("n", "<C-Up>") +-- override a default keymapping +-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>" -- or vim.keymap.set("n", "<C-q>", ":q<cr>" ) -- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode. -- we use protected-mode (pcall) just in case the plugin wasn't loaded yet. @@ -153,6 +153,15 @@ lvim.builtin.treesitter.highlight.enabled = true -- } -- Autocommands (https://neovim.io/doc/user/autocmd.html) --- lvim.autocommands.custom_groups = { --- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" }, --- } +-- vim.api.nvim_create_autocmd("BufEnter", { +-- pattern = { "*.json", "*.jsonc" }, +-- -- enable wrap mode for json files only +-- command = "setlocal wrap", +-- }) +-- vim.api.nvim_create_autocmd("FileType", { +-- pattern = "zsh", +-- callback = function() +-- -- let treesitter use bash highlight for zsh files as well +-- require("nvim-treesitter.highlight").attach(0, "bash") +-- end, +-- }) diff --git a/utils/installer/config_win.example.lua b/utils/installer/config_win.example.lua index b659263a..78468194 100644 --- a/utils/installer/config_win.example.lua +++ b/utils/installer/config_win.example.lua @@ -37,9 +37,9 @@ lvim.leader = "space" -- add your own keymapping lvim.keys.normal_mode["<C-s>"] = ":w<cr>" -- unmap a default keymapping --- lvim.keys.normal_mode["<C-Up>"] = false --- edit a default keymapping --- lvim.keys.normal_mode["<C-q>"] = ":q<cr>" +-- vim.keymap.del("n", "<C-Up>") +-- override a default keymapping +-- lvim.keys.normal_mode["<C-q>"] = ":q<cr>" -- or vim.keymap.set("n", "<C-q>", ":q<cr>" ) -- Change Telescope navigation to use j and k for navigation and n and p for history in both input and normal mode. -- we use protected-mode (pcall) just in case the plugin wasn't loaded yet. @@ -168,6 +168,15 @@ lvim.builtin.treesitter.highlight.enabled = true -- } -- Autocommands (https://neovim.io/doc/user/autocmd.html) --- lvim.autocommands.custom_groups = { --- { "BufWinEnter", "*.lua", "setlocal ts=8 sw=8" }, --- } +-- vim.api.nvim_create_autocmd("BufEnter", { +-- pattern = { "*.json", "*.jsonc" }, +-- -- enable wrap mode for json files only +-- command = "setlocal wrap", +-- }) +-- vim.api.nvim_create_autocmd("FileType", { +-- pattern = "zsh", +-- callback = function() +-- -- let treesitter use bash highlight for zsh files as well +-- require("nvim-treesitter.highlight").attach(0, "bash") +-- end, +-- }) |