Install nvim-cmp source for spelling
This commit is contained in:
@@ -50,7 +50,7 @@ require("packer").startup(function(use)
|
|||||||
use({
|
use({
|
||||||
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path",
|
"hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-buffer", "hrsh7th/cmp-path",
|
||||||
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-nvim-lua",
|
"hrsh7th/cmp-cmdline", "hrsh7th/cmp-nvim-lua",
|
||||||
"saadparwaiz1/cmp_luasnip"
|
"saadparwaiz1/cmp_luasnip", "f3fora/cmp-spell"
|
||||||
})
|
})
|
||||||
use({"ray-x/lsp_signature.nvim"})
|
use({"ray-x/lsp_signature.nvim"})
|
||||||
|
|
||||||
@@ -104,6 +104,9 @@ vim.g.mapleader = " "
|
|||||||
|
|
||||||
vim.g.qs_highlight_on_keys = {"f", "F"}
|
vim.g.qs_highlight_on_keys = {"f", "F"}
|
||||||
|
|
||||||
|
vim.opt.spell = true
|
||||||
|
vim.opt.spelllang = {"en_us"}
|
||||||
|
|
||||||
-- Minimap settings
|
-- Minimap settings
|
||||||
vim.g.minimap_width = 50
|
vim.g.minimap_width = 50
|
||||||
vim.g.minimap_auto_start = 1
|
vim.g.minimap_auto_start = 1
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ cmp.setup({
|
|||||||
},
|
},
|
||||||
sources = cmp.config.sources({
|
sources = cmp.config.sources({
|
||||||
{name = "nvim_lsp", trigger_characters = {"."}}, {name = "luasnip"},
|
{name = "nvim_lsp", trigger_characters = {"."}}, {name = "luasnip"},
|
||||||
{name = "nvim_lua"}
|
{name = "nvim_lua"}, {name = "spell"}
|
||||||
}, {{name = "path"}, {name = "buffer"}}),
|
}, {{name = "path"}, {name = "buffer"}}),
|
||||||
completion = {completeopt = "menu,menuone,noselect,noinsert,preview"},
|
completion = {completeopt = "menu,menuone,noselect,noinsert,preview"},
|
||||||
experimental = {ghost_text = true},
|
experimental = {ghost_text = true},
|
||||||
@@ -78,7 +78,8 @@ cmp.setup({
|
|||||||
nvim_lsp = "[LSP]",
|
nvim_lsp = "[LSP]",
|
||||||
luasnip = "[Snippet]",
|
luasnip = "[Snippet]",
|
||||||
nvim_lua = "[Lua]",
|
nvim_lua = "[Lua]",
|
||||||
path = "[File]"
|
path = "[File]",
|
||||||
|
spell = "[Spell]"
|
||||||
})[entry.source.name]
|
})[entry.source.name]
|
||||||
return vim_item
|
return vim_item
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user