opts = { },
},
+ -- { dir = '~/github/mynvimplugins/btoggle.nvim/' },
+ { 'tobser/btoggle.nvim' },
+
-- "gc" to comment visual regions/lines
{ 'numToStr/Comment.nvim', opts = {} },
require('nvim-treesitter.configs').setup {
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'html',
- 'c_sharp', 'perl', 'python' },
+ 'c_sharp', 'perl', 'python' ,'markdown' },
-- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!)
auto_install = false,
vim.opt.cursorline = true
vim.opt.hlsearch = true
+local bt = require("btoggle");
+bt.setup({
+ ["true"] = "false",
+ ["True"] = "False",
+ ["False"] = "True",
+ ["false"] = "true",
+ ["foo"] = "bar",
+ ["bar"] = "bor",
+ ["bor"] = "foo"
+})
+vim.keymap.set('n', '<leader>b', bt.toggle)
+
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et