Skip to content

Commit

Permalink
[vim] Configure typos with EFM
Browse files Browse the repository at this point in the history
  • Loading branch information
rouge8 committed Dec 19, 2024
1 parent cd07d1c commit 9cecc98
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .config/efm-langserver/config.yaml.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ tools:
lint-stdin: true
lint-ignore-exit-code: true

typos: &typos
lint-command: typos --format brief -- ${INPUT}
lint-stdin: false

languages:
fish:
- <<: *fish-indent
Expand All @@ -63,3 +67,5 @@ languages:
- <<: *vint
yaml:
- <<: *yamllint
=:
- <<: *typos
3 changes: 0 additions & 3 deletions .config/nvim.symlink/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -256,9 +256,6 @@ augroup colorcolumn
au BufEnter * call ColorColumn()
augroup END

" Spelling
set spell

" Treat underscore as word delimiter
set iskeyword-=_

Expand Down
2 changes: 1 addition & 1 deletion .config/nvim.symlink/lua/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ nvim_lsp.terraformls.setup({
-- EFM
nvim_lsp.efm.setup({
init_options = { documentFormatting = true },
filetypes = { "python", "vim", "yaml", "htmldjango", "fish", "lua", "go" },
filetypes = vim.fn.getcompletion("", "filetype"),
on_attach = on_attach,
})

Expand Down
2 changes: 2 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ brew "tox"
brew "tree"
# Text manipulation and cutting tool
brew "tuc"
# Source code spell checker
brew "typos-cli"
# Vim script Language Lint
brew "vint"
# Python virtual environment manager for the fish shell
Expand Down

0 comments on commit 9cecc98

Please sign in to comment.