Update keys
This commit is contained in:
parent
82feb6f59f
commit
85b74eac1d
@ -6,8 +6,13 @@ vim.g.maplocalleader = " "
|
|||||||
local opts = { noremap=true }
|
local opts = { noremap=true }
|
||||||
|
|
||||||
vim.keymap.set('n', '<leader>f', function () vim.cmd('Telescope find_files') end, { remap = true })
|
vim.keymap.set('n', '<leader>f', function () vim.cmd('Telescope find_files') end, { remap = true })
|
||||||
|
vim.keymap.set('n', '<leader>/', function () vim.cmd('Telescope live_grep') end, { remap = true })
|
||||||
|
|
||||||
vim.keymap('v', '<leader>c', function () vim.cmd('\'<,\'>Commentary') end, { noremap = true, silent = true })
|
vim.keymap.set('n', 'ge', 'G0', { remap = true })
|
||||||
vim.keymap('n', '<leader>c', function () vim.cmd('Commentary') end, { noremap = true, silent = true })
|
vim.keymap.set('n', 'gh', '0', { remap = true })
|
||||||
|
vim.keymap.set('n', 'gl', '$', { remap = true })
|
||||||
|
|
||||||
|
vim.keymap.set('v', '<leader>c', function () vim.cmd('\'<,\'>Commentary') end, { noremap = true, silent = true })
|
||||||
|
vim.keymap.set('n', '<leader>c', function () vim.cmd('Commentary') end, { noremap = true, silent = true })
|
||||||
|
|
||||||
vim.keymap.set("n", "<C-F>", "<cmd>NvimTreeToggle<CR>", { silent = true })
|
vim.keymap.set("n", "<C-F>", "<cmd>NvimTreeToggle<CR>", { silent = true })
|
||||||
|
@ -147,7 +147,7 @@ saga.setup{
|
|||||||
server_filetype_map = {},
|
server_filetype_map = {},
|
||||||
}
|
}
|
||||||
|
|
||||||
keymap("n", "gh", "<cmd>Lspsaga lsp_finder<CR>", { silent = true })
|
keymap("n", "<leader>sf", "<cmd>Lspsaga lsp_finder<CR>", { silent = true })
|
||||||
keymap({"n","v"}, "<leader>ca", function () saga.code_action() end, {})
|
keymap({"n","v"}, "<leader>ca", function () saga.code_action() end, {})
|
||||||
keymap("n", "gr", "<cmd>Lspsaga rename<CR>", { silent = true })
|
keymap("n", "gr", "<cmd>Lspsaga rename<CR>", { silent = true })
|
||||||
keymap("n", "gd", "<cmd>Lspsaga peek_definition<CR>", { silent = true })
|
keymap("n", "gd", "<cmd>Lspsaga peek_definition<CR>", { silent = true })
|
||||||
|
@ -49,8 +49,8 @@ local function save_profiles(threshold)
|
|||||||
end
|
end
|
||||||
|
|
||||||
time([[Luarocks path setup]], true)
|
time([[Luarocks path setup]], true)
|
||||||
local package_path_str = "/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
local package_path_str = "/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
|
||||||
local install_cpath_pattern = "/home/andr3/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
local install_cpath_pattern = "/Users/AHS40/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
|
||||||
if not string.find(package.path, package_path_str, 1, true) then
|
if not string.find(package.path, package_path_str, 1, true) then
|
||||||
package.path = package.path .. ';' .. package_path_str
|
package.path = package.path .. ';' .. package_path_str
|
||||||
end
|
end
|
||||||
@ -76,152 +76,152 @@ time([[Defining packer_plugins]], true)
|
|||||||
_G.packer_plugins = {
|
_G.packer_plugins = {
|
||||||
["ayu-vim"] = {
|
["ayu-vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/ayu-vim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/ayu-vim",
|
||||||
url = "https://github.com/ayu-theme/ayu-vim"
|
url = "https://github.com/ayu-theme/ayu-vim"
|
||||||
},
|
},
|
||||||
catppuccin = {
|
catppuccin = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/catppuccin",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/catppuccin",
|
||||||
url = "https://github.com/catppuccin/nvim"
|
url = "https://github.com/catppuccin/nvim"
|
||||||
},
|
},
|
||||||
["cmp-buffer"] = {
|
["cmp-buffer"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-buffer",
|
||||||
url = "https://github.com/hrsh7th/cmp-buffer"
|
url = "https://github.com/hrsh7th/cmp-buffer"
|
||||||
},
|
},
|
||||||
["cmp-cmdline"] = {
|
["cmp-cmdline"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-cmdline",
|
||||||
url = "https://github.com/hrsh7th/cmp-cmdline"
|
url = "https://github.com/hrsh7th/cmp-cmdline"
|
||||||
},
|
},
|
||||||
["cmp-nvim-lsp"] = {
|
["cmp-nvim-lsp"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
|
||||||
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
url = "https://github.com/hrsh7th/cmp-nvim-lsp"
|
||||||
},
|
},
|
||||||
["cmp-path"] = {
|
["cmp-path"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/cmp-path",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/cmp-path",
|
||||||
url = "https://github.com/hrsh7th/cmp-path"
|
url = "https://github.com/hrsh7th/cmp-path"
|
||||||
},
|
},
|
||||||
["eva01.vim"] = {
|
["eva01.vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/eva01.vim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/eva01.vim",
|
||||||
url = "https://github.com/hachy/eva01.vim"
|
url = "https://github.com/hachy/eva01.vim"
|
||||||
},
|
},
|
||||||
["html5.vim"] = {
|
["html5.vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/html5.vim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/html5.vim",
|
||||||
url = "https://github.com/othree/html5.vim"
|
url = "https://github.com/othree/html5.vim"
|
||||||
},
|
},
|
||||||
["lspkind.nvim"] = {
|
["lspkind.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/lspkind.nvim",
|
||||||
url = "https://github.com/onsails/lspkind.nvim"
|
url = "https://github.com/onsails/lspkind.nvim"
|
||||||
},
|
},
|
||||||
["lspsaga.nvim"] = {
|
["lspsaga.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/lspsaga.nvim",
|
||||||
url = "https://github.com/glepnir/lspsaga.nvim"
|
url = "https://github.com/glepnir/lspsaga.nvim"
|
||||||
},
|
},
|
||||||
["night_owl_light.vim"] = {
|
["night_owl_light.vim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/night_owl_light.vim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/night_owl_light.vim",
|
||||||
url = "https://github.com/macguirerintoul/night_owl_light.vim"
|
url = "https://github.com/macguirerintoul/night_owl_light.vim"
|
||||||
},
|
},
|
||||||
["null-ls.nvim"] = {
|
["null-ls.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/null-ls.nvim",
|
||||||
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
url = "https://github.com/jose-elias-alvarez/null-ls.nvim"
|
||||||
},
|
},
|
||||||
["nvim-cmp"] = {
|
["nvim-cmp"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-cmp",
|
||||||
url = "https://github.com/hrsh7th/nvim-cmp"
|
url = "https://github.com/hrsh7th/nvim-cmp"
|
||||||
},
|
},
|
||||||
["nvim-lspconfig"] = {
|
["nvim-lspconfig"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
|
||||||
url = "https://github.com/neovim/nvim-lspconfig"
|
url = "https://github.com/neovim/nvim-lspconfig"
|
||||||
},
|
},
|
||||||
["nvim-tree.lua"] = {
|
["nvim-tree.lua"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
|
||||||
url = "https://github.com/nvim-tree/nvim-tree.lua"
|
url = "https://github.com/nvim-tree/nvim-tree.lua"
|
||||||
},
|
},
|
||||||
["nvim-treesitter"] = {
|
["nvim-treesitter"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
|
||||||
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
url = "https://github.com/nvim-treesitter/nvim-treesitter"
|
||||||
},
|
},
|
||||||
["nvim-web-devicons"] = {
|
["nvim-web-devicons"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
|
||||||
url = "https://github.com/nvim-tree/nvim-web-devicons"
|
url = "https://github.com/nvim-tree/nvim-web-devicons"
|
||||||
},
|
},
|
||||||
["packer.nvim"] = {
|
["packer.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/packer.nvim",
|
||||||
url = "https://github.com/wbthomason/packer.nvim"
|
url = "https://github.com/wbthomason/packer.nvim"
|
||||||
},
|
},
|
||||||
["plenary.nvim"] = {
|
["plenary.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/plenary.nvim",
|
||||||
url = "https://github.com/nvim-lua/plenary.nvim"
|
url = "https://github.com/nvim-lua/plenary.nvim"
|
||||||
},
|
},
|
||||||
["prettier.nvim"] = {
|
["prettier.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/prettier.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/prettier.nvim",
|
||||||
url = "https://github.com/MunifTanjim/prettier.nvim"
|
url = "https://github.com/MunifTanjim/prettier.nvim"
|
||||||
},
|
},
|
||||||
["telescope.nvim"] = {
|
["telescope.nvim"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/telescope.nvim",
|
||||||
url = "https://github.com/nvim-telescope/telescope.nvim"
|
url = "https://github.com/nvim-telescope/telescope.nvim"
|
||||||
},
|
},
|
||||||
undotree = {
|
undotree = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/undotree",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/undotree",
|
||||||
url = "https://github.com/mbbill/undotree"
|
url = "https://github.com/mbbill/undotree"
|
||||||
},
|
},
|
||||||
["vim-airline"] = {
|
["vim-airline"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-airline",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-airline",
|
||||||
url = "https://github.com/vim-airline/vim-airline"
|
url = "https://github.com/vim-airline/vim-airline"
|
||||||
},
|
},
|
||||||
["vim-airline-themes"] = {
|
["vim-airline-themes"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-airline-themes",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-airline-themes",
|
||||||
url = "https://github.com/vim-airline/vim-airline-themes"
|
url = "https://github.com/vim-airline/vim-airline-themes"
|
||||||
},
|
},
|
||||||
["vim-commentary"] = {
|
["vim-commentary"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-commentary",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-commentary",
|
||||||
url = "https://github.com/chrisbra/vim-commentary"
|
url = "https://github.com/chrisbra/vim-commentary"
|
||||||
},
|
},
|
||||||
["vim-cyberpunk"] = {
|
["vim-cyberpunk"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-cyberpunk",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-cyberpunk",
|
||||||
url = "https://github.com/thedenisnikulin/vim-cyberpunk"
|
url = "https://github.com/thedenisnikulin/vim-cyberpunk"
|
||||||
},
|
},
|
||||||
["vim-gitgutter"] = {
|
["vim-gitgutter"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-gitgutter",
|
||||||
url = "https://github.com/airblade/vim-gitgutter"
|
url = "https://github.com/airblade/vim-gitgutter"
|
||||||
},
|
},
|
||||||
["vim-javascript"] = {
|
["vim-javascript"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-javascript",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-javascript",
|
||||||
url = "https://github.com/pangloss/vim-javascript"
|
url = "https://github.com/pangloss/vim-javascript"
|
||||||
},
|
},
|
||||||
["vim-svelte"] = {
|
["vim-svelte"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-svelte",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-svelte",
|
||||||
url = "https://github.com/evanleck/vim-svelte"
|
url = "https://github.com/evanleck/vim-svelte"
|
||||||
},
|
},
|
||||||
["vim-vsnip"] = {
|
["vim-vsnip"] = {
|
||||||
loaded = true,
|
loaded = true,
|
||||||
path = "/home/andr3/.local/share/nvim/site/pack/packer/start/vim-vsnip",
|
path = "/Users/AHS40/.local/share/nvim/site/pack/packer/start/vim-vsnip",
|
||||||
url = "https://github.com/hrsh7th/vim-vsnip"
|
url = "https://github.com/hrsh7th/vim-vsnip"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user