Compare commits

...

2 Commits

Author SHA1 Message Date
Sam W 96396f67a7 flake: Add luroy 2022-12-16 19:41:35 +00:00
Sam W 91c2171da3 vim: disable completions in comments
also fancy borders
2022-12-16 16:26:34 +00:00
2 changed files with 14 additions and 2 deletions

View File

@ -57,6 +57,10 @@
system = "aarch64-darwin"; system = "aarch64-darwin";
profiles = with profiles; [default dev dev-gui sensitive mac]; profiles = with profiles; [default dev dev-gui sensitive mac];
}; };
luroy = lib.mkHome {
system = "x86_64-linux";
profiles = with profiles; [default dev];
};
}; };
} }
# Per-system things # Per-system things

View File

@ -12,9 +12,17 @@ end
-- Completion -- Completion
local cmp = require'cmp' local cmp = require'cmp'
cmp.setup({ cmp.setup({
-- Disable completions if we're in a comment
enabled = function()
if require"cmp.config.context".in_treesitter_capture("comment")==true or require"cmp.config.context".in_syntax_group("Comment") then
return false
else
return true
end
end,
window = { window = {
-- completion = cmp.config.window.bordered(), completion = cmp.config.window.bordered(),
-- documentation = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(),
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),