From 1582122ca22c777a5e07d0ab150dd0c7f1069bd0 Mon Sep 17 00:00:00 2001 From: Midgard <2885-Midgard@users.noreply.framagit.org> Date: Tue, 16 Jun 2020 01:32:23 +0200 Subject: [PATCH] Add EditorConfig and YouCompleteMe files --- .editorconfig | 9 +++++++++ .ycm_extra_conf.py | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 .editorconfig create mode 100644 .ycm_extra_conf.py diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..d46540a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +# https://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py new file mode 100644 index 0000000..8426cd2 --- /dev/null +++ b/.ycm_extra_conf.py @@ -0,0 +1,9 @@ +import os + +def Settings(**kwargs): + if not os.path.exists("venv"): + raise Exception("Run tools/create_venv.sh first") + + return { + "interpreter_path": "./venv/bin/python" + }