ayamir / nvimdots

A well configured and structured Neovim.
BSD 3-Clause "New" or "Revised" License
2.83k stars 451 forks source link

maxlinelength for python format not work #1095

Closed lzyuz closed 6 months ago

lzyuz commented 6 months ago

Version confirmation

Following prerequisites

Neovim version

NVIM v0.9.4

Branch info

main (Default/Latest)

Minimal (user) folder structure required to reproduce the issue

none

Minimal config with steps on how to reproduce the issue

none

Expected behavior

properly format

Additional information

image hello, For personal reason I change python Lsp to jedi&ruff, ruff only for formatting. I guess the correct order of operations is creating ruff_lsp.lua in completion.server fold and return setup function in ruff_lsp.lua. but something seems wrong, the config did not send to lspconfig at all.I would be very grateful if anyone can help me solve the problem. (the config for ruff is right, copy from https://github.com/neovim/nvim-lspconfig/blob/f451052bd6804e9e5ccd0ac874d7df8d3d4c55b9/lua/lspconfig/server_configurations/ruff_lsp.lua#L28C1-L35C4 )

CharlesChiuGit commented 6 months ago

we already add ruff as a pylsp plugin, check https://github.com/ayamir/nvimdots/blob/main/lua/modules/configs/completion/servers/pylsp.lua

did u disable pylsp first? if not, i think their will be a conflict of ruff config.

our nvimdots will enroll all lsps defined in lua/modules/configs/completion/servers.

lzyuz commented 6 months ago

I uninstalled pylsp and remove pylsp.lua in lua/modules/configs/completetion/servers, but problem still exist. (I've switched to autopep8 and erverything is ok). image Thanks for your reply