summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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