mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 23:04:08 +09:00
nixvim: improve keymaps, completion, and formatter config
- 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]>
This commit is contained in:
@@ -12,8 +12,29 @@
|
||||
"<C-e>" = ["hide"];
|
||||
"<C-f>" = ["scroll_documentation_down"];
|
||||
|
||||
"<Tab>" = ["select_next" "fallback"];
|
||||
"<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 = [
|
||||
|
||||
Reference in New Issue
Block a user