From dd384f2b53778d79d74492b37d01c827c92bae43 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 12 Aug 2024 13:18:37 -0500 Subject: [PATCH] Pin versions of local tools. --- .lvimrc | 24 ++++++++++++++++++++++++ .tool-versions | 1 + 2 files changed, 25 insertions(+) create mode 100644 .lvimrc diff --git a/.lvimrc b/.lvimrc new file mode 100644 index 0000000..6e9fdf8 --- /dev/null +++ b/.lvimrc @@ -0,0 +1,24 @@ +" The below configuration depends on global versions of some of these tools. +" All tooling can be installed with the following: +" +" asdf local nodejs latest +" npm install -g typescript prettier eslint vue-tsc +" +let g:ale_fixers = { + \ '*': ['remove_trailing_lines', 'trim_whitespace'], + \ 'javascript': ['eslint', 'prettier'], + \ 'typescript': ['prettier'], + \ 'vue': ['prettier'], + \} + +let g:ale_linters = { + \ 'markdown': [], + \ 'html': ['HTMLHint', 'proselint', 'write-good'], + \ 'rst': [], + \ 'typescript': ['typescript', 'eslint'], + \ 'javascript': ['eslint'], + \ 'vue': ['vuetsc', 'prettier'], + \} + +let g:ale_fix_on_save = 1 +"let g:ale_linters_explicit = 1 diff --git a/.tool-versions b/.tool-versions index bab318a..0fd4d22 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1,2 @@ opentofu 1.8.1 +nim 1.6.20