Compare commits
3 Commits
1c033b2a25
...
13db25f74d
| Author | SHA1 | Date |
|---|---|---|
|
|
13db25f74d | |
|
|
aee3628a7e | |
|
|
0a034da88f |
|
|
@ -77,6 +77,7 @@ in {
|
||||||
icu74
|
icu74
|
||||||
alejandra
|
alejandra
|
||||||
vscode-extensions.ms-vscode.cpptools
|
vscode-extensions.ms-vscode.cpptools
|
||||||
|
nixpkgs-fmt
|
||||||
];
|
];
|
||||||
extraPlugins = with pkgs.vimPlugins; [
|
extraPlugins = with pkgs.vimPlugins; [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
store_selection_keys = "<Tab>";
|
store_selection_keys = "<Tab>";
|
||||||
};
|
};
|
||||||
fromLua = [
|
fromLua = [
|
||||||
{paths = ../../snippets;}
|
{ paths = ../../snippets; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
lspkind = {
|
lspkind = {
|
||||||
|
|
@ -69,14 +69,14 @@
|
||||||
'';
|
'';
|
||||||
completion.completeopt = "menu,preview";
|
completion.completeopt = "menu,preview";
|
||||||
sources = [
|
sources = [
|
||||||
{name = "luasnip";}
|
{ name = "luasnip"; }
|
||||||
{name = "nvim_lsp";}
|
{ name = "nvim_lsp"; }
|
||||||
{name = "nvim_lsp_signature_help";}
|
{ name = "nvim_lsp_signature_help"; }
|
||||||
{name = "nvim_lsp_document_symbol";}
|
{ name = "nvim_lsp_document_symbol"; }
|
||||||
{name = "codeium";}
|
{ name = "codeium"; }
|
||||||
{name = "path";}
|
{ name = "path"; }
|
||||||
{name = "buffer";}
|
{ name = "buffer"; }
|
||||||
{name = "treesitter";}
|
{ name = "treesitter"; }
|
||||||
];
|
];
|
||||||
mapping = {
|
mapping = {
|
||||||
__raw = ''
|
__raw = ''
|
||||||
|
|
@ -201,6 +201,14 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
":" = {
|
":" = {
|
||||||
|
completion.completeopt = "menu,menuone,noselect";
|
||||||
|
mapping = {
|
||||||
|
__raw = ''
|
||||||
|
cmp.mapping.preset.cmdline({
|
||||||
|
["<CR>"] = cmp.mapping.confirm { select = true },
|
||||||
|
})
|
||||||
|
'';
|
||||||
|
};
|
||||||
sources = [
|
sources = [
|
||||||
{
|
{
|
||||||
name = "path";
|
name = "path";
|
||||||
|
|
@ -212,7 +220,7 @@
|
||||||
};
|
};
|
||||||
"?" = {
|
"?" = {
|
||||||
mapping = {
|
mapping = {
|
||||||
completion.completeopt = "menuone,noselect";
|
completion.completeopt = "menu,menuone,noselect";
|
||||||
__raw = "cmp.mapping.preset.cmdline({
|
__raw = "cmp.mapping.preset.cmdline({
|
||||||
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
['<C-b>'] = cmp.mapping.scroll_docs(-4),
|
||||||
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
['<C-f>'] = cmp.mapping.scroll_docs(4),
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,31 @@
|
||||||
{
|
{
|
||||||
plugins.trouble.enable = true;
|
plugins.trouble = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
modes = {
|
||||||
|
workspace-diagnostics = {
|
||||||
|
mode = "diagnostics";
|
||||||
|
filter = [{
|
||||||
|
any = [
|
||||||
|
{ buf = 0; }
|
||||||
|
{
|
||||||
|
__raw =
|
||||||
|
''
|
||||||
|
function(item)
|
||||||
|
return item.filename:find((vim.loop or vim.uv).cwd(), 1, true)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
key = "<leader>xx";
|
key = "<leader>xx";
|
||||||
action = "<cmd>Trouble diagnostics toggle<CR>";
|
action = "<cmd>Trouble workspace-diagnostics toggle<CR>";
|
||||||
options = {
|
options = {
|
||||||
silent = true;
|
silent = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue