mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-05 12:46:34 +05:30
add boole to toggle booleans
This commit is contained in:
@ -4,24 +4,24 @@ local map = vim.keymap.set
|
|||||||
local g = vim.g
|
local g = vim.g
|
||||||
|
|
||||||
local float_opts = {
|
local float_opts = {
|
||||||
relative = "editor",
|
relative = "editor",
|
||||||
row = 0.13,
|
row = 0.13,
|
||||||
col = 0.14,
|
col = 0.14,
|
||||||
width = 0.7,
|
width = 0.7,
|
||||||
height = 0.7,
|
height = 0.7,
|
||||||
border = "single",
|
border = "single",
|
||||||
}
|
}
|
||||||
|
|
||||||
local toggleTerm = function()
|
local toggleTerm = function()
|
||||||
require("nvchad.term").toggle({ pos = "float", id = "float", float_opts = float_opts })
|
require("nvchad.term").toggle({ pos = "float", id = "float", float_opts = float_opts })
|
||||||
end
|
end
|
||||||
|
|
||||||
local toggleLazygit = function()
|
local toggleLazygit = function()
|
||||||
require("nvchad.term").toggle({ pos = "float", id = "lazygit", float_opts = float_opts, cmd = "lazygit" })
|
require("nvchad.term").toggle({ pos = "float", id = "lazygit", float_opts = float_opts, cmd = "lazygit" })
|
||||||
end
|
end
|
||||||
|
|
||||||
local toggleTreesj = function()
|
local toggleTreesj = function()
|
||||||
require("treesj").toggle()
|
require("treesj").toggle()
|
||||||
end
|
end
|
||||||
|
|
||||||
map({ "n", "t" }, "<F7>", toggleTerm, { desc = "Toggle Floating Terminal" })
|
map({ "n", "t" }, "<F7>", toggleTerm, { desc = "Toggle Floating Terminal" })
|
||||||
@ -35,6 +35,8 @@ map("n", "<leader>tt", "<cmd>TroubleToggle<cr>", { desc = "Toggle diagnostics" }
|
|||||||
map("n", "<leader>td", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME,BUG,TEST,NOTE<cr>", { desc = "Todo/Fix/Fixme" })
|
map("n", "<leader>td", "<cmd>TodoTelescope keywords=TODO,FIX,FIXME,BUG,TEST,NOTE<cr>", { desc = "Todo/Fix/Fixme" })
|
||||||
map("n", "<leader>m", toggleTreesj, { desc = "Toggle Treesitter Join" })
|
map("n", "<leader>m", toggleTreesj, { desc = "Toggle Treesitter Join" })
|
||||||
map("n", "<leader>o", "<cmd>Outline<cr>", { desc = "Toggle Outline" })
|
map("n", "<leader>o", "<cmd>Outline<cr>", { desc = "Toggle Outline" })
|
||||||
|
map("n", "<leader>tn", "<cmd>Boole increment<cr>", { desc = "Increase value" })
|
||||||
|
map("n", "<leader>tp", "<cmd>Boole decrement<cr>", { desc = "Decrease value" })
|
||||||
|
|
||||||
-- DAP
|
-- DAP
|
||||||
map("n", "<C-b>", "<cmd>DapToggleBreakpoint<cr>", { desc = "Toggle break point" })
|
map("n", "<C-b>", "<cmd>DapToggleBreakpoint<cr>", { desc = "Toggle break point" })
|
||||||
@ -43,14 +45,14 @@ map("n", "<C-x>", "<cmd>DapTerminate<cr>", { desc = "Terminate" })
|
|||||||
map("n", "<C-o>", "<cmd>DapStepOver<cr>", { desc = "Step over" })
|
map("n", "<C-o>", "<cmd>DapStepOver<cr>", { desc = "Step over" })
|
||||||
|
|
||||||
if g.neovide then
|
if g.neovide then
|
||||||
local zoomInNeovide = function()
|
local zoomInNeovide = function()
|
||||||
g.neovide_scale_factor = g.neovide_scale_factor + 0.1
|
g.neovide_scale_factor = g.neovide_scale_factor + 0.1
|
||||||
end
|
end
|
||||||
|
|
||||||
local zoomOutNeovide = function()
|
local zoomOutNeovide = function()
|
||||||
g.neovide_scale_factor = g.neovide_scale_factor - 0.1
|
g.neovide_scale_factor = g.neovide_scale_factor - 0.1
|
||||||
end
|
end
|
||||||
|
|
||||||
map("n", "<C-=>", zoomInNeovide, { desc = "Zoom In (Neovide)" })
|
map("n", "<C-=>", zoomInNeovide, { desc = "Zoom In (Neovide)" })
|
||||||
map("n", "<C-->", zoomOutNeovide, { desc = "Zoom Out (Neovide)" })
|
map("n", "<C-->", zoomOutNeovide, { desc = "Zoom Out (Neovide)" })
|
||||||
end
|
end
|
||||||
|
@ -1,169 +1,176 @@
|
|||||||
local overrides = require("configs.overrides")
|
local overrides = require("configs.overrides")
|
||||||
|
|
||||||
local plugins = {
|
local plugins = {
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
event = { "BufWritePre" },
|
event = { "BufWritePre" },
|
||||||
cmd = { "ConformInfo" },
|
cmd = { "ConformInfo" },
|
||||||
config = function()
|
config = function()
|
||||||
require("configs.conform")
|
require("configs.conform")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
opts = overrides.treesitter,
|
opts = overrides.treesitter,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"williamboman/mason.nvim",
|
"williamboman/mason.nvim",
|
||||||
opts = overrides.mason,
|
opts = overrides.mason,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"David-Kunz/gen.nvim",
|
"David-Kunz/gen.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
opts = function()
|
opts = function()
|
||||||
return require("configs.gen")
|
return require("configs.gen")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Shatur/neovim-session-manager",
|
"Shatur/neovim-session-manager",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
"stevearc/dressing.nvim",
|
"stevearc/dressing.nvim",
|
||||||
},
|
},
|
||||||
event = "BufWritePost",
|
event = "BufWritePost",
|
||||||
cmd = "SessionManager",
|
cmd = "SessionManager",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/noice.nvim",
|
"folke/noice.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
"rcarriga/nvim-notify",
|
"rcarriga/nvim-notify",
|
||||||
},
|
},
|
||||||
opts = function()
|
opts = function()
|
||||||
return require("configs.noice")
|
return require("configs.noice")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
config = function()
|
config = function()
|
||||||
require("nvchad.configs.lspconfig").defaults()
|
require("nvchad.configs.lspconfig").defaults()
|
||||||
require("configs.lspconfig")
|
require("configs.lspconfig")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvimtools/none-ls.nvim",
|
"nvimtools/none-ls.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
opts = function()
|
opts = function()
|
||||||
return require("configs.null-ls")
|
return require("configs.null-ls")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"windwp/nvim-ts-autotag",
|
"windwp/nvim-ts-autotag",
|
||||||
ft = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
ft = { "javascript", "javascriptreact", "typescript", "typescriptreact" },
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-ts-autotag").setup()
|
require("nvim-ts-autotag").setup()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"wakatime/vim-wakatime",
|
"wakatime/vim-wakatime",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-context",
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
event = "BufReadPost",
|
event = "BufReadPost",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Wansmer/treesj",
|
"Wansmer/treesj",
|
||||||
cmd = { "TSJToggle" },
|
cmd = { "TSJToggle" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"hedyhli/outline.nvim",
|
"hedyhli/outline.nvim",
|
||||||
lazy = true,
|
lazy = true,
|
||||||
cmd = { "Outline", "OutlineOpen" },
|
cmd = { "Outline", "OutlineOpen" },
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
cmd = { "Trouble", "TroubleToggle" },
|
cmd = { "Trouble", "TroubleToggle" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
cmd = { "TodoTrouble", "TodoTelescope" },
|
cmd = { "TodoTrouble", "TodoTelescope" },
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("neodev").setup({
|
require("neodev").setup({
|
||||||
library = {
|
library = {
|
||||||
plugins = { "nvim-dap-ui" },
|
plugins = { "nvim-dap-ui" },
|
||||||
types = true,
|
types = true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
config = function()
|
config = function()
|
||||||
require("configs.dap")
|
require("configs.dap")
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
"nvim-neotest/nvim-nio",
|
"nvim-neotest/nvim-nio",
|
||||||
"theHamsta/nvim-dap-virtual-text",
|
"theHamsta/nvim-dap-virtual-text",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- Language specific plugins
|
{
|
||||||
{
|
"nat-418/boole.nvim",
|
||||||
"pmizio/typescript-tools.nvim",
|
event = "VeryLazy",
|
||||||
dependencies = {
|
config = function()
|
||||||
"nvim-lua/plenary.nvim",
|
require("boole").setup()
|
||||||
"neovim/nvim-lspconfig",
|
end,
|
||||||
},
|
},
|
||||||
config = function()
|
-- Language specific plugins
|
||||||
require("configs.ts")
|
{
|
||||||
end,
|
"pmizio/typescript-tools.nvim",
|
||||||
ft = {
|
dependencies = {
|
||||||
"javascript",
|
"nvim-lua/plenary.nvim",
|
||||||
"typescript",
|
"neovim/nvim-lspconfig",
|
||||||
"javascriptreact",
|
},
|
||||||
"typescriptreact",
|
config = function()
|
||||||
},
|
require("configs.ts")
|
||||||
},
|
end,
|
||||||
{
|
ft = {
|
||||||
"ray-x/go.nvim",
|
"javascript",
|
||||||
dependencies = {
|
"typescript",
|
||||||
"neovim/nvim-lspconfig",
|
"javascriptreact",
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"typescriptreact",
|
||||||
"mfussenegger/nvim-dap",
|
},
|
||||||
"rcarriga/nvim-dap-ui",
|
},
|
||||||
},
|
{
|
||||||
event = { "CmdlineEnter" },
|
"ray-x/go.nvim",
|
||||||
config = function()
|
dependencies = {
|
||||||
require("configs.go")
|
"neovim/nvim-lspconfig",
|
||||||
end,
|
"nvim-treesitter/nvim-treesitter",
|
||||||
ft = {
|
"mfussenegger/nvim-dap",
|
||||||
"go",
|
"rcarriga/nvim-dap-ui",
|
||||||
"gomod",
|
},
|
||||||
"gosum",
|
event = { "CmdlineEnter" },
|
||||||
"gowork",
|
config = function()
|
||||||
"gotmpl",
|
require("configs.go")
|
||||||
},
|
end,
|
||||||
build = ':lua require("go.install").update_all_sync()',
|
ft = {
|
||||||
},
|
"go",
|
||||||
{
|
"gomod",
|
||||||
"mrcjkb/rustaceanvim",
|
"gosum",
|
||||||
config = function()
|
"gowork",
|
||||||
require("configs.rust")
|
"gotmpl",
|
||||||
end,
|
},
|
||||||
version = "^4",
|
build = ':lua require("go.install").update_all_sync()',
|
||||||
dependencies = {
|
},
|
||||||
"mfussenegger/nvim-dap",
|
{
|
||||||
"rcarriga/nvim-dap-ui",
|
"mrcjkb/rustaceanvim",
|
||||||
},
|
config = function()
|
||||||
ft = { "rust" },
|
require("configs.rust")
|
||||||
},
|
end,
|
||||||
|
version = "^4",
|
||||||
|
dependencies = {
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
"rcarriga/nvim-dap-ui",
|
||||||
|
},
|
||||||
|
ft = { "rust" },
|
||||||
|
},
|
||||||
}
|
}
|
||||||
return plugins
|
return plugins
|
||||||
|
Reference in New Issue
Block a user