diff --git a/.config/helix/external-snippets.toml b/.config/helix/external-snippets.toml new file mode 100644 index 00000000..8c41bfdc --- /dev/null +++ b/.config/helix/external-snippets.toml @@ -0,0 +1,18 @@ +[[sources]] +name = "friendly-snippets" +git = "https://github.com/rafamadriz/friendly-snippets.git" + +[[sources.paths]] +scope = ["python"] +path = "snippets/python/python.json" +[[sources.paths]] +scope = ["rust"] +path = "snippets/rust/rust.json" +[[sources.paths]] +scope = ["markdown"] +path = "snippets/markdown.json" +[[sources.paths]] +scope = ["go"] +path = "snippets/go.json" +[[sources.paths]] +path = "snippets/loremipsum.json" diff --git a/.config/helix/languages.toml b/.config/helix/languages.toml index 8202ea78..e365f4e9 100644 --- a/.config/helix/languages.toml +++ b/.config/helix/languages.toml @@ -235,7 +235,7 @@ source = { git = "https://github.com/ficcdaf/tree-sitter-mail", rev = "8e60f38ef [[language]] name = "python" -language-servers = ["basedpyright"] +language-servers = ["basedpyright", "scls"] auto-format = true # formatter = { command = "ruff", args = ["format", "-"] } formatter = { command = "ruff", args = ["format", "--line-length", "79", "-"] } @@ -259,10 +259,10 @@ auto-format = true formatter = { command = "goimports" } comment-token = "//" block-comment-tokens = { start = "/*", end = "*/" } -language-servers = ["gopls", "typos-lsp"] +language-servers = ["gopls", "typos-lsp", "scls"] # TODO: gopls needs utf-8 offsets? indent = { tab-width = 4, unit = "\t" } [[language]] name = "git-commit" -language-servers = [ "scls" ] +language-servers = ["scls"]