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:
Martin Larsson 2024-04-19 01:19:38 +02:00
parent 5759f6a798
commit bc87253453
65 changed files with 0 additions and 0 deletions

View file

@ -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()