OSYank
This commit is contained in:
parent
6bda505492
commit
707a02cab8
19
init.lua
19
init.lua
|
@ -92,9 +92,10 @@ vim.g.maplocalleader = ' '
|
|||
|
||||
require 'custom.options'
|
||||
require 'custom.keymaps'
|
||||
require 'custom.settings'
|
||||
|
||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
|
||||
vim.g.have_nerd_font = false
|
||||
vim.g.have_nerd_font = true
|
||||
|
||||
-- [[ Setting options ]]
|
||||
-- See `:help vim.opt`
|
||||
|
@ -381,15 +382,19 @@ require('lazy').setup({
|
|||
|
||||
-- [[ Configure Telescope ]]
|
||||
-- See `:help telescope` and `:help telescope.setup()`
|
||||
local actions = require 'telescope.actions'
|
||||
require('telescope').setup {
|
||||
-- You can put your default mappings / updates / etc. in here
|
||||
-- All the info you're looking for is in `:help telescope.setup()`
|
||||
--
|
||||
-- defaults = {
|
||||
-- mappings = {
|
||||
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
||||
-- },
|
||||
-- },
|
||||
defaults = {
|
||||
wrap_results = true,
|
||||
i = {
|
||||
--['<C-k>'] = actions.move_selection_previous,
|
||||
--['<C-j>'] = actions.move_selection_next,
|
||||
--['<c-enter>'] = 'to_fuzzy_refine',
|
||||
},
|
||||
},
|
||||
-- pickers = {}
|
||||
extensions = {
|
||||
['ui-select'] = {
|
||||
|
@ -609,7 +614,7 @@ require('lazy').setup({
|
|||
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
|
||||
local servers = {
|
||||
clangd = {},
|
||||
gopls = {},
|
||||
--gopls = {},
|
||||
pyright = {},
|
||||
rust_analyzer = {},
|
||||
bashls = {},
|
||||
|
|
|
@ -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 })
|
||||
|
|
|
@ -2,10 +2,19 @@
|
|||
-- I promise not to create any merge conflicts in this directory :)
|
||||
--
|
||||
-- See the kickstart.nvim README for more information
|
||||
|
||||
local function create_plugin(plugin_name)
|
||||
return {
|
||||
{
|
||||
'mtdl9/vim-log-highlighting',
|
||||
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',
|
||||
}
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'TelescopePreviewerLoaded',
|
||||
callback = function(args)
|
||||
vim.wo.wrap = true
|
||||
end,
|
||||
})
|
|
@ -11,15 +11,15 @@ return {
|
|||
},
|
||||
cmd = 'Neotree',
|
||||
keys = {
|
||||
{ '\\', ':Neotree reveal<CR>', desc = 'NeoTree reveal', silent = true },
|
||||
{ '\\', ':Neotree toggle=true reveal=true action=show<CR>', desc = 'NeoTree reveal', silent = true },
|
||||
},
|
||||
opts = {
|
||||
filesystem = {
|
||||
window = {
|
||||
mappings = {
|
||||
['\\'] = 'close_window',
|
||||
},
|
||||
},
|
||||
},
|
||||
-- filesystem = {
|
||||
-- window = {
|
||||
-- mappings = {
|
||||
-- ['\\'] = 'close_window',
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue