2025-03-29 22:00:41 +08:00
|
|
|
return {
|
|
|
|
|
{
|
|
|
|
|
"neovim/nvim-lspconfig",
|
|
|
|
|
opts = {
|
|
|
|
|
servers = {
|
|
|
|
|
cssls = {},
|
|
|
|
|
denols = { single_file_support = false },
|
|
|
|
|
vtsls = { single_file_support = false },
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
2025-03-30 16:27:30 +08:00
|
|
|
{
|
|
|
|
|
"hat0uma/csvview.nvim",
|
|
|
|
|
ft = "csv",
|
|
|
|
|
config = function()
|
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
|
pattern = "csv",
|
|
|
|
|
command = "CsvViewEnable",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
require("csvview").setup({
|
|
|
|
|
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" } },
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
},
|
2025-03-29 22:00:41 +08:00
|
|
|
}
|