Compare commits
No commits in common. "be70a4385af44fa711f328e07218f38989e59f95" and "c0914757e57e059989aaf9b6013ec8153b733df2" have entirely different histories.
be70a4385a
...
c0914757e5
|
@ -131,20 +131,20 @@
|
||||||
|
|
||||||
-- Restore cursor position when opening a file
|
-- Restore cursor position when opening a file
|
||||||
-- https://github.com/neovim/neovim/issues/16339#issuecomment-1457394370
|
-- https://github.com/neovim/neovim/issues/16339#issuecomment-1457394370
|
||||||
vim.api.nvim_create_autocmd("BufRead", {
|
vim.api.nvim_create_autocmd('BufRead', {
|
||||||
callback = function(opts)
|
callback = function(opts)
|
||||||
vim.api.nvim_create_autocmd("BufWinEnter", {
|
vim.api.nvim_create_autocmd('BufWinEnter', {
|
||||||
once = true,
|
once = true,
|
||||||
buffer = opts.buf,
|
buffer = opts.buf,
|
||||||
callback = function()
|
callback = function()
|
||||||
local ft = vim.bo[opts.buf].filetype
|
local ft = vim.bo[opts.buf].filetype
|
||||||
local last_known_line = vim.api.nvim_buf_get_mark(opts.buf, '"')[1]
|
local last_known_line = vim.api.nvim_buf_get_mark(opts.buf, '"')[1]
|
||||||
if
|
if
|
||||||
not (ft:match("commit") and ft:match("rebase"))
|
not (ft:match('commit') and ft:match('rebase'))
|
||||||
and last_known_line > 1
|
and last_known_line > 1
|
||||||
and last_known_line <= vim.api.nvim_buf_line_count(opts.buf)
|
and last_known_line <= vim.api.nvim_buf_line_count(opts.buf)
|
||||||
then
|
then
|
||||||
vim.api.nvim_feedkeys([[g`"]], "nx", false)
|
vim.api.nvim_feedkeys([[g`"]], 'nx', false)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
@ -164,20 +164,11 @@
|
||||||
*/
|
*/
|
||||||
''
|
''
|
||||||
require("kanagawa").setup({
|
require("kanagawa").setup({
|
||||||
theme = "wave",
|
|
||||||
commentStyle = { italic = false },
|
commentStyle = { italic = false },
|
||||||
keywordStyle = { italic = false },
|
keywordStyle = { italic = false },
|
||||||
statementStyle = { bold = false },
|
|
||||||
dimInactive = true,
|
dimInactive = true,
|
||||||
colors = {
|
colors = {
|
||||||
theme = {
|
theme = {
|
||||||
wave = {
|
|
||||||
syn = {
|
|
||||||
-- Make control flow keywords more pronounced.
|
|
||||||
-- statement = colors.theme.syn.special2,
|
|
||||||
keyword = "#E46876" -- waveRed; same as syn.special2
|
|
||||||
},
|
|
||||||
},
|
|
||||||
all = {
|
all = {
|
||||||
ui = {
|
ui = {
|
||||||
-- Don't use a special background for the gutter
|
-- Don't use a special background for the gutter
|
||||||
|
@ -186,15 +177,9 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
-- https://github.com/rebelot/kanagawa.nvim/blob/master/lua/kanagawa/themes.lua
|
|
||||||
-- https://github.com/rebelot/kanagawa.nvim/blob/master/lua/kanagawa/highlights/syntax.lua
|
|
||||||
-- See `:h highlight-groups` and `:h group-name`.
|
|
||||||
overrides = function(colors)
|
overrides = function(colors)
|
||||||
local theme = colors.theme
|
local theme = colors.theme
|
||||||
return {
|
return {
|
||||||
-- Show booleans like other special symbols such as 'None'
|
|
||||||
-- in Python.
|
|
||||||
Boolean = { fg = theme.syn.special1, bold = false },
|
|
||||||
-- Transparent Floating Windows
|
-- Transparent Floating Windows
|
||||||
NormalFloat = { bg = "none" },
|
NormalFloat = { bg = "none" },
|
||||||
FloatBorder = { bg = "none" },
|
FloatBorder = { bg = "none" },
|
||||||
|
@ -209,7 +194,7 @@
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
vim.cmd.colorscheme("kanagawa")
|
vim.cmd("colorscheme kanagawa")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -508,16 +493,6 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
extensions = {
|
|
||||||
-- Use vertical layout to allow enough width for
|
|
||||||
-- side-by-side diffs.
|
|
||||||
undo = {
|
|
||||||
layout_strategy = "vertical",
|
|
||||||
layout_config = {
|
|
||||||
preview_height = 0.8,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Keymaps mostly inspired by the popular distros.
|
-- Keymaps mostly inspired by the popular distros.
|
||||||
|
@ -569,22 +544,6 @@
|
||||||
require("telescope").load_extension("ui-select")
|
require("telescope").load_extension("ui-select")
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
# Visualize your undo tree and fuzzy-search changes in it. For those
|
|
||||||
# days where committing early and often doesn't work out.
|
|
||||||
# https://github.com/debugloop/telescope-undo.nvim
|
|
||||||
{
|
|
||||||
plugin = telescope-undo-nvim;
|
|
||||||
type = "lua";
|
|
||||||
config =
|
|
||||||
/*
|
|
||||||
lua
|
|
||||||
*/
|
|
||||||
''
|
|
||||||
local telescope = require("telescope")
|
|
||||||
telescope.load_extension("undo")
|
|
||||||
vim.keymap.set("n", "<Leader>fu", telescope.extensions.undo.undo)
|
|
||||||
'';
|
|
||||||
}
|
|
||||||
|
|
||||||
# Buffer list that lives in the tabline.
|
# Buffer list that lives in the tabline.
|
||||||
# https://github.com/akinsho/bufferline.nvim
|
# https://github.com/akinsho/bufferline.nvim
|
||||||
|
|
Loading…
Reference in a new issue