summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2025-11-22 10:31:17 -0600
committerBrad Clawsie <brad@b7j0c.org>2025-11-22 10:31:17 -0600
commit25f88d7e4e19925229bb1749f1ad4b514b9b50bf (patch)
tree964597ed18c2ad706135b1fb30843fd813dcd11d
parent64b9a9380a91c6729f5cc97185b7780d3553249a (diff)
rm gopls config, reintro helix conf
-rw-r--r--helix/config.toml23
-rw-r--r--helix/languages.toml11
-rw-r--r--helix/themes/brad.toml137
-rw-r--r--nvim/init.lua17
4 files changed, 171 insertions, 17 deletions
diff --git a/helix/config.toml b/helix/config.toml
new file mode 100644
index 0000000..26caa02
--- /dev/null
+++ b/helix/config.toml
@@ -0,0 +1,23 @@
+theme = "brad"
+
+[editor]
+shell = ["fish", "-c"]
+auto-save = true
+gutters = ["diagnostics", "diff"]
+
+[editor.file-picker]
+hidden = false
+
+[editor.soft-wrap]
+enable = true
+
+[keys.normal]
+0 = "goto_line_start"
+"$" = "goto_line_end"
+G = "goto_file_end"
+C-s = ":w"
+
+[keys.select]
+0 = "goto_line_start"
+"$" = "goto_line_end"
+G = "goto_file_end"
diff --git a/helix/languages.toml b/helix/languages.toml
new file mode 100644
index 0000000..2a4e689
--- /dev/null
+++ b/helix/languages.toml
@@ -0,0 +1,11 @@
+[language-server.gopls]
+command = "gopls"
+config = { "gofumpt" = true, "local" = "goimports", "semanticTokens" = true, "staticcheck" = true, "verboseOutput" = true, "analyses" = { "fieldalignment" = true, "nilness" = true, unusedparams = true, unusedwrite = true, useany = true }, usePlaceholders = true, completeUnimported = true, hints = { "assignVariableType" = true, "compositeLiteralFields" = true, "compositeLiteralTypes" = true, "constantValues" = true, "functionTypeParameters" = true, "parameterNames" = true, "rangeVariableTypes" = true } }
+
+[[language]]
+name = "go"
+roots = ["go.work", "go.mod"]
+auto-format = true
+comment-token = "//"
+language-servers = [ "gopls"]
+
diff --git a/helix/themes/brad.toml b/helix/themes/brad.toml
new file mode 100644
index 0000000..1e008aa
--- /dev/null
+++ b/helix/themes/brad.toml
@@ -0,0 +1,137 @@
+"namespace" = { fg = "type" }
+"module" = { fg = "type" }
+
+"type" = { fg = "type" }
+"type.builtin" = { fg = "type" }
+"type.enum.variant" = { fg = "constant" }
+"constructor" = { fg = "type" }
+"variable.other.member" = { fg = "variable" }
+
+"keyword" = { fg = "blue2" }
+"keyword.directive" = { fg = "blue2" }
+"keyword.control" = { fg = "special" }
+"label" = { fg = "blue2" }
+"tag" = "blue2"
+
+"special" = { fg = "text" }
+"operator" = { fg = "text" }
+
+"punctuation" = { fg = "text" }
+"punctuation.delimiter" = { fg = "text" }
+
+"variable" = { fg = "variable" }
+"variable.parameter" = { fg = "variable" }
+"variable.builtin" = { fg = "blue2" }
+"constant" = { fg = "constant" }
+"constant.builtin" = { fg = "blue2" }
+
+"function" = { fg = "fn_declaration" }
+"function.builtin" = { fg = "fn_declaration" }
+"function.macro" = { fg = "blue2" }
+"attribute" = { fg = "fn_declaration" }
+
+"comment" = { fg = "dark_green" }
+
+"string" = { fg = "orange" }
+"constant.character" = { fg = "orange" }
+"string.regexp" = { fg = "gold" }
+"constant.numeric" = { fg = "pale_green" }
+"constant.character.escape" = { fg = "gold" }
+
+"markup.heading" = { fg = "blue2", modifiers = ["bold"] }
+"markup.list" = "blue3"
+"markup.bold" = { fg = "blue2", modifiers = ["bold"] }
+"markup.italic" = { modifiers = ["italic"] }
+"markup.strikethrough" = { modifiers = ["crossed_out"] }
+"markup.link.url" = { modifiers = ["underlined"] }
+"markup.link.text" = "orange"
+"markup.quote" = "dark_green"
+"markup.raw" = "orange"
+
+"diff.plus" = { fg = "dark_green2" }
+"diff.delta" = { fg = "blue4" }
+"diff.minus" = { fg = "orange_red" }
+
+"ui.background" = { fg = "light_gray", bg = "black" }
+
+"ui.window" = { bg = "widget" }
+"ui.popup" = { fg = "text", bg = "widget" }
+"ui.help" = { fg = "text", bg = "widget" }
+"ui.menu" = { fg = "text", bg = "widget" }
+"ui.menu.selected" = { bg = "dark_blue2" }
+
+# TODO: Alternate bg colour for `ui.cursor.match` and `ui.selection`.
+"ui.cursor" = { fg = "cursor", modifiers = ["reversed"] }
+"ui.cursor.primary" = { fg = "cursor", modifiers = ["reversed"] }
+"ui.cursor.match" = { bg = "#3a3d41", modifiers = ["underlined"] }
+
+"ui.selection" = { bg = "#3a3d41" }
+"ui.selection.primary" = { bg = "dark_blue" }
+
+"ui.linenr" = { fg = "dark_gray" }
+"ui.linenr.selected" = { fg = "light_gray2" }
+
+"ui.cursorline.primary" = { bg = "dark_gray3" }
+"ui.statusline" = { fg = "white", bg = "blue" }
+"ui.statusline.inactive" = { fg = "white", bg = "blue" }
+"ui.statusline.insert" = { fg = "white", bg = "yellow" }
+"ui.statusline.select" = { fg = "white", bg = "magenta" }
+
+"ui.bufferline" = { fg = "text", bg = "widget" }
+"ui.bufferline.active" = { fg = "white", bg = "blue" }
+"ui.bufferline.background" = { bg = "background" }
+
+"ui.text" = { fg = "text" }
+"ui.text.focus" = { fg = "white" }
+
+"ui.virtual.whitespace" = { fg = "dark_gray" }
+"ui.virtual.ruler" = { bg = "borders" }
+"ui.virtual.indent-guide" = { fg = "dark_gray4" }
+"ui.virtual.inlay-hint" = { fg = "white", bg = "#444444" }
+
+"warning" = { fg = "gold2" }
+"error" = { fg = "red" }
+"info" = { fg = "light_blue" }
+"hint" = { fg = "light_gray3" }
+
+"diagnostic.error".underline = { color = "red", style = "curl" }
+"diagnostic".underline = { color = "gold", style = "curl" }
+
+[palette]
+white = "#ffffff"
+orange = "#ce9178"
+gold = "#d7ba7d"
+gold2 = "#cca700"
+pale_green = "#b5cea8"
+dark_green = "#6A9955"
+dark_green2 = "#487e02"
+light_gray = "#d4d4d4"
+light_gray2 = "#c6c6c6"
+light_gray3 = "#eeeeee"
+dark_gray = "#858585"
+dark_gray2 = "#1e1e1e"
+dark_gray3 = "#282828"
+dark_gray4 = "#404040"
+black = "#000000"
+blue = "#007acc"
+blue2 = "#569CD6"
+blue3 = "#6796E6"
+blue4 = "#1b81a8"
+light_blue = "#75beff"
+dark_blue = "#264f78"
+dark_blue2 = "#094771"
+red = "#ff1212"
+orange_red = "#f14c4c"
+
+type = "#4EC9B0"
+special = "#C586C0"
+variable = "#9CDCFE"
+fn_declaration = "#DCDCAA"
+constant = "#4FC1FF"
+
+background = "#1e1e1e"
+text = "#d4d4d4"
+cursor = "#a6a6a6"
+widget = "#252526"
+borders = "#323232"
+
diff --git a/nvim/init.lua b/nvim/init.lua
index 7ed882c..6ca2091 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -153,20 +153,3 @@ vim.api.nvim_create_autocmd("LspAttach", {
vim.keymap.set("n", "<leader>e", vim.diagnostic.open_float, opts)
end,
})
-
-vim.lsp.config['gopls'] = {
- cmd = { "gopls" },
- filetypes = { "go", "gomod", "gotmpl", "gowork" },
- root_dir = require('lspconfig.util').root_pattern("go.work", "go.mod", ".git"),
- settings = {
- gopls = {
- completeUnimported = true,
- usePlaceholders = true,
- analyses = {
- unusedparams = true,
- staticcheck = true,
- },
- },
- },
-}
-vim.lsp.enable('gopls')