davidosomething / dotfiles

mac OS, Arch Linux, and Debian/Ubuntu + Neovim
https://github.com/davidosomething/dotfiles
332 stars 21 forks source link

nvim - auto-code-action #513

Closed davidosomething closed 4 months ago

davidosomething commented 1 year ago
{ { 2, {
      command = {
        arguments = { {
            ruleId = "no-undef",
            uri = "file:///home/davidosomething/.dotfiles/tests/js.js",
            version = 0
          } },
        command = "eslint.applyDisableLine",
        title = "Disable no-undef for this line"
      },
      kind = "quickfix",
      title = "Disable no-undef for this line"
    } }, { 2, {
      command = {
        arguments = { {
            ruleId = "no-undef",
            uri = "file:///home/davidosomething/.dotfiles/tests/js.js",
            version = 0
          } },
        command = "eslint.applyDisableFile",
        title = "Disable no-undef for the entire file"
      },
      kind = "quickfix",
      title = "Disable no-undef for the entire file"
    } }, { 2, {
      command = {
        arguments = { {
            ruleId = "no-undef",
            uri = "file:///home/davidosomething/.dotfiles/tests/js.js",
            version = 0
          } },
        command = "eslint.openRuleDoc",
        title = "Show documentation for no-undef"
      },
      kind = "quickfix",
      title = "Show documentation for no-undef"
    } }, { 4, {
      command = {
        arguments = { {
            documentChanges = { {
                edits = { {
                    newText = "",
                    range = {
                      ["end"] = {
                        character = 25,
                        line = 13
                      },
                      start = {
                        character = 0,
                        line = 8
                      }
                    }
                  } },
                textDocument = {
                  uri = "file:///home/davidosomething/.dotfiles/tests/js.js",
                  version = 0
                }
              } }
          } },
        command = "_typescript.applyWorkspaceEdit",
        title = "Remove unused declaration for: 'document'"
      },
      kind = "quickfix",
      title = "Remove unused declaration for: 'document'"
    } }, { 5, {
      arguments = {
        title = "Add missing imports"
      },
      command = "NULL_LS_CODE_ACTION",
      title = "Add missing imports"
    } }, { 5, {
      arguments = {
        title = "Fix all"
      },
      command = "NULL_LS_CODE_ACTION",
      title = "Fix all"
    } }, { 5, {
      arguments = {
        title = "Organize imports"
      },
      command = "NULL_LS_CODE_ACTION",
      title = "Organize imports"
    } }, { 5, {
      arguments = {
        title = "Remove unused"
      },
      command = "NULL_LS_CODE_ACTION",
      title = "Remove unused"
    } } }