From 3de31926260ab8c8169747805f6fd4770a784825 Mon Sep 17 00:00:00 2001 From: Ben Shiller Date: Tue, 28 Jan 2025 22:59:56 -0600 Subject: [PATCH] Initial commit --- config.toml | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++ languages.toml | 26 +++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 config.toml create mode 100644 languages.toml diff --git a/config.toml b/config.toml new file mode 100644 index 0000000..75334f5 --- /dev/null +++ b/config.toml @@ -0,0 +1,52 @@ +theme = "onedark" + +[editor] +true-color = true +mouse = false +text-width = 120 +#line-number = "relative" +end-of-line-diagnostics = "hint" + +[editor.inline-diagnostics] +cursor-line = "warning" # show warnings and errors on the cursorline inline + +[editor.cursor-shape] +insert = "bar" +#normal = "block" +#select = "underline" + +[editor.statusline] +left = ["mode", "file-modification-indicator", "file-name", "read-only-indicator", "version-control"] +center = [] +right = ["diagnostics", "selections", "position"] +#separator = "│" +mode.normal = "NORMAL" +mode.insert = "INSERT" +mode.select = "SELECT" + +[editor.whitespace.render] +space = "none" +tab = "all" +nbsp = "all" +nnbsp = "all" +newline = "none" + +[editor.whitespace.characters] +space = "·" +nbsp = "⍽" +nnbsp = "␣" +tab = "→" +newline = "⏎" +#tabpad = "·" # Tabs will look like "→···" (depending on tab width) + +[editor.indent-guides] +render = true +character = "┆" # Some characters that work well: "▏", "╎", "┆", "┊", "⸽" +skip-levels = 1 + +[editor.soft-wrap] +enable = true +wrap-indicator = "" # set wrap-indicator to "" to hide it +#max-wrap = 25 # increase value to reduce forced mid-word wrapping +#max-indent-retain = 0 + diff --git a/languages.toml b/languages.toml new file mode 100644 index 0000000..fcd18fe --- /dev/null +++ b/languages.toml @@ -0,0 +1,26 @@ +[python] +name = "python" +file-types = ["py"] +comment-tokens = "#" +indent = { tab-width = 4, unit = " "} +language-servers = ["pylsp", "python-ruff"] +roots = ["setup.py", "pyproject.toml"] + +[pylsp] +command = "pylsp" + +[python-ruff] +command = "ruff" +args = ["server"] + + +[go] +name = "go" +file-types = ["go"] +comment-tokens = "//" +indent = { tab-width = 4, unit = "\t"} +language-servers = ["gopls"] +roots = ["go.mod"] + +[gopls] +command = "gopls"