Skip to content

Commit

Permalink
Disable autocomplete and map toggling with <Leader>ac
Browse files Browse the repository at this point in the history
  • Loading branch information
steventux committed Jan 8, 2025
1 parent e1d3790 commit 3c6efa6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,5 @@ vim.api.nvim_create_autocmd({"BufWritePre"}, {
vim.lsp.buf.format()
end,
})

require('cmp').setup { enabled = false }
4 changes: 4 additions & 0 deletions lua/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,7 @@ map("n", "<leader>to", function() require("neotest").output.open({ enter = true,
map("n", "<leader>tO", function() require("neotest").output_panel.toggle() end, { desc = "Toggle Output Panel (Neotest)" })
map("n", "<leader>tS", function() require("neotest").run.stop() end, { desc = "Stop (Neotest)" })
map("n", "<leader>tw", function() require("neotest").watch.toggle(vim.fn.expand("%")) end, { desc = "Toggle Watch (Neotest)" })

map("n", "<leader>ac", function()
require("cmp").setup({ enabled = not require("cmp").get_config().enabled })
end, { desc = "Toggle autocomplete" })

0 comments on commit 3c6efa6

Please sign in to comment.