Did some changes

This commit is contained in:
2024-03-17 12:18:16 +01:00
parent f56abeaf5b
commit 76b4eb8628
4 changed files with 12 additions and 7 deletions

View File

@@ -2,8 +2,9 @@ local autocmd = vim.api.nvim_create_autocmd
local augroup = vim.api.nvim_create_augroup local augroup = vim.api.nvim_create_augroup
local cmd = vim.api.nvim_create_user_command local cmd = vim.api.nvim_create_user_command
-- Groups -- Groups
local nvimhelp = augroup("help_window_right", {}) local nvimhelp = augroup("help_window_right", { clear = true })
local mkdirrun = augroup("MkdirRun", { clear = true }) local mkdirrun = augroup("MkdirRun", { clear = true })
local yank = augroup("kickstart-highlight-yank", { clear = true })
cmd("ThemeSwitcher", function() cmd("ThemeSwitcher", function()
require("taken.functions.themes").themeselector() require("taken.functions.themes").themeselector()
@@ -11,6 +12,14 @@ end, {
desc = "Select a theme", desc = "Select a theme",
}) })
autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = yank,
callback = function()
vim.highlight.on_yank()
end,
})
autocmd("BufWinEnter", { autocmd("BufWinEnter", {
group = nvimhelp, group = nvimhelp,
pattern = { "*.txt" }, pattern = { "*.txt" },

View File

@@ -1,7 +1,7 @@
if vim.g.vscode then if vim.g.vscode then
require("taken.vscode") require("taken.core.remaps")
else else
require("taken.core") require("taken.core")
require("taken.lazy") require("taken.lazy")
require("taken.custom") require("taken.custom")
end end

View File

@@ -19,9 +19,6 @@ local plugins = {
} }
local opts = { local opts = {
dev = {
path = "~/git/nvim",
},
checker = { checker = {
enabled = true, enabled = true,
notify = false, notify = false,

View File

@@ -1 +0,0 @@
require("taken.core.remaps")