From b6db763b8e922f45acdc24713f50e62dc6328583 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 5 Dec 2023 17:41:57 -0700 Subject: [PATCH 1/2] 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 From ff8ea83cbc20ba73250437856fd6e87db4bb0d23 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 5 Dec 2023 17:46:41 -0700 Subject: [PATCH 2/2] Add "ve" command to fish. Useful for Python environment management. Or I should start using pipx... --- fish/functions/ve.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 fish/functions/ve.fish diff --git a/fish/functions/ve.fish b/fish/functions/ve.fish new file mode 100644 index 0000000..514bd04 --- /dev/null +++ b/fish/functions/ve.fish @@ -0,0 +1,3 @@ +function ve + source ve/bin/activate.fish +end