mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 03:08:11 +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]>
48 lines
1.0 KiB
Nix
48 lines
1.0 KiB
Nix
{...}: {
|
|
programs.nixvim.plugins.blink-cmp = {
|
|
enable = true;
|
|
setupLspCapabilities = true;
|
|
|
|
settings = {
|
|
keymap = {
|
|
preset = "enter";
|
|
|
|
"<C-Space>" = ["show"];
|
|
"<C-d>" = ["scroll_documentation_up"];
|
|
"<C-e>" = ["hide"];
|
|
"<C-f>" = ["scroll_documentation_down"];
|
|
|
|
"<Tab>" = [
|
|
"accept"
|
|
{
|
|
__raw = ''
|
|
function()
|
|
local ok, copilot = pcall(require, "copilot.suggestion")
|
|
if ok and copilot.is_visible() then
|
|
copilot.accept()
|
|
return true
|
|
end
|
|
end
|
|
'';
|
|
}
|
|
"fallback"
|
|
];
|
|
"<S-Tab>" = ["select_prev" "fallback"];
|
|
"<C-n>" = ["select_next" "fallback"];
|
|
"<C-p>" = ["select_prev" "fallback"];
|
|
};
|
|
|
|
completion.list.selection = {
|
|
preselect = true;
|
|
auto_insert = false;
|
|
};
|
|
|
|
sources.default = [
|
|
"lsp"
|
|
"path"
|
|
"buffer"
|
|
];
|
|
};
|
|
};
|
|
}
|