Doors/configs/nvim/init.lua

48 lines
1.2 KiB
Lua

-- Set <space> as the leader key
-- See `:help mapleader`
-- NOTE: Must happen before plugins are required (otherwise wrong leader will be used)
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- [[ Install `lazy.nvim` plugin manager ]]
require 'lazy-bootstrap'
-- [[ Configure plugins ]]
require 'lazy-plugins'
-- [[ Setting options ]]
require 'options'
-- [[ Basic Keymaps ]]
require 'keymaps'
-- [[ Configure Telescope ]]
-- (fuzzy finder)
require 'telescope-setup'
-- [[ Configure Treesitter ]]
-- (syntax parser for highlighting)
require 'treesitter-setup'
-- [[ Configure LSP ]]
-- (Language Server Protocol)
require 'lsp-setup'
-- [[ Configure nvim-cmp ]]
-- (completion)
require 'cmp-setup'
function AddTransparency()
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
vim.api.nvim_set_hl(0, "NormalNC", { bg = "none" })
vim.api.nvim_set_hl(0, "LineNr", { bg = "none" })
vim.api.nvim_set_hl(0, "GitSignsAdd", { bg = "none" })
vim.api.nvim_set_hl(0, "GitSignsChange", { bg = "none" })
vim.api.nvim_set_hl(0, "GitSignsDelete", { bg = "none" })
end
AddTransparency()
-- The line beneath this is called `modeline`. See `:help modeline`
-- vim: ts=2 sts=2 sw=2 et