feat: enable spell sheck for markdown and json files

This commit is contained in:
Radu C. Martin 2025-04-19 22:21:38 +02:00
parent f00b283bcb
commit 15737b7151
2 changed files with 20 additions and 0 deletions

15
ftplugin/json.lua Normal file
View file

@ -0,0 +1,15 @@
-- Set indentation to 4 spaces for JSON files
vim.bo.shiftwidth = 4 -- Number of spaces for auto-indent
vim.bo.tabstop = 4 -- Number of spaces per tab
vim.bo.softtabstop = 4 -- Number of spaces per Tab key press
vim.bo.expandtab = true -- Convert tabs to spaces
-- Enable auto-indenting
vim.bo.autoindent = true
vim.bo.smartindent = true
-- Ensure file formatting is consistent
vim.bo.fileformat = 'unix'
-- Optionally, enable spell checking for JSON comments
vim.wo.spell = true