Setup the directory structure to handle both mac and linux, and stowing with only one command, well two, one for the OS specific dir as well.
This commit is contained in:
parent
5759f6a798
commit
bc87253453
65 changed files with 0 additions and 0 deletions
|
|
@ -1,32 +0,0 @@
|
|||
local function setup_yank_highlight()
|
||||
-- Create a new highlight group which will be used for yank highlighting with the name "YankHighlight"
|
||||
vim.cmd("highlight YankHighlight guibg=#e0af68")
|
||||
|
||||
-- Create an autocommand group called "YankHighlight" and clear it
|
||||
local yank_autocommand = vim.api.nvim_create_augroup("YankHighlightAutocommand", { clear = true })
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function()
|
||||
vim.highlight.on_yank({
|
||||
timeout = 250,
|
||||
higroup = "YankHighlight",
|
||||
})
|
||||
end,
|
||||
group = yank_autocommand,
|
||||
pattern = "*",
|
||||
})
|
||||
end
|
||||
|
||||
-- Load keymaps before loading any plugins
|
||||
require("keymaps")
|
||||
|
||||
-- change and personalize native vim settings
|
||||
vim.opt = require("vim_opt")
|
||||
|
||||
-- Initialize Lazy package manager
|
||||
require("lazy_init")
|
||||
|
||||
-- Initialize plugins, add a plugin by creating a new file in the plugins dir
|
||||
require("lazy").setup("plugs")
|
||||
|
||||
-- See ":help vim.highlight.on_yank()"
|
||||
setup_yank_highlight()
|
||||
Loading…
Add table
Add a link
Reference in a new issue