Skip to content

Commit

Permalink
[desktop] nvim: Add templ and go imports
Browse files Browse the repository at this point in the history
  • Loading branch information
billy4479 committed Feb 17, 2025
1 parent 5ef130c commit 78ae254
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion user/modules/applications/editor/nvim/plugins/format.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
-- https://github.com/stevearc/conform.nvim?tab=readme-ov-file#formatters
formatters_by_ft = {
lua = { "stylua" },
go = { "gofmt" },
go = { "goimports", "gofmt" },
nix = { "nixfmt", "injected" },
python = { "ruff" },
rust = { "rustfmt", lsp_format = "fallback" },
Expand All @@ -37,6 +37,7 @@
cpp = { "clang-format" },
-- zig = { "zigfmt" },
python = { "ruff_fix", "ruff_organize_imports", "ruff_format" },
templ = { "templ" },
},
formatters = { injected = { options = { ignore_errors = false } } },
Expand Down
1 change: 1 addition & 0 deletions user/modules/applications/editor/nvim/plugins/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
r_language_server = {},
zls = {},
clangd = {},
templ = {},
}
for server, config in pairs(servers) do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
tree-sitter-python
tree-sitter-rust
tree-sitter-svelte
tree-sitter-templ
tree-sitter-typescript
tree-sitter-yaml
tree-sitter-zig
Expand Down

0 comments on commit 78ae254

Please sign in to comment.