chore: added spell checker
This commit is contained in:
1 file changed
+25
-23
+25
-23
@@ -1,14 +1,14 @@
|
|||||||
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
|
||||||
@@ -21,6 +21,8 @@ local options = {
|
|||||||
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,
|
||||||
@@ -29,14 +31,14 @@ local options = {
|
|||||||
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,
|
||||||
@@ -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
|
||||||
@@ -66,19 +68,19 @@ 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',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user