some markdown enhancements
This commit is contained in:
parent
87858ea0de
commit
68562ea1be
@ -1 +1 @@
|
|||||||
vim.opt_local.conceallevel = 3
|
vim.opt_local.conceallevel = 2
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
return {
|
return {
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
branch = 'main',
|
branch = 'main',
|
||||||
event = {'InsertEnter', 'CmdlineEnter'},
|
event = { 'InsertEnter', 'CmdlineEnter' },
|
||||||
dependencies = {
|
dependencies = {
|
||||||
{ 'onsails/lspkind-nvim' },
|
{ 'onsails/lspkind-nvim' },
|
||||||
{ 'hrsh7th/cmp-buffer' },
|
{ 'hrsh7th/cmp-buffer' },
|
||||||
@ -91,7 +91,14 @@ return {
|
|||||||
sources = {
|
sources = {
|
||||||
{ name = 'neorg', priority = 8 },
|
{ name = 'neorg', priority = 8 },
|
||||||
{ name = 'luasnip', priority = 8 },
|
{ name = 'luasnip', priority = 8 },
|
||||||
{ name = 'nvim_lsp', priority = 7 },
|
{
|
||||||
|
name = 'nvim_lsp',
|
||||||
|
option = {
|
||||||
|
markdown_oxide = {
|
||||||
|
keyword_pattern = [[\(\k\| \|\/\|#\)\+]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{ name = 'nvim_lsp_signature_help', priority = 7 },
|
{ name = 'nvim_lsp_signature_help', priority = 7 },
|
||||||
-- { name = 'treesitter', priority = 6 },
|
-- { name = 'treesitter', priority = 6 },
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,12 @@ return {
|
|||||||
})
|
})
|
||||||
local lspconfig = require('lspconfig')
|
local lspconfig = require('lspconfig')
|
||||||
|
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())
|
||||||
|
capabilities.workspace = {
|
||||||
|
didChangeWatchedFiles = {
|
||||||
|
dynamicRegistration = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
local diagnostics = {
|
local diagnostics = {
|
||||||
Error = ' ',
|
Error = ' ',
|
||||||
@ -295,10 +300,10 @@ return {
|
|||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
}
|
}
|
||||||
|
|
||||||
lspconfig['marksman'].setup {
|
-- lspconfig['marksman'].setup {
|
||||||
capabilities = capabilities,
|
-- capabilities = capabilities,
|
||||||
on_attach = on_attach,
|
-- on_attach = on_attach,
|
||||||
}
|
-- }
|
||||||
|
|
||||||
lspconfig['yamlls'].setup {
|
lspconfig['yamlls'].setup {
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user