mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(nvim): Markdown handling improvements
- marksman: Trimmed config file: removed comments, remove default settings - fix: ftplugin for codelens: provide current buffer - new: Add obsidian.nvim plugin to replace markdown-oxide lsp
This commit is contained in:
@@ -11,7 +11,7 @@ local function check_codelens_support()
|
||||
end
|
||||
|
||||
vim.api.nvim_create_autocmd({ "TextChanged", "InsertLeave", "CursorHold", "LspAttach", "BufEnter" }, {
|
||||
buffer = bufnr,
|
||||
buffer = vim.api.nvim_get_current_buf(),
|
||||
callback = function()
|
||||
if check_codelens_support() then
|
||||
vim.lsp.codelens.refresh({ bufnr = 0 })
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
return {
|
||||
cmd = { "markdown-oxide" },
|
||||
filetypes = { "markdown" },
|
||||
root_dir = function()
|
||||
return vim.fn.getcwd()
|
||||
end,
|
||||
settings = {
|
||||
workspace = {
|
||||
didChangeWatchedFiles = {
|
||||
dynamicRegistration = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -69,6 +69,30 @@ return {
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"obsidian-nvim/obsidian.nvim",
|
||||
version = "*",
|
||||
enabled = true,
|
||||
opts = {
|
||||
workspaces = {
|
||||
{
|
||||
name = "personal",
|
||||
path = "~/Code/Notes",
|
||||
},
|
||||
},
|
||||
completions = {
|
||||
blink = true,
|
||||
nvim_cmp = false,
|
||||
},
|
||||
comment = { enabled = true },
|
||||
attachments = { img_folder = ".artifacts/img" },
|
||||
footer = { format = "{{backlinks}} backlinks" },
|
||||
legacy_commands = false,
|
||||
ui = { enable = false },
|
||||
frontmatter = { enabled = false },
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"bullets-vim/bullets.vim",
|
||||
ft = { "markdown", "text", "gitcommit", "scratch" },
|
||||
|
||||
Reference in New Issue
Block a user