all repos

init.lua @ 6ad9f0d

my nvim config

init.lua/lsp/markdown_oxide.lua(view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local u = require("core.utils").lsp

---@return vim.lsp.Config
return {
  cmd = { "markdown-oxide" },
  filetypes = { "markdown" },
  root_markers = { ".moxide.toml", ".obsidian" },
  capabilities = u.capabilities {
    workspace = {
      didChangeWatchedFiles = {
        dynamicRegistration = true,
      },
    },
  },
  on_attach = function(_, bufnr)
    u.command(bufnr, "LspToday", { command = "jump", arguments = { "today" } })
    u.command(bufnr, "LspLastSunday", {
      command = "jump",
      arguments = { "last sunday" },
    })
  end,
}