This commit is contained in:
2023-12-22 16:46:23 +01:00
7 changed files with 54 additions and 14 deletions

View File

@ -7,3 +7,4 @@ local opt = vim.opt
opt.scrolloff = 999
vim.diagnostic.config({ virtual_text = false })
opt.title = true
opt.conceallevel = 0

View File

@ -1,6 +1,7 @@
return {
"nvim-lspconfig",
opts = {
inlay_hints = { enabled = true },
diagnostics = {
virtual_text = false,
},

View File

@ -0,0 +1,10 @@
return {
"RRethy/vim-illuminate",
opts = {
delay = 200,
large_file_cutoff = 5000,
large_file_overrides = {
providers = { "lsp" },
},
},
}

View File

@ -0,0 +1,26 @@
return {
{ "nvim-neotest/neotest-jest" },
{
"nvim-neotest/neotest",
opts = function(_, opts)
table.insert(
opts.adapters,
require("neotest-jest")({
jestCommand = "npm test --",
jestConfig = "jest.config.js",
env = { CI = true },
cwd = function()
return vim.fn.getcwd()
end,
})
)
end,
keys = {
{
"<leader>tw",
"<cmd>lua require('neotest').run.run({ jestCommand = 'jest --watch ' })<cr>",
desc = "Jest Watch",
},
},
},
}

View File

@ -0,0 +1,14 @@
return {
"echasnovski/mini.surround",
opts = {
mappings = {
add = "gsa", -- Add surrounding in Normal and Visual modes
delete = "gsd", -- Delete surrounding
find = "gsf", -- Find surrounding (to the right)
find_left = "gsF", -- Find surrounding (to the left)
highlight = "gsh", -- Highlight surrounding
replace = "gsr", -- Replace surrounding
update_n_lines = "gsn", -- Update `n_lines`
},
},
}