Repo based on shortcut's boilerplate
Very fast autocomplete
| Package manager | Snippet |
|---|---|
-- stable version
use {"ninetyfive-gg/ninetyfive.nvim", tag = "*" }
-- dev version
use {"ninetyfive-gg/ninetyfive.nvim"} |
|
" stable version
Plug "ninetyfive-gg/ninetyfive.nvim", { "tag": "*" }
" dev version
Plug "ninetyfive-gg/ninetyfive.nvim" |
|
-- stable version
require("lazy").setup({{"ninetyfive-gg/ninetyfive.nvim", version = "*"}})
-- dev version
require("lazy").setup({"ninetyfive-gg/ninetyfive.nvim"}) |
This module uses native curl. Ensure curl is installed on your system before installing the plugin.
All available configuration options with their default values:
require("ninetyfive").setup({
-- Prints useful logs about what events are triggered, and reasons actions are executed
debug = false,
-- When `true`, enables the plugin on NeoVim startup
enable_on_startup = true,
-- Update server URI, mostly for debugging
server = "wss://api.ninetyfive.gg",
-- Key mappings configuration
mappings = {
-- When `true`, creates all the mappings set
enabled = true,
-- Sets a global mapping to accept a suggestion
accept = "<Tab>",
-- Sets a global mapping to accept a suggestion and edit
accept_edit = "<C-g>",
-- Sets a global mapping to reject a suggestion
reject = "<C-w>",
},
-- Code indexing configuration for better completions
indexing = {
-- Possible values: "ask" | "on" | "off"
-- "ask" - prompt user for permission to index code
-- "on" - automatically index code
-- "off" - disable code indexing
mode = "ask",
-- Whether to cache the user's answer per project
cache_consent = true,
},
})Using wbthomason/packer.nvim
use {
"ninetyfive-gg/ninetyfive.nvim",
tag = "*", -- use stable version
config = function()
require("ninetyfive").setup({
enable_on_startup = true,
mappings = {
enabled = true,
accept = "<Tab>",
accept_edit = "<C-g>",
reject = "<C-w>",
},
indexing = {
mode = "ask",
cache_consent = true,
},
})
end,
}Using junegunn/vim-plug
Add to your ~/.config/nvim/init.vim or ~/.vimrc:
Plug 'ninetyfive-gg/ninetyfive.nvim', { 'tag': '*' }
" After plug#end(), add the setup configuration
lua << EOF
require("ninetyfive").setup({
enable_on_startup = true,
mappings = {
enabled = true,
accept = "<Tab>",
accept_edit = "<C-g>",
reject = "<C-w>",
},
indexing = {
mode = "ask",
cache_consent = true,
},
})
EOFUsing folke/lazy.nvim
Create a plugin file (e.g., ~/.config/nvim/lua/plugins/ninetyfive.lua):
return {
"ninetyfive-gg/ninetyfive.nvim",
version = "*", -- use stable version, or `false` for dev version
config = function()
require("ninetyfive").setup({
enable_on_startup = true,
debug = false,
server = "wss://api.ninetyfive.gg",
mappings = {
enabled = true,
accept = "<Tab>",
accept_edit = "<C-g>",
reject = "<C-w>",
},
indexing = {
mode = "ask",
cache_consent = true,
},
})
end,
}Note: all NinetyFive cache is stored at ~/.ninetyfive/
We don't have versioning in the plugin yet, so we need to pull the latest code using git and nvim's built-in git plugin.
Run :Lazy update ninetyfive within neovim to pull the latest commits from main.
| Command | Description |
|---|---|
:NinetyFive |
Enables the plugin. |
:NinetyFivePurchase |
Redirects to the purchase page |
:NinetyFiveKey |
Provide an API key |
# remove old version
rm -rf ~/.config/nvim/pack/vendor/start/ninetyfive.nvim/
# copy new version
cp -r <development-directory>/ninetyfive.nvim/ ~/.config/nvim/pack/vendor/start/ninetyfive.nvim/