11
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Tips: copilot.vimでmarkdownの補完もできるようにする

Posted at

この記事は何

僕はVimを使っているため、Copilotをcopilot.vimを用いて利用しています。
copilot.vimを用いてMarkdownの補完もしてもらおうと思っていたところ、

copilot: disabled for filetype=markdown by internal defaultというエラーが出てしまい補完をしてもらうことができませんでした。
この記事では、copilot.vimでmarkdownの補完もできるようにする方法をTipsとしてまとめます。

結論

vimの場合

この設定をvimrcなどに追加すればOKです

let g:copilot_filetypes = {'markdown': v:true}

neovimの場合

init.vim

let g:copilot_filetypes = {'markdown': v:true}

を追加するか、init.lua

vim.g.copilot_filetypes = {markdown = true}

を追加すればOKです。

Ref

11
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?