sorting & markdown
This commit is contained in:
+11
-2
@@ -44,7 +44,16 @@ return {
|
||||
['<C-n>'] = cmp.mapping(cmp.mapping.select_next_item(), {'i', 'c'}),
|
||||
['<C-p>'] = cmp.mapping(cmp.mapping.select_prev_item(), {'i', 'c'}),
|
||||
['<CR>'] = cmp.mapping.confirm({ select = true }), -- accept currently selected item
|
||||
}
|
||||
},
|
||||
sorting = {
|
||||
comparators = {
|
||||
cmp.config.compare.offset,
|
||||
cmp.config.compare.exact,
|
||||
cmp.config.compare.score,
|
||||
cmp.config.compare.recently_used,
|
||||
cmp.config.compare.kind,
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
local capabilities = vim.lsp.protocol.make_client_capabilities()
|
||||
@@ -65,7 +74,7 @@ return {
|
||||
local configs = require("nvim-treesitter.configs")
|
||||
|
||||
configs.setup({
|
||||
ensure_installed = { "tsx", "typescript", "javascript", "html" },
|
||||
ensure_installed = { "tsx", "typescript", "javascript", "html", "markdown" },
|
||||
sync_install = false,
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
|
||||
Reference in New Issue
Block a user