From eb9436a6f996245d30826a0123758dabfedbec61 Mon Sep 17 00:00:00 2001 From: ralvescosta Date: Wed, 2 Apr 2025 18:56:45 -0300 Subject: [PATCH] feat: cspell --- lua/kickstart/plugins/lint.lua | 31 ------------------------------- spell/cspell.json | 22 ++++++++++++++++++++++ spell/en.utf-8.add | 6 ++---- spell/en.utf-8.add.spl | Bin 3168 -> 3189 bytes 4 files changed, 24 insertions(+), 35 deletions(-) create mode 100644 spell/cspell.json diff --git a/lua/kickstart/plugins/lint.lua b/lua/kickstart/plugins/lint.lua index 0141bf95..824c082e 100644 --- a/lua/kickstart/plugins/lint.lua +++ b/lua/kickstart/plugins/lint.lua @@ -21,38 +21,7 @@ return { text = { 'cspell' }, } - -- To allow other plugins to add linters to require('lint').linters_by_ft, - -- instead set linters_by_ft like this: - -- lint.linters_by_ft = lint.linters_by_ft or {} - -- lint.linters_by_ft['markdown'] = { 'markdownlint' } -- - -- However, note that this will enable a set of default linters, - -- which will cause errors unless these tools are available: - -- { - -- clojure = { "clj-kondo" }, - -- dockerfile = { "hadolint" }, - -- inko = { "inko" }, - -- janet = { "janet" }, - -- json = { "jsonlint" }, - -- markdown = { "vale" }, - -- rst = { "vale" }, - -- ruby = { "ruby" }, - -- terraform = { "tflint" }, - -- text = { "vale" } - -- } - -- - -- You can disable the default linters by setting their filetypes to nil: - -- lint.linters_by_ft['clojure'] = nil - -- lint.linters_by_ft['dockerfile'] = nil - -- lint.linters_by_ft['inko'] = nil - -- lint.linters_by_ft['janet'] = nil - -- lint.linters_by_ft['json'] = nil - -- lint.linters_by_ft['markdown'] = nil - -- lint.linters_by_ft['rst'] = nil - -- lint.linters_by_ft['ruby'] = nil - -- lint.linters_by_ft['terraform'] = nil - -- lint.linters_by_ft['text'] = nil - -- Create autocommand which carries out the actual linting -- on the specified events. local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true }) diff --git a/spell/cspell.json b/spell/cspell.json new file mode 100644 index 00000000..5b73497a --- /dev/null +++ b/spell/cspell.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", + "version": "0.2", + "language": "en", + "globRoot": ".", + "dictionaryDefinitions": [ + { + "name": "ralvescosta", + "path": "~/.config/nvim/spell/en.utf-8.add", + "addWords": true + } + ], + "dictionaries": ["ralvescosta"], + "ignorePaths": [ + "node_modules", + "dist", + "build", + "cspell-tool.txt", + "target", + "public" + ] +} diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 34e09baa..9fb10959 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -236,18 +236,16 @@ cybersourcesdk CybersourceSDK Cybersource logrus -logrus http iso cybersource_sdk ecommerce cybersourcesdk rabbitmq -rabbitmq -rabbitmq -cfgs cfgs rabbitmq new_amqp_channel AMQP_HEADERS_MAX_LENGTH_BYTES AMQP +nvim +mfussenegger diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index b78c893d4da32322c387773a308214ebdee7c271..0dd6249d5a32e85ae7889824c3e19ed3fb7cd158 100644 GIT binary patch delta 131 zcmaDL@l}E^%+t5HAT=k)=syDk`=O0|wX7T*iHr;kdMRm>C$YwfFqSeF17Rv-9uTK9 z0%caGZ~nkq&&YUra{>DnM#cq`RXJN2>nE?`v}D{h`3dJ1HP0NT)Lh1L#$3jH#uSi_ c=c!DL3@nLBV9xt|resD2_L-aaaV=s500-zLj{pDw delta 92 zcmV-i0Hgo)7~mKVR!L2BaAj<4GXDSo2eGjZeFX;xVF3UDE@YFF1zxiS27dto!n1`3 yv;hH+lR6260dAAO2{{3&llcj>0Z5as3KkDgVq^gU008fA0%HLH2Z*!N3ZemGejNb-