We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For stylua, I failed to define autocmds like this:
Styluafmt = function() -- hardcoding formatting option for not needing a config file -- single quote and emptyspace are consisently readable independ of editor vim.api.nvim_command([[ if &modified let cursor_pos = getpos('.') :!stylua --indent-type Spaces --quote-style AutoPreferSingle % call setpos('.', cursor_pos) end ]]) end vim.api.nvim_exec([[ augroup TESTME autocmd! autocmd BufWritePre *.lua :lua Styluafmt() augroup END ]], false)
The github setup for stylua is quite simple: nvim-lua/plenary.nvim@6a51028 though I didnt check if this includes spaces/tabs formatting.
The text was updated successfully, but these errors were encountered:
Collecting my ideas while working on a thing:
lurocks install --local luacheck
luarocks install --local lanes
luarocks install --local luacov
cargo install stylua
luacheck .
lua -lluacov test/*
stylua --color always --check lua/ tests/
nvim --headless --noplugin -u tests/minimal.vim -c "PlenaryBustedDirectory tests/ {minimal_init = 'tests/minimal.vim'}"
nvim --headless --noplugin -u tests/minimal_init.lua -c "PlenaryBustedDirectory ../plenary.nvim/ {minimal_init = 'tests/minimal_init.lua'}"
Afaiu, minima_init.lua needs the rtp paths to the root files for neovim runtime to pick dependencies up (lua files are atomatically picked up).
-- vim.api.nvim_list_runtime_paths(), :h nvim_list_runtime_paths -- vim.opt.runtimepath:get(), :h vim.opt -- vim.opt.rtp:append()
TODO
I very much dislike a CI setup being different from the local one, so I'll add that one as well.
Sorry, something went wrong.
No branches or pull requests
For stylua, I failed to define autocmds like this:
The github setup for stylua is quite simple: nvim-lua/plenary.nvim@6a51028 though I didnt check if this includes spaces/tabs formatting.
The text was updated successfully, but these errors were encountered: