format all files
This commit is contained in:
parent
7adc3a8bf9
commit
0a17321086
26 changed files with 331 additions and 331 deletions
1
init.lua
1
init.lua
|
@ -26,4 +26,3 @@ require("lazy").setup("plugins", {
|
|||
vim.cmd("colorscheme material")
|
||||
require("tools")
|
||||
require("autocommands")
|
||||
|
||||
|
|
|
@ -105,7 +105,6 @@ require("util").keymaps({
|
|||
["<C-r>"] = { '"hy:%s/<C-r>h//g<left><left>', desc = "Replace current selection" },
|
||||
[">"] = { "> gv", desc = "Indent selection" },
|
||||
["<"] = { "< gv", desc = "Outdent selection" },
|
||||
|
||||
},
|
||||
i = {
|
||||
["<C-k>"] = { "<Up>", desc = "Up" },
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
vim.g.NERDCreateDefaultMappings = 0
|
||||
vim.g.NERDDefaultAlign = 'both'
|
||||
vim.g.NERDDefaultAlign = "both"
|
||||
vim.g.NERDSpaceDelims = 1
|
||||
vim.cmd("filetype plugin on")
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ return {
|
|||
"<leader>xx",
|
||||
"<cmd>:'<,'>FloatermNew --autoclose=2<cr>",
|
||||
desc = "Run selected as command in float terminal",
|
||||
mode = "v"
|
||||
mode = "v",
|
||||
},
|
||||
{ "<C-x>", "<cmd>FloatermToggle Terminal<cr>", desc = "Toggle float terminal" },
|
||||
{ "<C-z>", "<cmd>FloatermNew --disposable<cr>", desc = "Toggle disposable float terminal", mode = { "v", "n" }}
|
||||
{ "<C-z>", "<cmd>FloatermNew --disposable<cr>", desc = "Toggle disposable float terminal", mode = { "v", "n" } },
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local highlight = require('util').highlight
|
||||
local highlight = require("util").highlight
|
||||
-- Dull Version
|
||||
highlight("GitGutterUntracked", { fg = "#688066", gui = "nocombine" })
|
||||
|
||||
|
@ -8,7 +8,7 @@ return {
|
|||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
opts = {
|
||||
watch_gitdir = {
|
||||
interval = 100
|
||||
interval = 100,
|
||||
},
|
||||
signs = {
|
||||
add = { hl = "GitGutterAdd" },
|
||||
|
@ -20,7 +20,7 @@ return {
|
|||
},
|
||||
current_line_blame_opts = {
|
||||
virt_text = true,
|
||||
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'
|
||||
virt_text_pos = "eol", -- 'eol' | 'overlay' | 'right_align'
|
||||
delay = 0,
|
||||
ignore_whitespace = false,
|
||||
},
|
||||
|
@ -28,8 +28,8 @@ return {
|
|||
vim.keymap.set("n", "<leader>gb", function()
|
||||
package.loaded.gitsigns.toggle_current_line_blame()
|
||||
end, { desc = "Toggle git blame on current line" })
|
||||
end
|
||||
}
|
||||
end,
|
||||
},
|
||||
},
|
||||
{
|
||||
"Neogitorg/neogit",
|
||||
|
@ -38,17 +38,20 @@ return {
|
|||
},
|
||||
opts = {
|
||||
integrations = {
|
||||
diffview = true
|
||||
diffview = true,
|
||||
},
|
||||
sections = {
|
||||
recent = false
|
||||
}
|
||||
recent = false,
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>gs", function()
|
||||
require('neogit').open({ kind = "vsplit" })
|
||||
end }
|
||||
}
|
||||
{
|
||||
"<leader>gs",
|
||||
function()
|
||||
require("neogit").open({ kind = "vsplit" })
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
|
@ -92,7 +95,7 @@ return {
|
|||
multi_file = {
|
||||
diff_merges = "first-parent",
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
win_config = {
|
||||
position = "bottom",
|
||||
|
@ -103,5 +106,5 @@ return {
|
|||
keys = {
|
||||
{ "<leader>gd", "<cmd>DiffviewOpen<cr>", desc = "Opens git diff view." },
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
vim.opt.list = true
|
||||
-- vim.opt.listchars = ''
|
||||
-- vim.opt.listchars:append "space:⋅"
|
||||
vim.opt.listchars:append "eol:↴"
|
||||
vim.opt.listchars:append "tab: >"
|
||||
vim.opt.listchars:append("eol:↴")
|
||||
vim.opt.listchars:append("tab: >")
|
||||
|
||||
local highlight = require('util').highlight
|
||||
local highlight = require("util").highlight
|
||||
highlight("NonText", { fg = "#303030", gui = "nocombine" })
|
||||
|
||||
return {
|
||||
|
@ -31,10 +31,10 @@ return {
|
|||
"IndentBlanklineScope3",
|
||||
"IndentBlanklineScope4",
|
||||
"IndentBlanklineScope5",
|
||||
}
|
||||
},
|
||||
},
|
||||
indent = {
|
||||
char = '│',
|
||||
char = "│",
|
||||
highlight = {
|
||||
"IndentBlanklineIndent1",
|
||||
"IndentBlanklineIndent2",
|
||||
|
@ -42,10 +42,10 @@ return {
|
|||
"IndentBlanklineIndent4",
|
||||
"IndentBlanklineIndent5",
|
||||
},
|
||||
}
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local hooks = require "ibl.hooks"
|
||||
local hooks = require("ibl.hooks")
|
||||
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
|
||||
vim.api.nvim_set_hl(0, "IndentBlanklineIndent1", { fg = "#915053" })
|
||||
vim.api.nvim_set_hl(0, "IndentBlanklineIndent2", { fg = "#A27F3E" })
|
||||
|
@ -60,6 +60,6 @@ return {
|
|||
vim.api.nvim_set_hl(0, "IndentBlanklineScope5", { fg = "#917DC0" })
|
||||
end)
|
||||
|
||||
require('ibl').setup(opts)
|
||||
end
|
||||
require("ibl").setup(opts)
|
||||
end,
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ local function langs()
|
|||
if client.name == "pyright" then
|
||||
out = vim.fn.system({ "python", "-V" })
|
||||
elseif client.name == "tsserver" then
|
||||
out = 'node ' .. vim.fn.system({ "node", "--version" })
|
||||
out = "node " .. vim.fn.system({ "node", "--version" })
|
||||
end
|
||||
if out ~= nil and out ~= "" then
|
||||
langs[#langs + 1] = vim.trim(out)
|
||||
|
@ -58,8 +58,8 @@ return {
|
|||
},
|
||||
},
|
||||
lualine_b = {
|
||||
"mode"
|
||||
}
|
||||
"mode",
|
||||
},
|
||||
},
|
||||
inactive_winbar = {
|
||||
lualine_a = {
|
||||
|
|
|
@ -18,7 +18,6 @@ function M.keymaps(mappings)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function M.spread(template)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue