chore: upgrades & fix ts/deno & fix csv view

This commit is contained in:
胡鑫
2025-03-03 11:29:44 +08:00
parent dcacd05054
commit 8f3bfa6fe8
3 changed files with 26 additions and 13 deletions
+15 -3
View File
@@ -187,8 +187,20 @@ return {
}
}, {
'hat0uma/csvview.nvim',
config = function()
require('csvview').setup()
end
opts = {
parser = {comments = {"#", "//"}},keymaps = {
-- Text objects for selecting fields
textobject_field_inner = { "if", mode = { "o", "x" } },
textobject_field_outer = { "af", mode = { "o", "x" } },
-- Excel-like navigation:
-- Use <Tab> and <S-Tab> to move horizontally between fields.
-- Use <Enter> and <S-Enter> to move vertically between rows and place the cursor at the end of the field.
-- Note: In terminals, you may need to enable CSI-u mode to use <S-Tab> and <S-Enter>.
jump_next_field_end = { "<Tab>", mode = { "n", "v" } },
jump_prev_field_end = { "<S-Tab>", mode = { "n", "v" } },
jump_next_row = { "<Enter>", mode = { "n", "v" } },
jump_prev_row = { "<S-Enter>", mode = { "n", "v" } },
},
}
}
}
+2 -1
View File
@@ -9,6 +9,7 @@ return {
settings = {
complete_function_calls = true,
},
root_dir = lspconfig.util.root_pattern("package.json"),
single_file_support = false,
})
@@ -88,7 +89,7 @@ return {
}
lspconfig.denols.setup{
single_file_support = false,
root_dir = require('lspconfig.util').root_pattern("deno.json", "deno.jsonc")
root_dir = lspconfig.util.root_pattern("deno.json", "deno.jsonc")
}
lspconfig.marksman.setup{
capabilities = capabilities