cosmetics: replace double-quotes with single-quotes
This commit is contained in:
@@ -1,34 +1,35 @@
|
||||
return {
|
||||
"tpope/vim-fugitive",
|
||||
config = function()
|
||||
vim.keymap.set("n", "<leader>gs", vim.cmd.Git)
|
||||
'tpope/vim-fugitive',
|
||||
config = function()
|
||||
vim.keymap.set('n', "<leader>gs", vim.cmd.Git)
|
||||
|
||||
local Crentist_Fugitive = vim.api.nvim_create_augroup("Crentist_Fugitive", {})
|
||||
local Crentist_Fugitive = vim.api.nvim_create_augroup('Crentist_Fugitive', {})
|
||||
|
||||
local autocmd = vim.api.nvim_create_autocmd
|
||||
autocmd("BufWinEnter", {
|
||||
autocmd('BufWinEnter', {
|
||||
group = Crentist_Fugitive,
|
||||
pattern = "*",
|
||||
pattern = '*',
|
||||
callback = function()
|
||||
if vim.bo.ft ~= "fugitive" then
|
||||
if vim.bo.ft ~= 'fugitive' then
|
||||
return
|
||||
end
|
||||
|
||||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
local opts = {buffer = bufnr, remap = false}
|
||||
vim.keymap.set("n", "<leader>p", function()
|
||||
vim.keymap.set('n', "<leader>p", function()
|
||||
vim.cmd.Git('push')
|
||||
end, opts)
|
||||
|
||||
-- rebase always
|
||||
vim.keymap.set("n", "<leader>P", function()
|
||||
vim.keymap.set('n', "<leader>P", function()
|
||||
vim.cmd.Git({'pull', '--rebase'})
|
||||
end, opts)
|
||||
|
||||
-- NOTE: It allows me to easily set the branch i am pushing and any tracking
|
||||
-- needed if i did not set the branch up correctly
|
||||
vim.keymap.set("n", "<leader>t", ":Git push -u origin ", opts);
|
||||
vim.keymap.set('n', "<leader>t", ":Git push -u origin ", opts);
|
||||
end,
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
return {
|
||||
"lewis6991/gitsigns.nvim",
|
||||
'lewis6991/gitsigns.nvim',
|
||||
opts = {
|
||||
current_line_blame = true,
|
||||
attach_to_untracked = true,
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
return {
|
||||
"theprimeagen/harpoon",
|
||||
branch = "harpoon2",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
'theprimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
local harpoon = require("harpoon")
|
||||
local harpoon = require('harpoon')
|
||||
|
||||
harpoon:setup()
|
||||
|
||||
-- basic telescope configuration
|
||||
local conf = require("telescope.config").values
|
||||
local conf = require('telescope.config').values
|
||||
local function toggle_telescope(harpoon_files)
|
||||
local file_paths = {}
|
||||
for _, item in ipairs(harpoon_files.items) do
|
||||
@@ -16,8 +16,8 @@ return {
|
||||
end
|
||||
|
||||
require('telescope.pickers').new({}, {
|
||||
prompt_title = "Harpoon",
|
||||
finder = require("telescope.finders").new_table({
|
||||
prompt_title = 'Harpoon',
|
||||
finder = require('telescope.finders').new_table({
|
||||
results = file_paths,
|
||||
}),
|
||||
previewer = conf.file_previewer({}),
|
||||
@@ -25,15 +25,15 @@ return {
|
||||
}):find()
|
||||
end
|
||||
|
||||
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
||||
vim.keymap.set("n", "<C-e>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
vim.keymap.set("n", "<leader><C-e>", function() toggle_telescope(harpoon:list()) end,
|
||||
{ desc = "Open harpoon window" })
|
||||
vim.keymap.set('n', '<leader>a', function() harpoon:list():add() end)
|
||||
vim.keymap.set('n', '<C-e>', function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
||||
vim.keymap.set('n', '<leader><C-e>', function() toggle_telescope(harpoon:list()) end,
|
||||
{ desc = 'Open harpoon window' })
|
||||
|
||||
vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end)
|
||||
vim.keymap.set("n", "<C-j>", function() harpoon:list():select(2) end)
|
||||
vim.keymap.set("n", "<C-k>", function() harpoon:list():select(3) end)
|
||||
vim.keymap.set("n", "<C-l>", function() harpoon:list():select(4) end)
|
||||
vim.keymap.set('n', '<C-h>', function() harpoon:list():select(1) end)
|
||||
vim.keymap.set('n', '<C-j>', function() harpoon:list():select(2) end)
|
||||
vim.keymap.set('n', '<C-k>', function() harpoon:list():select(3) end)
|
||||
vim.keymap.set('n', '<C-l>', function() harpoon:list():select(4) end)
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
return { "lukas-reineke/indent-blankline.nvim", main = "ibl", opts = {} }
|
||||
return { 'lukas-reineke/indent-blankline.nvim', main = 'ibl', opts = {} }
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
return {
|
||||
{
|
||||
"nvim-lua/plenary.nvim",
|
||||
name = "plenary"
|
||||
'nvim-lua/plenary.nvim',
|
||||
name = 'plenary'
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,8 @@ return {
|
||||
local navic = require('nvim-navic')
|
||||
navic.setup({
|
||||
lsp = {
|
||||
auto_attach = true
|
||||
auto_attach = true,
|
||||
preference = { 'helm_ls', 'yamlls' }
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user