Skip to content

Installation and Configuration

Subhaditya Nath edited this page Jan 23, 2024 · 2 revisions

Here are the installation instructions (and configuration examples) for package managers other than the ones shown in the README.md

Contributions are welcome!

lua/plugins/nvim-ghost.lua

{
  "subnut/nvim-ghost.nvim",
  name = "nvim_ghost",
  config = function()
    vim.api.nvim_create_autocmd('User', {
      group = "nvim_ghost_user_autocommands",
      pattern = "*reddit.com",
      command = 'setfiletype markdown'
    })
  end
  keys = {
    { "<leader>ug", ":GhostTextStart<cr>", desc = "GhostTextStart", silent = true },
  },
}

lua/config/options.lua

g.nvim_ghost_autostart = 0 -- with this set to 0 an error will happen with the autocommand being setup.
Clone this wiki locally