From 96adaf8322e26118fdb4710f716cffe1e677de83 Mon Sep 17 00:00:00 2001 From: Rikuoh Date: Tue, 22 Oct 2024 11:47:03 +0900 Subject: [PATCH] fix --- init.lua | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/init.lua b/init.lua index 4c47fab..d77be3e 100644 --- a/init.lua +++ b/init.lua @@ -78,10 +78,10 @@ vim.keymap.set("n", "A", function() return vim.fn.empty(vim.fn.getline(".")) == 1 and '"_cc' or "A" end, { expr = true, noremap = true }) vim.keymap.set("n", "", function() - return string.format("move-1-%d=l", vim.v.count1) + return string.format("move-1-%d=l", vim.v.count1) end, { expr = true, noremap = true }) vim.keymap.set("n", "", function() - return string.format("move+%d=l", vim.v.count1) + return string.format("move+%d=l", vim.v.count1) end, { expr = true, noremap = true }) vim.keymap.set("v", "", ":move'<-2gv=gv") vim.keymap.set("v", "", ":move'>+1gv=gv") @@ -137,8 +137,8 @@ vim.keymap.set("n", "p", "]p") vim.keymap.set("n", "P", "]P") vim.keymap.set("v", "p", "P") vim.keymap.set("v", "y", "mzy`z") -vim.keymap.set("n", "o", "copy.") -vim.keymap.set("n", "O", "copy-1") +vim.keymap.set("n", "o", "copy.") +vim.keymap.set("n", "O", "copy-1") vim.keymap.set("v", "o", ":copy'<-1gv") vim.keymap.set("v", "O", ":copy'>+0gv") @@ -192,7 +192,7 @@ require("lazy").setup({ "sainnhe/everforest", event = "VeryLazy", config = function() - vim.g.everforest_background = 'hard' + vim.g.everforest_background = "hard" end, }, { "nvim-lua/plenary.nvim", event = "VeryLazy" }, @@ -769,13 +769,13 @@ local kopts = { noremap = true, silent = true } vim.keymap.set( "n", "n", - [[execute('normal! ' . v:count1 . 'n')lua require('hlslens').start()]], + [[execute('normal! ' . v:count1 . 'n')lua require('hlslens').start()]], kopts ) vim.keymap.set( "n", "N", - [[execute('normal! ' . v:count1 . 'N')lua require('hlslens').start()]], + [[execute('normal! ' . v:count1 . 'N')lua require('hlslens').start()]], kopts ) vim.keymap.set("n", "*", [[*lua require('hlslens').start()]], kopts) @@ -1004,7 +1004,7 @@ function CopilotChatBuffer() end end -vim.api.nvim_set_keymap("n", "9", "lua CopilotChatBuffer()", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("n", "9", "lua CopilotChatBuffer()", { noremap = true, silent = true }) function ShowCopilotChatActionPrompt() local actions = require("CopilotChat.actions") @@ -1014,9 +1014,12 @@ end vim.api.nvim_set_keymap( "n", "0", - "lua ShowCopilotChatActionPrompt()", + "lua ShowCopilotChatActionPrompt()", { noremap = true, silent = true } ) --OTHER SETTINGS +vim.keymap.set("n", "7", "colorscheme edge", { noremap = true, silent = true }) +vim.keymap.set("n", "8", "colorscheme everforest", { noremap = true, silent = true }) + vim.cmd("colorscheme edge")