feat lazy.nvim
This commit is contained in:
7
.editorconfig
Normal file
7
.editorconfig
Normal file
@@ -0,0 +1,7 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
@@ -1,27 +0,0 @@
|
||||
require('cloak').setup({
|
||||
enabled = true,
|
||||
cloak_character = '*',
|
||||
-- The applied highlight group (colors) on the cloaking, see `:h highlight`.
|
||||
highlight_group = 'Comment',
|
||||
-- Applies the length of the replacement characters for all matched
|
||||
-- patterns, defaults to the length of the matched pattern.
|
||||
cloak_length = nil, -- Provide a number if you want to hide the true length of the value.
|
||||
-- Whether it should try every pattern to find the best fit or stop after the first.
|
||||
try_all_patterns = true,
|
||||
patterns = {
|
||||
{
|
||||
-- Match any file starting with '.env'.
|
||||
-- This can be a table to match multiple file patterns.
|
||||
file_pattern = '.env*',
|
||||
-- Match an equals sign and any character after it.
|
||||
-- This can also be a table of patterns to cloak,
|
||||
-- example: cloak_pattern = { ':.+', '-.+' } for yaml files.
|
||||
cloak_pattern = '=.+',
|
||||
-- A function, table or string to generate the replacement.
|
||||
-- The actual replacement will contain the 'cloak_character'
|
||||
-- where it doesn't cover the original text.
|
||||
-- If left empty the legacy behavior of keeping the first character is retained.
|
||||
replace = nil,
|
||||
},
|
||||
},
|
||||
})
|
||||
@@ -1,6 +0,0 @@
|
||||
function ColorMyPencils(color)
|
||||
color = color or 'flexoki-light'
|
||||
vim.cmd.colorscheme(color)
|
||||
end
|
||||
|
||||
ColorMyPencils()
|
||||
@@ -1,49 +0,0 @@
|
||||
local lsp = require('lsp-zero')
|
||||
local mason = require('mason')
|
||||
local mason_lspconfig = require('mason-lspconfig')
|
||||
|
||||
mason.setup({})
|
||||
mason_lspconfig.setup({
|
||||
ensure_installed = {
|
||||
'ruby_ls',
|
||||
'rubocop',
|
||||
'tsserver',
|
||||
'lua_ls',
|
||||
},
|
||||
handlers = {
|
||||
lsp.default_setup,
|
||||
lua_ls = function()
|
||||
require('lspconfig').lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = {
|
||||
'vim',
|
||||
'require',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
lsp.on_attach(function(_client, bufnr)
|
||||
local opts = { buffer = bufnr, remap = false }
|
||||
|
||||
lsp.default_keymaps(opts)
|
||||
|
||||
vim.keymap.set('n', 'gd', function() vim.lsp.buf.definition() end, opts)
|
||||
vim.keymap.set('n', 'K', function() vim.lsp.buf.hover() end, opts)
|
||||
vim.keymap.set('n', '<leader>vws', function() vim.lsp.buf.workspace_symbol() end, opts)
|
||||
vim.keymap.set('n', '<leader>vd', function() vim.diagnostic.open_float() end, opts)
|
||||
vim.keymap.set('n', '[d', function() vim.diagnostic.goto_next() end, opts)
|
||||
vim.keymap.set('n', ']d', function() vim.diagnostic.goto_prev() end, opts)
|
||||
vim.keymap.set('n', '<leader>vca', function() vim.lsp.buf.code_action() end, opts)
|
||||
vim.keymap.set('n', '<leader>vrr', function() vim.lsp.buf.references() end, opts)
|
||||
vim.keymap.set('n', '<leader>vrn', function() vim.lsp.buf.rename() end, opts)
|
||||
vim.keymap.set('n', '<leader>vrh', function() vim.lsp.buf.signature_help() end, opts)
|
||||
end)
|
||||
|
||||
lsp.setup()
|
||||
@@ -1,20 +0,0 @@
|
||||
require('rspec').setup({
|
||||
allowed_file_format = function(filename)
|
||||
return vim.endswith(filename, '_spec.rb')
|
||||
end,
|
||||
|
||||
formatter = 'progress',
|
||||
focus_on_last_spec_result_window = true,
|
||||
open_quickfix_when_spec_failed = true,
|
||||
last_result_path = vim.fn.stdpath('data') .. '/rspec_last_result',
|
||||
last_failed_result_path = vim.fn.stdpath('data') .. '/rspec_last_failed_result',
|
||||
jump_command = 'edit',
|
||||
ignored_dirs_on_jump = {},
|
||||
})
|
||||
|
||||
local opts = { noremap = true, silent = true }
|
||||
vim.keymap.set("n", "<leader>rn", ":RSpecNearest<CR>", opts)
|
||||
vim.keymap.set("n", "<leader>rcf", ":RSpecCurrentFile<CR>", opts)
|
||||
vim.keymap.set("n", "<leader>rr", ":RSpecRerun<CR>", opts)
|
||||
vim.keymap.set("n", "<leader>rof", ":RSpecOnlyFailures<CR>", opts)
|
||||
vim.keymap.set("n", "<leader>rslr", ":RSpecShowLastResult<CR>", opts)
|
||||
@@ -1 +0,0 @@
|
||||
require('nvim-surround').setup({})
|
||||
@@ -1,53 +0,0 @@
|
||||
local telescope = require('telescope')
|
||||
local builtin = require('telescope.builtin')
|
||||
|
||||
-- Borrowed from https://stackoverflow.com/a/76991432/513872
|
||||
telescope.setup{
|
||||
defaults = {
|
||||
-- configure to use ripgrep
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"--follow", -- Follow symbolic links
|
||||
"--hidden", -- Search for hidden files
|
||||
"--no-heading", -- Don't group matches by each file
|
||||
"--with-filename", -- Print the file path with the matched lines
|
||||
"--line-number", -- Show line numbers
|
||||
"--column", -- Show column numbers
|
||||
"--smart-case", -- Smart case search
|
||||
|
||||
-- Exclude some patterns from search
|
||||
"--glob=!**/.git/*",
|
||||
"--glob=!**/.idea/*",
|
||||
"--glob=!**/.vscode/*",
|
||||
"--glob=!**/build/*",
|
||||
"--glob=!**/dist/*",
|
||||
"--glob=!**/yarn.lock",
|
||||
"--glob=!**/package-lock.json",
|
||||
},
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
hidden = true,
|
||||
-- needed to exclude some files & dirs from general search
|
||||
-- when not included or specified in .gitignore
|
||||
find_command = {
|
||||
"rg",
|
||||
"--files",
|
||||
"--hidden",
|
||||
"--glob=!**/.git/*",
|
||||
"--glob=!**/.idea/*",
|
||||
"--glob=!**/.vscode/*",
|
||||
"--glob=!**/build/*",
|
||||
"--glob=!**/dist/*",
|
||||
"--glob=!**/yarn.lock",
|
||||
"--glob=!**/package-lock.json",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
|
||||
vim.keymap.set('n', '<C-p>', builtin.git_files, {})
|
||||
vim.keymap.set('n', '<leader>ps', function()
|
||||
builtin.grep_string({ search = vim.fn.input("Grep > ") });
|
||||
end)
|
||||
@@ -1,21 +0,0 @@
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "lua", "ruby", "javascript", "typescript" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
18
nvim/.config/nvim/lazy-lock.json
Normal file
18
nvim/.config/nvim/lazy-lock.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"auto-dark-mode.nvim": { "branch": "master", "commit": "e328dc463d238cb7d690fb4daf068eba732a5a14" },
|
||||
"cloak.nvim": { "branch": "main", "commit": "9abe4e986e924fc54a972c1b0ff52b65a0622624" },
|
||||
"flexoki": { "branch": "main", "commit": "975654bce67514114db89373539621cff42befb5" },
|
||||
"flexoki-neovim": { "branch": "main", "commit": "975654bce67514114db89373539621cff42befb5" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" },
|
||||
"git-blame.nvim": { "branch": "master", "commit": "a0282d05adbee80aaf4e2ff35b81b52940b67bed" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
|
||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "21d33d69a81f6351e5a5f49078b2e4f0075c8e73" },
|
||||
"mason.nvim": { "branch": "main", "commit": "3b5068f0fc565f337d67a2d315d935f574848ee7" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "16295b79410f131c4fa7870c663b4ace6a761fb2" },
|
||||
"nvim-surround": { "branch": "main", "commit": "84a26afce16cffa7e3322cfa80a42cddf60616eb" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "7ff51f53b0efb6228df2e8539b51bb2e737b77f3" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
|
||||
"rspec.nvim": { "branch": "main", "commit": "304682100b152071c2186994690c9646a5d46e05" },
|
||||
"telescope.nvim": { "branch": "master", "commit": "7472420f8734c710bd7009081cef9b97f08a3821" },
|
||||
"undotree": { "branch": "master", "commit": "aa93a7e5890dbbebbc064cd22260721a6db1a196" }
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
require('yock.pckr')
|
||||
require('yock.remap')
|
||||
require('yock.lazy')
|
||||
require('yock.set')
|
||||
require('yock.remap')
|
||||
|
||||
18
nvim/.config/nvim/lua/yock/lazy.lua
Normal file
18
nvim/.config/nvim/lua/yock/lazy.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
vim.g.mapleader = '\\'
|
||||
require('lazy').setup({
|
||||
spec = 'yock.plugins',
|
||||
change_detection = { notify = false },
|
||||
})
|
||||
@@ -1,45 +0,0 @@
|
||||
local function bootstrap_pckr()
|
||||
local pckr_path = vim.fn.stdpath('data') .. 'pckr/pckr.nvim'
|
||||
|
||||
if not vim.loop.fs_stat(pckr_path) then
|
||||
vim.fn.system({
|
||||
'git',
|
||||
'clone',
|
||||
'--filter=blob:none',
|
||||
'https://github.com/lewis6991/pckr.nvim',
|
||||
pckr_path
|
||||
})
|
||||
end
|
||||
|
||||
vim.opt.rtp:prepend(pckr_path)
|
||||
end
|
||||
|
||||
bootstrap_pckr()
|
||||
|
||||
require('pckr').add{
|
||||
{ 'nvim-telescope/telescope.nvim', requires = { 'nvim-lua/plenary.nvim' } },
|
||||
'kepano/flexoki-neovim',
|
||||
{ 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' },
|
||||
'mbbill/undotree',
|
||||
{
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
requires = {
|
||||
{ 'neovim/nvim-lspconfig' },
|
||||
{ 'williamboman/mason.nvim' },
|
||||
{ 'williamboman/mason-lspconfig.nvim' },
|
||||
{ 'hrsh7th/nvim-cmp' },
|
||||
{ 'hrsh7th/cmp-nvim-lsp' },
|
||||
{ 'L3MON4D3/LuaSnip' },
|
||||
{ 'hrsh7th/cmp-path' },
|
||||
{ 'hrsh7th/cmp-nvim-lua' },
|
||||
{ 'hrsh7th/cmp-buffer' },
|
||||
{ 'rafamadriz/friendly-snippets' },
|
||||
{ 'saadparwaiz1/cmp_luasnip' },
|
||||
},
|
||||
},
|
||||
'f-person/git-blame.nvim',
|
||||
'github/copilot.vim',
|
||||
'laytan/cloak.nvim',
|
||||
'kylechui/nvim-surround',
|
||||
'mogulla3/rspec.nvim',
|
||||
}
|
||||
30
nvim/.config/nvim/lua/yock/plugins/cloak.lua
Normal file
30
nvim/.config/nvim/lua/yock/plugins/cloak.lua
Normal file
@@ -0,0 +1,30 @@
|
||||
return {
|
||||
'laytan/cloak.nvim',
|
||||
opts = {
|
||||
enabled = true,
|
||||
cloak_character = '*',
|
||||
-- The applied highlight group (colors) on the cloaking, see `:h highlight`.
|
||||
highlight_group = 'Comment',
|
||||
-- Applies the length of the replacement characters for all matched
|
||||
-- patterns, defaults to the length of the matched pattern.
|
||||
cloak_length = nil, -- Provide a number if you want to hide the true length of the value.
|
||||
-- Whether it should try every pattern to find the best fit or stop after the first.
|
||||
try_all_patterns = true,
|
||||
patterns = {
|
||||
{
|
||||
-- Match any file starting with '.env'.
|
||||
-- This can be a table to match multiple file patterns.
|
||||
file_pattern = '.env*',
|
||||
-- Match an equals sign and any character after it.
|
||||
-- This can also be a table of patterns to cloak,
|
||||
-- example: cloak_pattern = { ':.+', '-.+' } for yaml files.
|
||||
cloak_pattern = '=.+',
|
||||
-- A function, table or string to generate the replacement.
|
||||
-- The actual replacement will contain the 'cloak_character'
|
||||
-- where it doesn't cover the original text.
|
||||
-- If left empty the legacy behavior of keeping the first character is retained.
|
||||
replace = nil,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
18
nvim/.config/nvim/lua/yock/plugins/colors.lua
Normal file
18
nvim/.config/nvim/lua/yock/plugins/colors.lua
Normal file
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
'f-person/auto-dark-mode.nvim',
|
||||
dependencies = { 'kepano/flexoki-neovim' },
|
||||
opts = {
|
||||
update_interval = 1000,
|
||||
set_dark_mode = function()
|
||||
vim.api.nvim_set_option('background', 'dark')
|
||||
vim.cmd('colorscheme flexoki-dark')
|
||||
end,
|
||||
set_light_mode = function()
|
||||
vim.api.nvim_set_option('background', 'light')
|
||||
vim.cmd('colorscheme flexoki-light')
|
||||
end,
|
||||
|
||||
},
|
||||
lazy = false,
|
||||
priority = 100,
|
||||
}
|
||||
7
nvim/.config/nvim/lua/yock/plugins/init.lua
Normal file
7
nvim/.config/nvim/lua/yock/plugins/init.lua
Normal file
@@ -0,0 +1,7 @@
|
||||
return {
|
||||
{ 'kepano/flexoki-neovim', name = 'flexoki', lazy = false },
|
||||
'mbbill/undotree',
|
||||
'f-person/git-blame.nvim',
|
||||
'kylechui/nvim-surround',
|
||||
'nvim-lua/plenary.nvim',
|
||||
}
|
||||
55
nvim/.config/nvim/lua/yock/plugins/lsp.lua
Normal file
55
nvim/.config/nvim/lua/yock/plugins/lsp.lua
Normal file
@@ -0,0 +1,55 @@
|
||||
return {
|
||||
'neovim/nvim-lspconfig',
|
||||
dependencies = {
|
||||
{ 'williamboman/mason.nvim' },
|
||||
{ 'williamboman/mason-lspconfig.nvim' },
|
||||
{ 'rafamadriz/friendly-snippets' },
|
||||
},
|
||||
config = function()
|
||||
require('mason').setup({})
|
||||
require('mason-lspconfig').setup({
|
||||
ensure_installed = {
|
||||
'ruby_ls',
|
||||
'rubocop',
|
||||
'tsserver',
|
||||
'lua_ls',
|
||||
},
|
||||
handlers = {
|
||||
lua_ls = function()
|
||||
require('lspconfig').lua_ls.setup({
|
||||
settings = {
|
||||
Lua = {
|
||||
diagnostics = {
|
||||
globals = {
|
||||
'vim',
|
||||
'require',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('LspAttach', {
|
||||
group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
callback = function(ev)
|
||||
-- Enable completion triggered by <c-x><c-o>
|
||||
vim.bo[ev.buf].omnifunc = 'v:lua.vim.lsp.omnifunc'
|
||||
|
||||
local opts = { buffer = bufnr, remap = false }
|
||||
vim.keymap.set('n', 'gd', function() vim.lsp.buf.definition() end, opts)
|
||||
vim.keymap.set('n', 'K', function() vim.lsp.buf.hover() end, opts)
|
||||
vim.keymap.set('n', '<leader>vws', function() vim.lsp.buf.workspace_symbol() end, opts)
|
||||
vim.keymap.set('n', '<leader>vd', function() vim.diagnostic.open_float() end, opts)
|
||||
vim.keymap.set('n', '[d', function() vim.diagnostic.goto_next() end, opts)
|
||||
vim.keymap.set('n', ']d', function() vim.diagnostic.goto_prev() end, opts)
|
||||
vim.keymap.set('n', '<leader>vca', function() vim.lsp.buf.code_action() end, opts)
|
||||
vim.keymap.set('n', '<leader>vrr', function() vim.lsp.buf.references() end, opts)
|
||||
vim.keymap.set('n', '<leader>vrn', function() vim.lsp.buf.rename() end, opts)
|
||||
vim.keymap.set('n', '<leader>vrh', function() vim.lsp.buf.signature_help() end, opts)
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
16
nvim/.config/nvim/lua/yock/plugins/rspec.lua
Normal file
16
nvim/.config/nvim/lua/yock/plugins/rspec.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
return {
|
||||
'mogulla3/rspec.nvim',
|
||||
opts = {
|
||||
allowed_file_format = function(filename)
|
||||
return vim.endswith(filename, '_spec.rb')
|
||||
end,
|
||||
|
||||
formatter = 'progress',
|
||||
focus_on_last_spec_result_window = true,
|
||||
open_quickfix_when_spec_failed = true,
|
||||
last_result_path = vim.fn.stdpath('data') .. '/rspec_last_result',
|
||||
last_failed_result_path = vim.fn.stdpath('data') .. '/rspec_last_failed_result',
|
||||
jump_command = 'edit',
|
||||
ignored_dirs_on_jump = {},
|
||||
}
|
||||
}
|
||||
46
nvim/.config/nvim/lua/yock/plugins/telescope.lua
Normal file
46
nvim/.config/nvim/lua/yock/plugins/telescope.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
return {
|
||||
'nvim-telescope/telescope.nvim',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
opts = {
|
||||
defaults = {
|
||||
vimgrep_arguments = {
|
||||
"rg",
|
||||
"--follow", -- Follow symbolic links
|
||||
"--hidden", -- Search for hidden files
|
||||
"--no-heading", -- Don't group matches by each file
|
||||
"--with-filename", -- Print the file path with the matched lines
|
||||
"--line-number", -- Show line numbers
|
||||
"--column", -- Show column numbers
|
||||
"--smart-case", -- Smart case search
|
||||
|
||||
-- Exclude some patterns from search
|
||||
"--glob=!**/.git/*",
|
||||
"--glob=!**/.idea/*",
|
||||
"--glob=!**/.vscode/*",
|
||||
"--glob=!**/build/*",
|
||||
"--glob=!**/dist/*",
|
||||
"--glob=!**/yarn.lock",
|
||||
"--glob=!**/package-lock.json",
|
||||
},
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
hidden = true,
|
||||
-- needed to exclude some files & dirs from general search
|
||||
-- when not included or specified in .gitignore
|
||||
find_command = {
|
||||
"rg",
|
||||
"--files",
|
||||
"--hidden",
|
||||
"--glob=!**/.git/*",
|
||||
"--glob=!**/.idea/*",
|
||||
"--glob=!**/.vscode/*",
|
||||
"--glob=!**/build/*",
|
||||
"--glob=!**/dist/*",
|
||||
"--glob=!**/yarn.lock",
|
||||
"--glob=!**/package-lock.json",
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
25
nvim/.config/nvim/lua/yock/plugins/treesitter.lua
Normal file
25
nvim/.config/nvim/lua/yock/plugins/treesitter.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
opts = {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "lua", "ruby", "javascript", "typescript" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
||||
-- Automatically install missing parsers when entering buffer
|
||||
-- Recommendation: set to false if you don't have `tree-sitter` CLI installed locally
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
-- Setting this to true will run `:h syntax` and tree-sitter at the same time.
|
||||
-- Set this to `true` if you depend on 'syntax' being enabled (like for indentation).
|
||||
-- Using this option may slow down your editor, and you may see some duplicate highlights.
|
||||
-- Instead of true it can also be a list of languages
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -17,3 +17,12 @@ vim.keymap.set('n', '<C-h>', '<C-w>h')
|
||||
vim.keymap.set('n', '<C-j>', '<C-w>j')
|
||||
vim.keymap.set('n', '<C-k>', '<C-w>k')
|
||||
vim.keymap.set('n', '<C-l>', '<C-w>l')
|
||||
|
||||
|
||||
vim.keymap.set('n', '<leader>pf', function() require('telescope.builtin').find_files() end)
|
||||
vim.keymap.set('n', '<C-p>', require('telescope.builtin').git_files, {})
|
||||
vim.keymap.set('n', '<leader>ps', function()
|
||||
require('telescope.builtin').grep_string({ search = vim.fn.input("Grep > ") });
|
||||
end)
|
||||
|
||||
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
|
||||
|
||||
Reference in New Issue
Block a user