mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 07:28:12 +09:00
- Add LSP code actions, diagnostic navigation, window navigation keymaps - Move telescope keymaps to explicit mkRaw form for reliability - Change buffer nav from <leader>bh/bl to [b/]b - Fix conform double-setup by moving config to native nixvim settings - Fix <leader>cf to use conform instead of vim.lsp.buf.format - Fix <leader>ca to pass diagnostic context to code_action - Add nvim-lightbulb for code action indicator - Configure copilot Tab conflict: blink-cmp Tab=accept, C-n/p for cycling - Add completion.list.selection preselect for immediate Tab acceptance - Add TypeScript Japanese locale for LSP diagnostics Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
25 lines
948 B
Nix
25 lines
948 B
Nix
{...}: {
|
|
programs.nixvim.plugins."conform-nvim" = {
|
|
enable = true;
|
|
settings = {
|
|
formatters_by_ft = {
|
|
javascript.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
javascriptreact.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
typescript.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
typescriptreact.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
json.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
yaml.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
markdown.__raw = ''{ "prettierd", "prettier", stop_after_first = true }'';
|
|
lua = ["stylua"];
|
|
nix = ["alejandra"];
|
|
sh = ["shfmt"];
|
|
};
|
|
format_on_save.__raw = ''
|
|
function(_)
|
|
return { timeout_ms = 1000, lsp_format = "fallback" }
|
|
end
|
|
'';
|
|
};
|
|
};
|
|
}
|