chore: added spell checker

This commit is contained in:
sankalp committed 2026-10-21 17:38:23 +05:45
1 parent e633c39e1a
commit 86fbd2b02d
1 file changed
+60 -58
+60 -58
View File
@@ -1,51 +1,53 @@
local options = { local options = {
ai = true, ai = true,
clipboard = "unnamedplus", -- use system clipboard clipboard = 'unnamedplus', -- use system clipboard
number = true, number = true,
relativenumber = true, relativenumber = true,
undofile = true, -- save state of file on write undofile = true, -- save state of file on write
undodir = vim.fn.stdpath("cache") .. "/undo", undodir = vim.fn.stdpath('cache') .. '/undo',
undolevels = 10000, undolevels = 10000,
signcolumn = "yes", signcolumn = 'yes',
cursorline = true, cursorline = true,
cursorlineopt = "number", cursorlineopt = 'number',
wrap = false, wrap = false,
scrolloff = 3, scrolloff = 3,
ruler = false, -- removes cursor position from lastline ruler = false, -- removes cursor position from lastline
pumheight = 10, -- size of completion window pumheight = 10, -- size of completion window
showmode = false, -- do not show mode under statusline showmode = false, -- do not show mode under statusline
swapfile = false, -- creates a swapfile swapfile = false, -- creates a swapfile
backup = false, -- creates a backup file backup = false, -- creates a backup file
writebackup = false, -- do not edit backups writebackup = false, -- do not edit backups
winminwidth = 5, -- Minimum window width winminwidth = 5, -- Minimum window width
showtabline = 0, -- always show tabs showtabline = 0, -- always show tabs
showcmd = false, showcmd = false,
confirm = true, -- Confirm to save changes before exiting modified buffer confirm = true, -- Confirm to save changes before exiting modified buffer
spell = true, -- enable spell check
spelllang = 'en_US',
-- tabs -- tabs
smarttab = true, smarttab = true,
tabstop = 4, -- 1 tab represented as 4 spaces tabstop = 4, -- 1 tab represented as 4 spaces
expandtab = true, -- <tab> key will create " " instead of "\t" expandtab = true, -- <tab> key will create " " instead of "\t"
shiftwidth = 4, -- indent change after backspace and >> << shiftwidth = 4, -- indent change after backspace and >> <<
softtabstop = 4, -- number of spaces instead of tab softtabstop = 4, -- number of spaces instead of tab
list = true, list = true,
listchars = { tab = "» ", trail = "·", nbsp = "␣" }, listchars = { tab = '» ', trail = '·', nbsp = '␣' },
showbreak = string.rep(" ", 3), showbreak = string.rep(' ', 3),
-- Search -- Search
ignorecase = true, ignorecase = true,
smartcase = true, smartcase = true,
wildmode = "longest:full,full", wildmode = 'longest:full,full',
wildoptions = "pum", wildoptions = 'pum',
-- Window -- Window
splitright = true, splitright = true,
splitbelow = true, splitbelow = true,
title = true, title = true,
} }
for k, v in pairs(options) do for k, v in pairs(options) do
vim.opt[k] = v vim.opt[k] = v
end end
vim.g.loaded_netrw = 1 vim.g.loaded_netrw = 1
@@ -56,7 +58,7 @@ vim.g.loaded_perl_provider = 0
vim.g.loaded_python3_provider = 0 vim.g.loaded_python3_provider = 0
vim.g.loaded_ruby_provider = 0 vim.g.loaded_ruby_provider = 0
vim.opt.path:append({ "**" }) vim.opt.path:append({ '**' })
vim.opt.shortmess:append({ W = true, I = true, c = true }) -- disable greeting vim.opt.shortmess:append({ W = true, I = true, c = true }) -- disable greeting
-- Fix markdown indentation settings -- Fix markdown indentation settings
@@ -65,20 +67,20 @@ vim.g.markdown_recommended_style = 0
vim.cmd([[set fillchars+=eob:\ ]]) vim.cmd([[set fillchars+=eob:\ ]])
vim.filetype.add({ vim.filetype.add({
extension = { extension = {
astro = "astro", astro = 'astro',
ejs = "ejs", ejs = 'ejs',
hbs = "hbs", hbs = 'hbs',
njk = "nunjucks", njk = 'nunjucks',
postcss = "postcss", postcss = 'postcss',
razor = "razor", razor = 'razor',
slim = "slim", slim = 'slim',
sugarss = "sugarss", sugarss = 'sugarss',
edge = "edge", edge = 'edge',
jade = "jade", jade = 'jade',
leaf = "leaf", leaf = 'leaf',
erb = "erb", erb = 'erb',
gohtml = "gohtml", gohtml = 'gohtml',
gohtmltmpl = "gohtmltmpl", gohtmltmpl = 'gohtmltmpl',
}, },
}) })