diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-12 16:27:29 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-12 16:27:29 +0200 |
| commit | e5172732e9e215f539aa260e9a7b4c3a1f531dd0 (patch) | |
| tree | 07391f4fd2e2d46d133c6e512303435e1645ebb2 /.config/nvim/after | |
| parent | 694cf5898bf4eca83748150939d1a25c28bf89e3 (diff) | |
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
Diffstat (limited to '.config/nvim/after')
| -rw-r--r-- | .config/nvim/after/ftplugin/markdown.lua | 12 |
1 files changed, 6 insertions, 6 deletions
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') |
