Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: it is not working #1

Open
3 tasks done
wildduck2 opened this issue Oct 26, 2023 · 9 comments
Open
3 tasks done

bug: it is not working #1

wildduck2 opened this issue Oct 26, 2023 · 9 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@wildduck2
Copy link

Did you check docs and existing issues?

  • I have read all the plugin docs
  • I have searched the existing issues
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

.9

Operating system/version

linux dabian

Describe the bug

it is not working for me can you tell us who is works with packer.nvim

Steps To Reproduce

s

Expected Behavior

to

@wildduck2 wildduck2 added the bug Something isn't working label Oct 26, 2023
@VidocqH
Copy link
Owner

VidocqH commented Oct 26, 2023

try initialize with

require("auto-indent").setup({})

@serhez
Copy link

serhez commented Nov 30, 2023

Also not working for me in a Python file; I've tried initializing with setup.

@VidocqH VidocqH added the help wanted Extra attention is needed label Dec 13, 2023
@VidocqH
Copy link
Owner

VidocqH commented Dec 13, 2023

Also not working for me in a Python file; I've tried initializing with setup.

I have been using this plugin with FastAPI and Python over the past two weeks. It appears to work well on my end. I'm not certain what is causing the problem yet.

@wSedlacek
Copy link

vim.keymap.set("i", "<tab>", function()
if config.lightmode then
require("auto-indent").check_indent_light()
else
require("auto-indent").check_indent()
end

Could it be that something else is overriding the <tab>?
Maybe something like cmp?

In my Telescope keymaps I see this.
Screenshot 2023-12-13 at 18 26 52

@VidocqH VidocqH mentioned this issue Jan 10, 2024
3 tasks
@wildduck2
Copy link
Author

Also not working for me in a Python file; I've tried initializing with setup.

i have the solution in my thevimagen repo for nvim check how I did it it almost work yah with treesitter

@serhez
Copy link

serhez commented Feb 21, 2024

vim.keymap.set("i", "<tab>", function()
if config.lightmode then
require("auto-indent").check_indent_light()
else
require("auto-indent").check_indent()
end

Could it be that something else is overriding the <tab>? Maybe something like cmp?

In my Telescope keymaps I see this. Screenshot 2023-12-13 at 18 26 52

This is not the problem, as far as I can tell. I disabled my key-mappings for cmp and scanned my config for any other mapping of the key and this plugin still does not work with Python.

@wildduck2
Copy link
Author

wildduck2 commented Feb 22, 2024

Screenshot 2024-02-22 124434

    that is the right way I have got here with Treesitter put this in the config of the this plugin
    
    
    you can see the full config in my repo check it out 
    
   link [:](https://github.com/thecoder512/TheVimagen/blob/main/nvim/lua/configs/treesitter.lua)

@serhez
Copy link

serhez commented Feb 22, 2024

@thecoder512 I also have indent = { enable = true } in my treesitter config, still does not work unfortunately. Thanks for the suggestions though!

@wildduck2
Copy link
Author

@thecoder512 I also have indent = { enable = true } in my treesitter config, still does not work unfortunately. Thanks for the suggestions though!

it is working with me but in some cases not all the cases. It is approximately 90% of the cases but it works and that is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants