spell checking
This commit is contained in:
parent
93434a8105
commit
f2e47684bc
4 changed files with 19 additions and 12 deletions
10
en.utf-8.add
Normal file
10
en.utf-8.add
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
config
|
||||||
|
nvim
|
||||||
|
lua
|
||||||
|
utf
|
||||||
|
autocmd
|
||||||
|
set
|
||||||
|
spellfile
|
||||||
|
lodash
|
||||||
|
metadataSemver
|
||||||
|
util
|
BIN
en.utf-8.add.spl
Normal file
BIN
en.utf-8.add.spl
Normal file
Binary file not shown.
11
init.lua
11
init.lua
|
@ -1,9 +1,16 @@
|
||||||
vim.cmd([[
|
vim.cmd [[
|
||||||
augroup FileType_http
|
augroup FileType_http
|
||||||
au!
|
au!
|
||||||
au BufNewFile,BufRead *.http setfiletype http
|
au BufNewFile,BufRead *.http setfiletype http
|
||||||
augroup END
|
augroup END
|
||||||
]])
|
|
||||||
|
autocmd BufRead,BufNewFile *.ts,*.tsx,*.py,*.js,*.jsx,*.css,*.scss,*.rs,*.lua,*.html setlocal spell spelllang=en_us wrap
|
||||||
|
|
||||||
|
" autocmd BufRead,BufNewFile * setlocal spell spelllang=en_us wrap
|
||||||
|
|
||||||
|
set spellfile=~/.config/nvim/lua/user/en.utf-8.add
|
||||||
|
|
||||||
|
]]
|
||||||
|
|
||||||
return {
|
return {
|
||||||
colorscheme = "material",
|
colorscheme = "material",
|
||||||
|
|
10
opt.lua
10
opt.lua
|
@ -1,13 +1,3 @@
|
||||||
return {
|
return {
|
||||||
-- shell = "zsh -l", -- sets vim.opt.shell,
|
-- shell = "zsh -l", -- sets vim.opt.shell,
|
||||||
-- completeopt = { "menuone", "noselect", "noinsert" },
|
|
||||||
-- shortmess = vim.opt.shortmess + { c = true },
|
|
||||||
-- function()
|
|
||||||
-- vim.api.nvim_set_option("updatetime", 300)
|
|
||||||
|
|
||||||
-- vim.cmd [[
|
|
||||||
-- set signcolumn=yes
|
|
||||||
-- autocmd CursorHold * lua vim.diagnostic.open_float(nil, { focusable = false })
|
|
||||||
-- ]]
|
|
||||||
-- end,
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue