Copilot: Disabled for filetype=help by internal default #38074
-
I would like to set markdown to be enabled by default, however I'm new to neovim and I dont know where exactly I should set that global dictionary mapping
Where do I set this in the
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 8 replies
-
I'm not sure if I write out this global mapping inside the options |
Beta Was this translation helpful? Give feedback.
-
I believe the configuration should be placed into Also, on your 2nd screenshot it says |
Beta Was this translation helpful? Give feedback.
-
It goes in your vimrc, generally let g:copilot_filetypes = {'markdown': v:true} If you're using a pure Lua config like vim.g.copilot_filetypes = {markdown = true} |
Beta Was this translation helpful? Give feedback.
-
doesn't work for me unfortunately still get the same error |
Beta Was this translation helpful? Give feedback.
-
The people have spoken. The file types |
Beta Was this translation helpful? Give feedback.
-
What if the configuration is needed on a per project basis? Does Copilot recognize these settings placed inside of a |
Beta Was this translation helpful? Give feedback.
-
If you are using astronvim with copilot-cmp , try create a return {
"zbirenbaum/copilot.lua",
opts = {
filetypes = {
markdown = true, -- Explicitly enable markdown
},
},
} |
Beta Was this translation helpful? Give feedback.
It goes in your vimrc, generally
~/.config/nvim/init.vim
as @maxxxxxdlp notes. Try this:If you're using a pure Lua config like
~/.config/nvim/init.lua
, you can use a Lua variant: