feat: personalize config
This commit is contained in:
parent
5aeddfdd5d
commit
b4fb4b6076
3 changed files with 54 additions and 9 deletions
|
|
@ -7,6 +7,11 @@ return {
|
|||
local lint = require 'lint'
|
||||
lint.linters_by_ft = {
|
||||
markdown = { 'markdownlint' },
|
||||
javascript = { 'eslint_d' },
|
||||
typescript = { 'eslint_d' },
|
||||
javascriptreact = { 'eslint_d' },
|
||||
typescriptreact = { 'eslint_d' },
|
||||
python = { 'pylint' },
|
||||
}
|
||||
|
||||
-- To allow other plugins to add linters to require('lint').linters_by_ft,
|
||||
|
|
|
|||
18
lua/kickstart/plugins/neotest.lua
Normal file
18
lua/kickstart/plugins/neotest.lua
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
return {
|
||||
'nvim-neotest/neotest',
|
||||
dependencies = { 'haydenmeade/neotest-jest' },
|
||||
config = function()
|
||||
require('neotest').setup {
|
||||
adapters = {
|
||||
require 'neotest-jest' {
|
||||
jestCommand = 'npm test --',
|
||||
jestConfigFile = 'custom.jest.config.ts',
|
||||
env = { CI = true },
|
||||
cwd = function()
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue