From 905fd8fc43906368ae5eecb0741b01a67a24d242 Mon Sep 17 00:00:00 2001 From: FaultyBranches Date: Tue, 19 May 2026 04:10:44 -0500 Subject: [PATCH] feat: Cleanup of plugins, swapping the telekasten shortcut for toggling todo items and making changes to the build UI. --- nvim/lua/custom_functions.lua | 12 ++---------- nvim/lua/keymappings.lua | 4 ++-- nvim/lua/plugins.lua | 4 ++-- nvim/lua/plugins/telekasten.lua | 2 +- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/nvim/lua/custom_functions.lua b/nvim/lua/custom_functions.lua index f300973..567aaac 100644 --- a/nvim/lua/custom_functions.lua +++ b/nvim/lua/custom_functions.lua @@ -1,11 +1,3 @@ --- 'softrequire' provides a wrapper around the builtin require. If the require has failed in a `local mod = softrequire('m') call, a quick check of --- 'if mod then' can wrap code dependent upon the require, and fails gracefully --- local function softrequire(m) - -- local ok, err = pcall(require, m) - -- if not ok then return nil, err end - -- return err --- end - return { execute = function(type) local command_table = { @@ -18,9 +10,9 @@ return { rust = 'cargo run', }, test = { + cpp = 'make test', python = 'pytest', rust = 'cargo test', - cpp = 'make test', }, benchmark = { rust = 'cargo bench', @@ -33,7 +25,7 @@ return { local command = command_table[type][vim.bo.filetype] if command ~= nil then - vim.cmd('FloatermNew --autoclose=0 ' .. command) + vim.cmd('FloatermNew --autoclose=0 --height=0.9 --width=0.9 ' .. command) end end } diff --git a/nvim/lua/keymappings.lua b/nvim/lua/keymappings.lua index 9159088..d49ac72 100644 --- a/nvim/lua/keymappings.lua +++ b/nvim/lua/keymappings.lua @@ -53,8 +53,8 @@ vim.keymap.set('n', '', 'za') -- Keymaps for custom functions vim.keymap.set('n', 'et', function() custom_functions.execute('test') end) vim.keymap.set('n', 'er', function() custom_functions.execute('run') end) -vim.keymap.set('n', 'eb', function() custom_functions.execute('build') end) -vim.keymap.set('n', 'em', function() custom_functions.execute('benchmark') end) +vim.keymap.set('n', 'ec', function() custom_functions.execute('compile') end) +vim.keymap.set('n', 'eb', function() custom_functions.execute('benchmark') end) vim.keymap.set('n', 'eu', function() custom_functions.execute('upload') end) vim.keymap.set('n', 'eo', ':Lexplore', options) diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 000ec96..48b8fbd 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -23,7 +23,7 @@ require('lazy').setup({ require('plugins.treesitter'), -- Treesitter syntax highlighting and tree support require('plugins.gitsigns'), -- Gutter symbols for Git status and quick actions for Git operations require('plugins.luasnip'), -- Snippet engine - require('plugins.nvim-lint'), -- Linter loader + -- require('plugins.nvim-lint'), -- Linter loader require('plugins.nvim-cmp'), -- Autocompletion engine require('plugins.lualine'), -- Status line require('plugins.telekasten'), -- Note taking setup @@ -31,7 +31,7 @@ require('lazy').setup({ 'tpope/vim-surround', -- Change surrounding symbols require('plugins.floaterm'), -- Floating terminal require('plugins.vim-godot'), -- Godot specific bindings and debug - require('plugins.markdown-preview'), -- Open a preview of markdown rendered in a browser + -- require('plugins.markdown-preview'), -- Open a preview of markdown rendered in a browser require('plugins.render-markdown'), -- Render markdown directly in nvim (experimental, may take over for markdown-preview) require('plugins.autopairs'), -- Autocomplete symbol pairs when typing (experimental) require('plugins.twilight'), -- Focus mode, dim lines around the current segment of code diff --git a/nvim/lua/plugins/telekasten.lua b/nvim/lua/plugins/telekasten.lua index b304e44..eb8b47c 100644 --- a/nvim/lua/plugins/telekasten.lua +++ b/nvim/lua/plugins/telekasten.lua @@ -49,7 +49,7 @@ return { vim.api.nvim_set_hl(0, 'tkTag', { ctermfg = 'gray', fg = 'gray' }) end, keys = { - { 'tt', ':Telekasten toggle_todo' }, + { 'zt', ':Telekasten toggle_todo' }, { 'zfn', ':Telekasten find_notes' }, { 'zft', ':Telekasten show_tags' }, { 'zn', ':Telekasten new_note' },