forked from Shinonome/fred-neovim
Added supermaven autocompletion
This commit is contained in:
@@ -21,7 +21,6 @@ nix run github:fred-drake/neovim#.
|
||||
|
||||
## Things To Do
|
||||
|
||||
- TODO: Add supermaven autocompletion.
|
||||
- TODO: Implement DAP for debugging
|
||||
- TODO: Change fzf to only allow git-level root if applicable
|
||||
- TODO: Break up LSP, CMP and Tree-Sitter for lanuages like rust, go, etc.
|
||||
|
||||
@@ -16,6 +16,7 @@ in { pkgs, ... }: {
|
||||
name = "buffer";
|
||||
keywordLength = 3;
|
||||
}
|
||||
{ name = "supermaven"; }
|
||||
];
|
||||
|
||||
snippet.expand =
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{ pkgs, ... }: {
|
||||
extraPlugins = [ pkgs.vimPlugins.supermaven-nvim ];
|
||||
|
||||
extraConfigLua = ''
|
||||
require("supermaven-nvim").setup({
|
||||
keymaps = {
|
||||
accept_suggestion = "<Tab>",
|
||||
clear_suggestion = "<C-]>",
|
||||
accept_word = "<C-j>",
|
||||
},
|
||||
ignore_filetypes = { cpp = true }, -- or { "cpp", }
|
||||
color = {
|
||||
suggestion_color = "#ffffff",
|
||||
cterm = 244,
|
||||
},
|
||||
log_level = "info", -- set to "off" to disable logging completely
|
||||
disable_inline_completion = false, -- disables inline completion for use with cmp
|
||||
disable_keymaps = false, -- disables built in keymaps for more manual control
|
||||
condition = function()
|
||||
return false
|
||||
end -- condition to check for stopping supermaven, `true` means to stop supermaven when the condition is true.
|
||||
})
|
||||
'';
|
||||
}
|
||||
+1
-1
@@ -82,7 +82,7 @@
|
||||
treesitter = {
|
||||
enable = true;
|
||||
|
||||
folding = true;
|
||||
folding = false;
|
||||
settings.indent.enable = true;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user