merge
This commit is contained in:
parent
dabce46993
commit
ae74fce2ce
41
init.lua
41
init.lua
|
|
@ -119,6 +119,12 @@ vim.schedule(function() vim.o.clipboard = 'unnamedplus' end)
|
||||||
-- Enable break indent
|
-- Enable break indent
|
||||||
vim.o.breakindent = true
|
vim.o.breakindent = true
|
||||||
|
|
||||||
|
-- Tab settings: replace tab with 4 spaces
|
||||||
|
vim.o.expandtab = true
|
||||||
|
vim.o.tabstop = 4
|
||||||
|
vim.o.shiftwidth = 4
|
||||||
|
vim.o.softtabstop = 4
|
||||||
|
|
||||||
-- Enable undo/redo changes even after closing and reopening a file
|
-- Enable undo/redo changes even after closing and reopening a file
|
||||||
vim.o.undofile = true
|
vim.o.undofile = true
|
||||||
|
|
||||||
|
|
@ -164,6 +170,26 @@ vim.o.scrolloff = 10
|
||||||
-- See `:help 'confirm'`
|
-- See `:help 'confirm'`
|
||||||
vim.o.confirm = true
|
vim.o.confirm = true
|
||||||
|
|
||||||
|
-- Make active window more pronounced
|
||||||
|
vim.o.winblend = 0
|
||||||
|
-- Make window separators more visible
|
||||||
|
vim.api.nvim_set_hl(0, 'WinSeparator', { fg = '#7aa2f7', bold = true })
|
||||||
|
-- Make tab colors more pronounced with vibrant colors
|
||||||
|
vim.api.nvim_set_hl(0, 'TabLine', { bg = '#2e3440', fg = '#d8dee9', bold = false }) -- Inactive: gray bg, white text
|
||||||
|
vim.api.nvim_set_hl(0, 'TabLineSel', { bg = '#ff79c6', fg = '#000000', bold = true }) -- Active: bright pink bg, black text
|
||||||
|
vim.api.nvim_set_hl(0, 'TabLineFill', { bg = '#1e1e2e' }) -- Fill: dark background
|
||||||
|
-- Dim inactive windows
|
||||||
|
vim.api.nvim_create_autocmd({ 'WinEnter', 'BufEnter' }, {
|
||||||
|
callback = function()
|
||||||
|
vim.wo.winhighlight = ''
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
vim.api.nvim_create_autocmd({ 'WinLeave', 'BufLeave' }, {
|
||||||
|
callback = function()
|
||||||
|
vim.wo.winhighlight = 'Normal:NormalNC'
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
||||||
-- [[ Basic Keymaps ]]
|
-- [[ Basic Keymaps ]]
|
||||||
-- See `:help vim.keymap.set()`
|
-- See `:help vim.keymap.set()`
|
||||||
|
|
||||||
|
|
@ -388,11 +414,16 @@ require('lazy').setup({
|
||||||
-- You can put your default mappings / updates / etc. in here
|
-- You can put your default mappings / updates / etc. in here
|
||||||
-- All the info you're looking for is in `:help telescope.setup()`
|
-- All the info you're looking for is in `:help telescope.setup()`
|
||||||
--
|
--
|
||||||
-- defaults = {
|
defaults = {
|
||||||
-- mappings = {
|
mappings = {
|
||||||
-- i = { ['<c-enter>'] = 'to_fuzzy_refine' },
|
i = {
|
||||||
-- },
|
['<CR>'] = 'select_tab',
|
||||||
-- },
|
},
|
||||||
|
n = {
|
||||||
|
['<CR>'] = 'select_tab',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
-- pickers = {}
|
-- pickers = {}
|
||||||
extensions = {
|
extensions = {
|
||||||
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
['ui-select'] = { require('telescope.themes').get_dropdown() },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue