You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched through the AstroNvim documentation
I have searched through the existing issues of this project
I have searched the existing issues of plugins related to this issue
I can replicate the bug with the minimal repro.lua provided below
Neovim version (nvim -v)
0.10.3
Operating system/version
Fedora 41
Terminal/GUI
alacritty
Describe the bug
When using nvim-java's code actions, for example to create a non existing method, the added method will use tabulators as indentation instead of the configured default or recognized indentation character (4 spaces in my case).
Steps to Reproduce
Install nvim-java via the community plugins, then open a java file and create a new method via code action.
Expected behavior
I would expect nvim-java to use the same indentation settings as neovim uses for example when I write the code by hand.
Screenshots
No response
Additional Context
No response
Minimal configuration
-- save as repro.lua-- run with nvim -u repro.lua-- DO NOT change the pathslocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "runtime", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) then-- stylua: ignorevim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
endvim.opt.rtp:prepend(vim.env.LAZYorlazypath)
-- install pluginslocalplugins= {
{ "AstroNvim/AstroNvim", import="astronvim.plugins" },
{ "AstroNvim/astrocommunity", import="astrocommunity.lsp.nvim-java" },
-- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
-- add anything else here (autocommands, vim.filetype, etc.)
The text was updated successfully, but these errors were encountered:
Checklist
repro.lua
provided belowNeovim version (nvim -v)
0.10.3
Operating system/version
Fedora 41
Terminal/GUI
alacritty
Describe the bug
When using nvim-java's code actions, for example to create a non existing method, the added method will use tabulators as indentation instead of the configured default or recognized indentation character (4 spaces in my case).
Steps to Reproduce
Install nvim-java via the community plugins, then open a java file and create a new method via code action.
Expected behavior
I would expect nvim-java to use the same indentation settings as neovim uses for example when I write the code by hand.
Screenshots
No response
Additional Context
No response
Minimal configuration
The text was updated successfully, but these errors were encountered: