lualine config edits

This commit is contained in:
Daniel B Sherry 2025-05-22 14:10:59 -05:00
parent 9331121a9f
commit 5c937dc1c8
19 changed files with 301 additions and 83 deletions

View file

@ -1,9 +1,3 @@
-- [[ Basic Autocommands ]]
-- See `:help lua-guide-autocommands`
-- Highlight when yanking (copying) text
-- Try it with `yap` in normal mode
-- See `:help vim.highlight.on_yank()`
--
vim.api.nvim_create_autocmd('TextYankPost', {
desc = 'Highlight when yanking (copying) text',
group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }),

View file

@ -57,7 +57,6 @@ keymap('v', '<A-k>', ':m .-2<CR>==', opts)
-- paste over currently selected text without yanking it
keymap('v', 'p', '"_dp', opts)
keymap('v', 'P', '"_dP', opts)
-- Visual Block --
-- Move text up and down
keymap('x', 'J', ":move '>+1<CR>gv-gv", opts)
@ -131,3 +130,6 @@ vim.keymap.set("n", "<C-a>", "ggVG", opts)
vim.keymap.set("n", "YY", "va{Vy", opts)
vim.keymap.set("n", "<leader>r", ":w<CR>:!python3 %<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<leader><leader>x", ":source %<CR>", opts)
vim.keymap.set("n", "<leader>x", ":.lua<CR>", opts)
vim.keymap.set("v", "<leader>x", ":lua<CR>", opts)

View file

@ -16,7 +16,7 @@ local options = {
splitbelow = true, -- force all horizontal splits to go below current window
splitright = true, -- force all vertical splits to go to the right of current window
swapfile = false, -- creates a swapfile
termguicolors = true, -- set term gui colors (most terminals support this)
termguicolors = true, -- set term gui colors (most terminals support this)
timeoutlen = 1000, -- time to wait for a mapped sequence to complete (in milliseconds)
undofile = true, -- enable persistent undo
updatetime = 300, -- faster completion (4000ms default)
@ -35,12 +35,12 @@ local options = {
guifont = 'monospace:h17', -- the font used in graphical neovim applications
}
vim.opt.shortmess:append 'c'
-- vim.opt.shortmess:append 'c'
for k, v in pairs(options) do
vim.opt[k] = v
end
vim.cmd 'set whichwrap+=<,>,[,],h,l'
vim.cmd [[set iskeyword+=-]]
vim.cmd [[set formatoptions-=cro]] -- TODO: this doesn't seem to work
-- vim.cmd 'set whichwrap+=<,>,[,],h,l'
-- vim.cmd [[set iskeyword+=-]]
-- vim.cmd [[set formatoptions-=cro]] -- TODO: this doesn't seem to work