From ec24430128125a5f068ade6a14e3a170fd147346 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Thu, 2 Feb 2023 04:43:05 -0800 Subject: [PATCH] :bug: Fixed small bug in nvim --- .config/nvim/lua/neovim/remap.lua | 6 +++--- .config/nvim/lua/neovim/set.lua | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.config/nvim/lua/neovim/remap.lua b/.config/nvim/lua/neovim/remap.lua index 50d8acfa..4b12d3b3 100755 --- a/.config/nvim/lua/neovim/remap.lua +++ b/.config/nvim/lua/neovim/remap.lua @@ -18,10 +18,11 @@ vim.keymap.set("n", "", "NERDCommenterToggle") vim.keymap.set("n", "Q", "") -- reformats -vim.keymap.set("n", "f", vim.lsp.buf.format) +--vim.keymap.set("n", "f", vim.lsp.buf.format) -- global search and replace vim.keymap.set("n", "", ":%s///gI") +-- single line search and replace vim.keymap.set("n", "", ":.,.s///g") -- toggle english spellcheck @@ -34,7 +35,7 @@ vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) vim.keymap.set("n", "", ":tabnew", {}) vim.keymap.set("n", "", ":tabprevious", {}) -vim.keymap.set("n", "", ":tabprevious", {}) +vim.keymap.set("n", "", ":tabprevious", {}) vim.keymap.set("n", "", ":tabprevious", {}) vim.keymap.set("n", "", ":tabnext", {}) @@ -92,4 +93,3 @@ vim.cmd([[nnoremap rg :silent :Rg]]) --toggle autocompletion vim.cmd([[nnoremap cmp :silent lua SetAutoCmp(Mode)]]) - diff --git a/.config/nvim/lua/neovim/set.lua b/.config/nvim/lua/neovim/set.lua index 2e8e851c..12db2829 100644 --- a/.config/nvim/lua/neovim/set.lua +++ b/.config/nvim/lua/neovim/set.lua @@ -22,7 +22,7 @@ vim.opt.termguicolors = true vim.opt.scrolloff = 8 vim.opt.signcolumn = "yes" ---vim.opt.isfname:append("@-@") +-- vim.opt.isfname:append("@-@") vim.opt.updatetime = 50 @@ -57,8 +57,8 @@ vim.opt.list = true -- git-blame disabled by default vim.g.gitblame_enabled = 0 --- vertically center document when entering Insert mode -vim.cmd([[autocmd InsertEnter * norm zz]]) +-- vertically center document when entering Insert mode (breaks shift+A) +-- vim.cmd([[autocmd InsertEnter * norm zz]]) -- enable clipboard vim.cmd([[set clipboard+=unnamedplus]]) @@ -89,7 +89,7 @@ vim.cmd([[command! -nargs=* FZFExplore call FzfExplore(shellescape())]]) -- vim.cmd([[let g:fzf_layout = { 'down': '~30%' }]]) --lastplace ignores fzf -vim.cmd([[let g:lastplace_ignore_buftype = "quickfix, nofile, help, FZF"]]) +--vim.cmd([[let g:lastplace_ignore_buftype = "quickfix, nofile, help, FZF"]]) -- jump to last place visited in file vim.api.nvim_create_autocmd('BufReadPost', {