From 5315ed748a8d06a85bed8064b70a3fd34604a6bb Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 29 Oct 2024 17:45:20 -0400 Subject: [PATCH] nvim: set rpy to python filetype --- nvim/lua/opt.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nvim/lua/opt.lua b/nvim/lua/opt.lua index ca16d41..452f86f 100644 --- a/nvim/lua/opt.lua +++ b/nvim/lua/opt.lua @@ -2,6 +2,7 @@ vim.opt.background = 'dark' vim.opt.clipboard = 'unnamedplus' vim.opt.colorcolumn = '85' vim.opt.mouse = 'a' + vim.opt.shiftwidth = 4 vim.opt.textwidth = 0 vim.opt.wrapmargin = 0 @@ -15,3 +16,9 @@ vim.opt.smartcase = true vim.opt.smartindent = true vim.opt.termguicolors = true vim.opt.wrap = false + +vim.filetype.add{ + extension = { + rpy = 'python', + } +}