From 54dba9c77e96f8457303d401bea359b7c91f10be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Wed, 19 Jan 2022 09:21:15 +0100 Subject: [PATCH] add coc --- config/programs/vim.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/programs/vim.nix b/config/programs/vim.nix index c9984178..a1c5b340 100644 --- a/config/programs/vim.nix +++ b/config/programs/vim.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: { +{ pkgs, ... }: let dsquotes = "''"; in { programs.neovim = { enable = true; coc = { @@ -155,7 +155,7 @@ " 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. - set statusline^=%{coc#status()}%{get(b:,'coc_current_function',\'\')} + set statusline^=%{coc#status()}%{get(b:,'coc_current_function',${dsquotes})} " Mappings for CoCList " Show all diagnostics. @@ -181,6 +181,7 @@ ctrlp-vim vim-nix tagbar + coc-nvim ]; }; }