summaryrefslogtreecommitdiff
path: root/.config/nvim/after/ftplugin/python.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/ftplugin/python.lua')
-rw-r--r--.config/nvim/after/ftplugin/python.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/python.lua b/.config/nvim/after/ftplugin/python.lua
new file mode 100644
index 0000000..feab3c8
--- /dev/null
+++ b/.config/nvim/after/ftplugin/python.lua
@@ -0,0 +1,9 @@
+local setlocal = vim.opt_local
+
+setlocal.expandtab = true
+setlocal.tabstop = 4
+setlocal.softtabstop = 4
+setlocal.shiftwidth = 4
+
+vim.keymap.set("", "<F6>", ":!python %<CR>", { noremap = true, silent = true })
+setlocal.formatoptions:remove { "o" }