Skip to content
Discussion options

You must be logged in to vote

Ok so I figured out, here is my config for oxlint :

{
  cmd = { 'oxlint', '--lsp' },
  filetypes = {
    'javascript',
    'javascriptreact',
    'javascript.jsx',
    'typescript',
    'typescriptreact',
    'typescript.tsx',
  },
  workspace_required = true,
  on_attach = function(client, bufnr)
    vim.api.nvim_buf_create_user_command(bufnr, 'LspOxlintFixAll', function()
      client:exec_cmd({
        title = 'Apply Oxlint automatic fixes',
        command = 'oxc.fixAll',
        arguments = { { uri = vim.uri_from_bufnr(bufnr) } },
      })
    end, {
      desc = 'Apply Oxlint automatic fixes',
    })
  end,
  root_dir = function(bufnr, on_dir)
    local fname = vim.api.nvim_buf_get_…

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@typedrifter
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Sysix
Comment options

Sysix Dec 5, 2025
Collaborator

@Sysix
Comment options

Sysix Dec 5, 2025
Collaborator

@typedrifter
Comment options

@Sysix
Comment options

Sysix Dec 8, 2025
Collaborator

@typedrifter
Comment options

Comment options

You must be logged in to vote
3 replies
@typedrifter
Comment options

@typedrifter
Comment options

@nianiam
Comment options

Answer selected by typedrifter
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants