From 17f96075a064905a54b344b5e92281664b7eed1d Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Mon, 20 Nov 2023 20:13:23 -0500 Subject: [PATCH] Add c++ settings and good text width settings --- coc-settings.json | 3 ++- ftplugin/cpp.vim | 4 ++++ ftplugin/python.vim | 1 + init.vim | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/coc-settings.json b/coc-settings.json index 689eaad..0b7c272 100644 --- a/coc-settings.json +++ b/coc-settings.json @@ -5,6 +5,7 @@ "python.analysis.diagnosticSeverityOverrides":{ "reportUnboundVariable":"none" }, - "hover.target": "preview" + "hover.target": "preview", + "clangd.path": "~/.config/coc/extensions/coc-clangd-data/install/16.0.2/clangd_16.0.2/bin/clangd" } diff --git a/ftplugin/cpp.vim b/ftplugin/cpp.vim index 771a08c..27ee871 100644 --- a/ftplugin/cpp.vim +++ b/ftplugin/cpp.vim @@ -1 +1,5 @@ map : w % ! make +set tw=100 +set colorcolumn=100 + + diff --git a/ftplugin/python.vim b/ftplugin/python.vim index 2411984..0ba4aaa 100644 --- a/ftplugin/python.vim +++ b/ftplugin/python.vim @@ -1,2 +1,3 @@ set colorcolumn=100 nmap ;x [hv]h]hk$;sc +set tw=100 diff --git a/init.vim b/init.vim index ff5516f..e001d21 100644 --- a/init.vim +++ b/init.vim @@ -188,3 +188,4 @@ nnoremap "iron.nvim lua require('iron') +set formatoptions-=o