summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2023-01-21 12:59:43 -0500
committerMitchell Riedstra <mitch@riedstra.dev>2023-01-21 12:59:43 -0500
commit015eb3bfc84495140f837ea1538eb210e1cbd17a (patch)
tree43fe9fd546ff73e23322897f50bf1a24aaad9544
parent7e68bb92dd06a6aa267c07b8e0313ad445a7f7c4 (diff)
downloadnvim-config-015eb3bfc84495140f837ea1538eb210e1cbd17a.tar.gz
nvim-config-015eb3bfc84495140f837ea1538eb210e1cbd17a.tar.xz
Make spellcheck <leader>ss and change completion defaults
-rw-r--r--after/plugin/lsp.lua6
-rw-r--r--lua/mitch/init.lua2
2 files changed, 6 insertions, 2 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua
index 7107dc5..6feb11c 100644
--- a/after/plugin/lsp.lua
+++ b/after/plugin/lsp.lua
@@ -49,7 +49,11 @@ cmp_mappings['<Tab>'] = nil
cmp_mappings['<S-Tab>'] = nil
lsp.setup_nvim_cmp({
- mapping = cmp_mappings
+ preselect = 'none',
+ mapping = cmp_mappings,
+ completion = {
+ completeopt = 'menu,menuone,noinsert,noselect'
+ }
})
lsp.set_preferences({
diff --git a/lua/mitch/init.lua b/lua/mitch/init.lua
index 6644a33..6fadd4f 100644
--- a/lua/mitch/init.lua
+++ b/lua/mitch/init.lua
@@ -38,7 +38,7 @@ vim.opt.modeline = false
-- Apparently this also doesn't work if spell checking isn't enabled
-- at the time you enable it.
vim.opt.spell = true
-vim.keymap.set("n", "<leader>s", "ea<C-X><C-S>")
+vim.keymap.set("n", "<leader>ss", "ea<C-X><C-S>")
vim.opt.spell = false