Skip to content

Commit

Permalink
Update config.lua: add <leader>y yank shortcut for visual mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmbsbbz committed Jun 4, 2023
1 parent 1e09465 commit 26af012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ lvim.builtin.cmp.completion.keyword_length = 0
-- Use which-key to add extra bindings with the leader-key prefix
lvim.builtin.which_key.mappings["<space>"] = { "", "NULL" }
lvim.builtin.which_key.mappings["y"] = { "<cmd>%yank +<CR>", "Yank buffer" }
lvim.builtin.which_key.vmappings["y"] = { "<cmd>yank +<CR>", "Yank selected content" }
-- lvim.builtin.which_key.mappings["P"] = { "<cmd>Telescope projects<CR>", "Projects" }
-- lvim.builtin.which_key.mappings["t"] = {
-- name = "+Trouble",
Expand Down Expand Up @@ -144,7 +145,6 @@ vim.opt.timeoutlen = 10
-- end

-- -- set a formatter, this will override the language server formatting capabilities (if it exists)
-- { command = "isort", filetypes = { "python" } },
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{ command = "black", filetypes = { "python" } },
Expand Down Expand Up @@ -181,7 +181,7 @@ formatters.setup {

-- Additional Plugins
lvim.plugins = {
"wakatime/vim-wakatime"
{ "wakatime/vim-wakatime" }
}

-- Autocommands (https://neovim.io/doc/user/autocmd.html)
Expand Down

0 comments on commit 26af012

Please sign in to comment.