You've already forked dotfiles
cleanup: Removing extraneous items that are meant for development work
and experimental settings rather than the official stable setup
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
vim.g.mapleader = ','
|
||||
|
||||
-- Expose custom functions for binding
|
||||
local custom_functions = require('custom_functions')
|
||||
|
||||
-- Standard keybinding options
|
||||
local options = { noremap = true }
|
||||
|
||||
@@ -55,6 +52,8 @@ vim.keymap.set('n', '<leader>c', 'gcc', { remap = true })
|
||||
vim.keymap.set('v', '<leader>c', 'gc', { remap = true })
|
||||
|
||||
-- Keymaps for custom functions
|
||||
local custom_functions = require('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>ec', function() custom_functions.execute('compile') end)
|
||||
@@ -66,10 +65,3 @@ vim.keymap.set('n', '<leader>eo', ':Lexplore<CR>', options)
|
||||
|
||||
-- Allow for leaving Terminal mode using the escape key instead of the odd default
|
||||
vim.keymap.set('t', '<Esc>', '<C-\\><C-n>')
|
||||
|
||||
local sc = require('statuscolumn')
|
||||
vim.keymap.set('n', '<leader>q', function ()
|
||||
print('woot')
|
||||
sc.show_both_nums = not sc.show_both_nums
|
||||
vim.opt.statuscolumn = "%!v:lua.require('statuscolumn').statusColumn()"
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user