init.lua
This commit is contained in:
@@ -168,9 +168,6 @@ require('lazy').setup({
|
|||||||
'catppuccin/nvim',
|
'catppuccin/nvim',
|
||||||
name = 'catppuccin',
|
name = 'catppuccin',
|
||||||
priority = 1000,
|
priority = 1000,
|
||||||
config = function()
|
|
||||||
vim.cmd.colorscheme 'catppuccin-macchiato'
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@@ -241,7 +238,7 @@ require('lazy').setup({
|
|||||||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||||
--
|
--
|
||||||
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
|
-- For additional information see: https://github.com/folke/lazy.nvim#-structuring-your-plugins
|
||||||
-- { import = 'custom.plugins' },
|
{ import = 'custom.plugins' },
|
||||||
}, {})
|
}, {})
|
||||||
|
|
||||||
-- [[ Setting options ]]
|
-- [[ Setting options ]]
|
||||||
@@ -250,6 +247,10 @@ require('lazy').setup({
|
|||||||
|
|
||||||
-- Set highlight on search
|
-- Set highlight on search
|
||||||
vim.o.hlsearch = true
|
vim.o.hlsearch = true
|
||||||
|
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
||||||
|
|
||||||
|
-- Set colorcolumn
|
||||||
|
vim.opt.colorcolumn = "120"
|
||||||
|
|
||||||
-- Make line numbers default
|
-- Make line numbers default
|
||||||
vim.wo.number = true
|
vim.wo.number = true
|
||||||
@@ -260,7 +261,10 @@ vim.o.mouse = 'a'
|
|||||||
-- Sync clipboard between OS and Neovim.
|
-- Sync clipboard between OS and Neovim.
|
||||||
-- Remove this option if you want your OS clipboard to remain independent.
|
-- Remove this option if you want your OS clipboard to remain independent.
|
||||||
-- See `:help 'clipboard'`
|
-- See `:help 'clipboard'`
|
||||||
vim.o.clipboard = 'unnamedplus'
|
-- vim.o.clipboard = 'unnamedplus'
|
||||||
|
--
|
||||||
|
-- leader y and p yanks and pastes from the system clipboards
|
||||||
|
vim.keymap.set('n', "<leader>y", "<registers>+y")
|
||||||
|
|
||||||
-- Enable break indent
|
-- Enable break indent
|
||||||
vim.o.breakindent = true
|
vim.o.breakindent = true
|
||||||
@@ -293,9 +297,12 @@ vim.o.tabstop = 4
|
|||||||
vim.o.guicursor = "a:block"
|
vim.o.guicursor = "a:block"
|
||||||
|
|
||||||
-- Set transparent background
|
-- Set transparent background
|
||||||
vim.cmd [[
|
--[[ vim.cmd [[
|
||||||
hi Normal guibg=None
|
hi Normal guibg=None
|
||||||
]]
|
hi NvimTreeNormal guibg=None
|
||||||
|
hi NvimTreeNormalFloat guibg=None
|
||||||
|
hi NvimTreeNormalNC guibg=None
|
||||||
|
]]--]]
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
|
|
||||||
@@ -623,5 +630,16 @@ cmp.setup {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- set up catppuccin
|
||||||
|
require('catppuccin').setup({
|
||||||
|
transparent_background = true,
|
||||||
|
integrations = {
|
||||||
|
nvimtree = true,
|
||||||
|
mason = true,
|
||||||
|
treesitter = true,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.cmd.colorscheme 'catppuccin-macchiato'
|
||||||
-- The line beneath this is called `modeline`. See `:help modeline`
|
-- The line beneath this is called `modeline`. See `:help modeline`
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|||||||
Reference in New Issue
Block a user