This commit is contained in:
dla 2024-09-13 16:53:52 +07:00
parent 6bda505492
commit 707a02cab8
5 changed files with 46 additions and 22 deletions

View file

@ -4,7 +4,11 @@ vim.keymap.set('n', '<leader>l', ':set hlsearch!<CR>', { noremap = true, silent
vim.keymap.set('n', '<C-s>', ':w<CR>', { noremap = true, silent = true })
vim.keymap.set('i', '<C-s>', '<Esc>:w<CR>', { noremap = true, silent = true })
-- Map Ctrl-c to yank (copy) the selected text in visual mode
vim.keymap.set('v', '<C-c>', '"+y', { noremap = true, silent = true })
vim.keymap.set('v', '<C-c', ':OSCYankVisual<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<C-c>', '<Esc>', { noremap = true, silent = true })
-- Map Ctrl-c to Esc in normal mode
--vim.keymap.set('n', '<C-c>', '<Esc>', { noremap = true, silent = true })
-- Toggle comment
vim.keymap.set('n', '<C-\\>', '<plug>NERDCommenterToggle', { noremap = true, silent = true })
vim.keymap.set('v', '<C-\\>', '<plug>NERDCommenterToggle', { noremap = true, silent = true })

View file

@ -2,10 +2,19 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {
{
'mtdl9/vim-log-highlighting',
local function create_plugin(plugin_name)
return {
plugin_name,
opts = {},
config = function() end,
},
}
end
return {
create_plugin 'ojroques/vim-oscyank',
create_plugin 'thaerkh/vim-workspace',
create_plugin 'fatih/vim-go',
create_plugin 'preservim/nerdcommenter',
create_plugin 'mtdl9/vim-log-highlighting',
}

6
lua/custom/settings.lua Normal file
View file

@ -0,0 +1,6 @@
vim.api.nvim_create_autocmd('User', {
pattern = 'TelescopePreviewerLoaded',
callback = function(args)
vim.wo.wrap = true
end,
})