aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlista Kanjo2023-07-02 05:37:14 -0400
committerBlista Kanjo2023-07-02 05:37:14 -0400
commited8ef6eeae6a5b719bbee222dbbdbbff2c3e3478 (patch)
treedadc04b5743ea319b7ced0d0acc82f50bb606dc7
parent16a8c2ffaab5a0f5cc76d2ae95db14e9c1853320 (diff)
refactor: disabled coc.nvim statusline prepends
-rw-r--r--.config/nvim/lua/coc.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/.config/nvim/lua/coc.lua b/.config/nvim/lua/coc.lua
index 33b34d6..69e886c 100644
--- a/.config/nvim/lua/coc.lua
+++ b/.config/nvim/lua/coc.lua
@@ -164,11 +164,6 @@ vim.api.nvim_create_user_command("Fold", "call CocAction('fold', <f-args>)", {na
-- add `:or` command for organize imports of the current buffer
vim.api.nvim_create_user_command("OR", "call CocActionAsync('runCommand', 'editor.action.organizeImport')", {})
--- add (neo)vim's native statusline support
--- note: please see `:h coc-status` for integrations with external plugins that
--- provide custom statusline: lightline.vim, vim-airline
-vim.opt.statusline:prepend("%{coc#status()}%{get(b:,'coc_current_function','')}")
-
-- mappings for coclist
-- code actions and coc stuff
---@diagnostic disable-next-line: redefined-local
@@ -189,3 +184,8 @@ keyset("n", "<space>j", ":<C-u>CocNext<cr>", opts)
keyset("n", "<space>k", ":<C-u>CocPrev<cr>", opts)
-- resume latest coc list
keyset("n", "<space>p", ":<C-u>CocListResume<cr>", opts)
+
+-- add (neo)vim's native statusline support
+-- note: please see `:h coc-status` for integrations with external plugins that
+-- provide custom statusline: lightline.vim, vim-airline
+-- vim.opt.statusline:prepend("%{coc#status()}%{get(b:,'coc_current_function','')}")