From b6db763b8e922f45acdc24713f50e62dc6328583 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 5 Dec 2023 17:41:57 -0700 Subject: [PATCH] Add nvim configuration. This includes various things I've built up over time: * Python behavior around tabs and indentation * Default line numbering and color scheme. Also ignore the netrwhist file it's per-machine. --- .gitignore | 1 + nvim/after/ftplugin/python.vim | 5 +++++ nvim/indent/python.vim | 1 + nvim/init.vim | 2 ++ 4 files changed, 9 insertions(+) create mode 100644 .gitignore create mode 100644 nvim/after/ftplugin/python.vim create mode 100644 nvim/indent/python.vim create mode 100644 nvim/init.vim diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0a23ec5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +nvim/.netrwhist diff --git a/nvim/after/ftplugin/python.vim b/nvim/after/ftplugin/python.vim new file mode 100644 index 0000000..da599ce --- /dev/null +++ b/nvim/after/ftplugin/python.vim @@ -0,0 +1,5 @@ +set nu +set noexpandtab +set noautoindent +set tabstop=4 +set indentexpr= diff --git a/nvim/indent/python.vim b/nvim/indent/python.vim new file mode 100644 index 0000000..7130957 --- /dev/null +++ b/nvim/indent/python.vim @@ -0,0 +1 @@ +set indentexpr= diff --git a/nvim/init.vim b/nvim/init.vim new file mode 100644 index 0000000..fc77555 --- /dev/null +++ b/nvim/init.vim @@ -0,0 +1,2 @@ +colorscheme koehler +set nu