fix: Fixes for markdown autocomplete and tying to telekasten

This commit is contained in:
Finch 2025-09-24 16:36:51 -05:00
parent bfd4e62bfb
commit f64b30c964
3 changed files with 14 additions and 5 deletions

View File

@ -133,6 +133,12 @@ return {
on_attach = on_attach, on_attach = on_attach,
}) })
vim.lsp.config("marksman", {
capabilities = capabilities,
on_attach = on_attach,
filetypes = { 'md', 'markdown', 'telekasten' }
})
vim.lsp.config("*", { vim.lsp.config("*", {
capabilities = capabilities, capabilities = capabilities,
on_attach = on_attach, on_attach = on_attach,

View File

@ -1,14 +1,15 @@
return { return {
'meanderingprogrammer/render-markdown.nvim', 'meanderingprogrammer/render-markdown.nvim',
config = function () config = function ()
vim.treesitter.language.register('markdown', 'telekasten')
require('render-markdown').setup({ require('render-markdown').setup({
enabled = false, enabled = true,
-- render_modes = { 'n', 'c', 't' }, render_modes = { 'n', 'c', 't' },
max_file_size = 10.0, max_file_size = 10.0,
debounce = 100, debounce = 100,
file_types = { 'markdown', 'telekasten' }, file_types = {
'markdown',
'telekasten'
},
link = { link = {
enabled = true, enabled = true,
footnote = { footnote = {

View File

@ -44,5 +44,7 @@ return {
enable = true, enable = true,
} }
} }
vim.treesitter.language.register('markdown', 'telekasten')
end, end,
} }