pocco81 / high-str.nvim

🦎 A NeoVim plugin for highlighting visual selections like in a normal document editor!
GNU General Public License v3.0
306 stars 2 forks source link

Defected imported selections #6

Closed roland-5 closed 3 years ago

roland-5 commented 3 years ago

Hi,

If I export selected lines/words, close file and reopen it and import color selections, it's not complete, and I don't sure if it problem with my configuration, or doing some wrong.

-- HighStr.nvim -------------------------------------------------------------------------------------------------------------------------------------------
local high_str = require("high-str")

high_str.setup({
    verbosity = 0,
    saving_path = "/tmp/highstr/",
    highlight_colors = {
        -- color_id = {"bg_hex_code",<"fg_hex_code"/"smart">}
        color_0 = {"#0c0d0e", "smart"}, -- Cosmic charcoal
        color_1 = {"#e5c07b", "smart"}, -- Pastel yellow
        color_2 = {"#7FFFD4", "smart"}, -- Aqua menthe
        color_3 = {"#8A2BE2", "smart"}, -- Proton purple
        color_4 = {"#FF4500", "smart"}, -- Orange red
        color_5 = {"#008000", "smart"}, -- Office green
        color_6 = {"#0000FF", "smart"}, -- Just blue
        color_7 = {"#FFC0CB", "smart"}, -- Blush pink
        color_8 = {"#FFF9E3", "smart"}, -- Cosmic latte
        color_9 = {"#7d5c34", "smart"}, -- Fallow brown
    }
})
vim.api.nvim_set_keymap(
    "v",
    "<F3>",
    ":<c-u>HSHighlight 1<CR>",
    {
        noremap = true,
        silent = true
    }
)

vim.api.nvim_set_keymap(
    "v",
    "<F4>",
    ":<c-u>HSRmHighlight<CR>",
    {
        noremap = true,
        silent = true
    }
)

ps_20210816184107 ps_20210816184314

pocco81 commented 3 years ago

Nope, you're not doing anything wrong. I'll fix this ASAP :+1:

pocco81 commented 3 years ago

Should be working now :)

roland-5 commented 3 years ago

Thank you!