bookmarks.nvim icon indicating copy to clipboard operation
bookmarks.nvim copied to clipboard

I am getting this weird Error when ever I open the neovim

Open devallabharath opened this issue 9 months ago • 2 comments

Screenshot 2024-05-13 at 12 17 29 PM

someone help me!!!

devallabharath avatar May 13 '24 16:05 devallabharath

check this config:

save_file = vim.fn.expand "$HOME/.bookmarks", -- bookmarks save file path

tomasky avatar May 15 '24 09:05 tomasky

This is my config....

require('bookmarks').setup {
      sign_priority = 8,  --set bookmark sign priority to cover other sign
      save_file = vim.fn.expand "$HOME/.bookmarks", -- bookmarks save file path
      keywords =  {
        ["@t"] = " ",
        ["@m"] = " ",
        ["@i"] = " ", --☑️ mark annotation startswith @t ,signs this icon as `Todo`
        ["@w"] = " ", -- mark annotation startswith @w ,signs this icon as `Warn`
        ["@f"] = " ", --⛏ mark annotation startswith @f ,signs this icon as `Fix`
        ["@n"] = " ", -- mark annotation startswith @n ,signs this icon as `Note`
      },
      on_attach = function(bufnr)
        local bm = require "bookmarks"
        local map = v.keymap.set
        map("n","mm",bm.bookmark_toggle) -- add or remove bookmark at current line
        map("n","mi",bm.bookmark_ann) -- add or edit mark annotation at current line
        map("n","mc",bm.bookmark_clean) -- clean all marks in local buffer
        map("n","mn",bm.bookmark_next) -- jump to next mark in local buffer
        map("n","mp",bm.bookmark_prev) -- jump to previous mark in local buffer
        map("n","ml",":Telescope bookmarks list<cr>") -- show marked file list in quickfix window
        map("n","mx",bm.bookmark_clear_all) -- removes all bookmarks
      end
    }

devallabharath avatar May 15 '24 17:05 devallabharath

exec this:

ls -l $HOME/.bookmarks

Make sure that, .bookmarks is a file and not a directory

tomasky avatar May 16 '24 01:05 tomasky

Its working now...

Somehow the directory got created.

devallabharath avatar May 16 '24 04:05 devallabharath

Thank you so much

devallabharath avatar May 16 '24 04:05 devallabharath