You've already forked dotfiles
feat: Cleanup of plugins, swapping the telekasten shortcut for toggling
todo items and making changes to the build UI.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -53,8 +53,8 @@ vim.keymap.set('n', '<space>', 'za')
|
||||
-- Keymaps for custom functions
|
||||
vim.keymap.set('n', '<leader>et', function() custom_functions.execute('test') end)
|
||||
vim.keymap.set('n', '<leader>er', function() custom_functions.execute('run') end)
|
||||
vim.keymap.set('n', '<leader>eb', function() custom_functions.execute('build') end)
|
||||
vim.keymap.set('n', '<leader>em', function() custom_functions.execute('benchmark') end)
|
||||
vim.keymap.set('n', '<leader>ec', function() custom_functions.execute('compile') end)
|
||||
vim.keymap.set('n', '<leader>eb', function() custom_functions.execute('benchmark') end)
|
||||
vim.keymap.set('n', '<leader>eu', function() custom_functions.execute('upload') end)
|
||||
|
||||
vim.keymap.set('n', '<leader>eo', ':Lexplore<CR>', options)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -49,7 +49,7 @@ return {
|
||||
vim.api.nvim_set_hl(0, 'tkTag', { ctermfg = 'gray', fg = 'gray' })
|
||||
end,
|
||||
keys = {
|
||||
{ '<leader>tt', ':Telekasten toggle_todo<CR>' },
|
||||
{ '<leader>zt', ':Telekasten toggle_todo<CR>' },
|
||||
{ '<leader>zfn', ':Telekasten find_notes<CR>' },
|
||||
{ '<leader>zft', ':Telekasten show_tags<CR>' },
|
||||
{ '<leader>zn', ':Telekasten new_note<CR>' },
|
||||
|
||||
Reference in New Issue
Block a user