Skip to content

Commit

Permalink
documentation: add Kate setup
Browse files Browse the repository at this point in the history
  • Loading branch information
regit committed Jan 6, 2022
1 parent 1f50080 commit 30f5f5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,24 @@ The following configuration is known to work ::
},
},
}

Kate
----

You can use Suricata Language Server in Kate by activating the `LSP Client Plugin <https://docs.kde.org/stable5/en/kate/kate/kate-application-plugin-lspclient.html>`_.

.. image:: https://raw.githubusercontent.com/StamusNetworks/suricata-language-server/main/images/kate-sample.png

Once activated, you can go to ``Settings > Configure Kate > LSP Client`` then open the ``User Server Settings`` tab and add the configuration
for the Language Server Protocol ::

{
"servers": {
"suricata": {
"command": ["/path/to/suricata-language-server", "--suricata-binary=/path/to/suricata"],
"highlightingModeRegex": "^.*Suricata.*$"
}
}
}

The second option giving the path to suricata binary is only necessary if you have a binary in a custom location.
Binary file added images/kate-sample.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 30f5f5b

Please sign in to comment.