.dotfiles/home/.config/nvim/init.lua
Martin Larsson 472208ea95 Setup debug adapters for codelldb, debugpy and gopls. Also remove
nvim-dap-profiles :( Apparently there is a way to do the same thing
using launch.json built into dap, much better than my solution.
2025-01-11 19:08:40 +01:00

38 lines
1 KiB
Lua

local function setup_yank_highlight()
vim.api.nvim_set_hl(0, "YankHighlight", { bg = "#e0af68" })
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,
})
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 the sticky terminal window at the bottom
require("terminal")
-- Initialize the custom window management functionality
require("window_management").setup()
-- Set configs for servers and enable them in the Neovim LSP Client
require("lsp/setup")
-- Set configs for nvim-dap so we can debug
require("dap/setup")
-- See ":help vim.highlight.on_yank()"
setup_yank_highlight()