How to use .avanterules #1533
Replies: 5 comments
-
|
I would also like to get a better idea of how to make use of avante rules. I would like to do things like this: |
Beta Was this translation helpful? Give feedback.
-
|
I’m curious too. I want to tell the AI what I like and don’t like. For example, I don’t use Tailwind in React, but code suggestions often include it. I’d rather specify which framework we use instead or say “don’t use useEffect,” and so on. |
Beta Was this translation helpful? Give feedback.
-
|
I've configured a global rules directory and placed a file I'm guessing, without digging further into the code, that there's some caching going on as well so that prompts aren't re-compiled every time, as well? At any rate, just as with everyone else here, some clarity around rules usage would be helpful |
Beta Was this translation helpful? Give feedback.
-
|
OK, so the current README is incorrect. With some good ol print debugging, the problem is that the global rules path I pass to Avante configuration fails the |
Beta Was this translation helpful? Give feedback.
-
|
Great, passing the path string in my Lua config to require('avante').setup({
rules = {
project_dir = '.avante/rules', -- relative to project root, can also be an absolute path
global_dir = vim.fn.expand('~/.config/avante/rules'), -- absolute path
},
})in order |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What an amazing plugin. Thank you so much for this.
I'm fascinated by .avanterules, I'm guessing that these are a way to direct the system to obey certain rules. But I'm not sure how to get started with them. I tried adding one that told it to say the word "flamingo" during a chat as a sort of "hello world", but there was no effect.
Beta Was this translation helpful? Give feedback.
All reactions