From ed8ef6eeae6a5b719bbee222dbbdbbff2c3e3478 Mon Sep 17 00:00:00 2001 From: Blista Kanjo Date: Sun, 2 Jul 2023 05:37:14 -0400 Subject: refactor: disabled coc.nvim statusline prepends --- .config/nvim/lua/coc.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.config/nvim') 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', )", {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", "j", ":CocNext", opts) keyset("n", "k", ":CocPrev", opts) -- resume latest coc list keyset("n", "p", ":CocListResume", 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','')}") -- cgit v1.2.3