From e5172732e9e215f539aa260e9a7b4c3a1f531dd0 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 12 Nov 2024 16:27:29 +0200 Subject: Finally realized what caused the weird thing where tabs would become 2 spaces instead of 4, I needed to set markdown to opt local otherwise it would effect other files --- .config/nvim/after/ftplugin/markdown.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.config/nvim/after') diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua index 3f56398..3d04ff0 100644 --- a/.config/nvim/after/ftplugin/markdown.lua +++ b/.config/nvim/after/ftplugin/markdown.lua @@ -1,11 +1,11 @@ Event = 'VeryLazy' -vim.opt.tabstop = 2 -- number of visual spaces per TAB -vim.opt.softtabstop = 2 -- number of idfk tab when editing -vim.opt.shiftwidth = 2 -- number of spaces to insert on tab +vim.opt_local.tabstop = 2 -- number of visual spaces per TAB +vim.opt_local.softtabstop = 2 -- number of idfk tab when editing +vim.opt_local.shiftwidth = 2 -- number of spaces to insert on tab -vim.opt.wrap = true -vim.opt.breakindent = true -vim.opt.linebreak = true +vim.opt_local.wrap = true +vim.opt_local.breakindent = true +vim.opt_local.linebreak = true vim.keymap.set('n', 'j', 'gj') vim.keymap.set('n', 'k', 'gk') -- cgit v1.3.1