henry-hsieh / riscv-asm-vim

Advanced RISC-V assembly syntax highlight for Vim and Neovim.
MIT License
13 stars 0 forks source link

Add configuration for LazyNvim to readme #2

Closed TheSaltyLiquorice closed 6 months ago

TheSaltyLiquorice commented 6 months ago

Hi, thanks for your effort with this plugin!

It would be nice to also add LazyNvim to the readme for plugin management. I am using this for my neovim config.

return {
  {
    "henry-hsieh/riscv-asm-vim",
    ft = { "*.S", "*.s", "riscv_asm" },
    init = function()
      vim.g.riscv_asm_all_enable = true
    end,
  }
}
henry-hsieh commented 6 months ago

I haven't used lazy.nvim. According to this page, it seems that ft = {"riscv_asm"} is enough to detect the filetype if ftdetect exists, which already provided in this plugin. Could you remove "*.S" as well as "*.s", and try again?

Thanks!

TheSaltyLiquorice commented 6 months ago

I haven't used lazy.nvim. According to this page, it seems that ft = {"riscv_asm"} is enough to detect the filetype if ftdetect exists, which already provided in this plugin. Could you remove "*.S" as well as "*.s", and try again?

Thanks!

Just tried and *.S/s seems to be redundant as you said.

henry-hsieh commented 6 months ago

I updated the README. Thanks!