Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

ryoppippi/bunsetsu-wb.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bunsetsu-wb.nvim

これはvim駅伝3/6の 記事 です

screen

Bunsetsu-wb.nvimはBunsetsu.vimw,e,bと自然に使うためのインテグレーションプラグインです。

必須条件

Configuration Exapmle

return {
  "ryoppippi/bunsetsu-wb.nvim",
  dependencies = {
    { "ryoppippi/bunsetsu.vim" },
    { "vim-denops/denops.vim" },
    { "yuki-yano/denops-lazy.nvim" },
    { "echasnovski/mini.ai", version = "*" },
    { "uga-rosa/utf8.nvim" }
  },
  keys = {
    { "w", function() require("bunsetsu_wb").w() end, { "n", "v" }},
    { "b", function() require("bunsetsu_wb").b() end, { "n", "v" }},
    -- { "e", function() require("bunsetsu_wb").e() end, { "n", "v" }},
  },
  init = function()
    require("mini.ai").setup({
      custom_textobjects = {
        ["w"] = function()
          local CWORD = require("bunsetsu_wb").getCWORD()
          local line = vim.fn.line(".")
          return { from = { line = line, col = CWORD.col }, to = { line = line, col = CWORD.colend } }
        end,
      },
    })
  end,
}

TODO

  • eが動かないので修正
  • Vimscript版の実装
  • テストの実装
  • ドキュメントの充実

License

MIT

Author

Ryotaro "Justin" Kimura (a.k.a. ryoppippi)

Releases

No releases published

Packages

No packages published