summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/nvim/lua/plugs-config/lualine.lua31
-rw-r--r--.config/nvim/lua/settings.lua12
2 files changed, 33 insertions, 10 deletions
diff --git a/.config/nvim/lua/plugs-config/lualine.lua b/.config/nvim/lua/plugs-config/lualine.lua
index 56e7d83..6646d02 100644
--- a/.config/nvim/lua/plugs-config/lualine.lua
+++ b/.config/nvim/lua/plugs-config/lualine.lua
@@ -146,16 +146,23 @@ ins_left {
padding = { right = 1 },
}
-ins_left {
- -- filesize component
- 'filesize',
- cond = conditions.buffer_not_empty,
-}
+-- ins_left {
+-- 'filename',
+-- cond = conditions.buffer_not_empty,
+-- color = { fg = colors.magenta, gui = 'bold' },
+-- }
ins_left {
- 'filename',
- cond = conditions.buffer_not_empty,
- color = { fg = colors.magenta, gui = 'bold' },
+ 'buffers',
+ show_filename_only = true,
+ hide_filename_extension = false,
+ show_modified_status = true,
+ -- color = { fg = colors.darkblue },
+ -- buffers_color = {
+ -- -- Same values as the general color option can be used here.
+ -- active = 'lualine_{section}_active', -- Color for active buffer.
+ -- inactive = 'lualine_{section}_inactive', -- Color for inactive buffer.
+ -- },
}
ins_left {
@@ -195,7 +202,7 @@ ins_left {
return msg
end,
icon = ' LSP:',
- color = { fg = colors.darkblue },
+ color = { fg = colors.cyan },
}
ins_right {
@@ -205,6 +212,12 @@ ins_right {
}
ins_right {
+ -- filesize component
+ 'filesize',
+ cond = conditions.buffer_not_empty,
+}
+
+ins_right {
'branch',
icon = '',
color = { fg = colors.violet, gui = 'bold' },
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua
index 992f96d..238caea 100644
--- a/.config/nvim/lua/settings.lua
+++ b/.config/nvim/lua/settings.lua
@@ -25,12 +25,14 @@ vim.opt.ruler = true
vim.opt.tabstop = 4
vim.opt.textwidth = 80
vim.opt.timeoutlen = 0
+vim.opt.timeoutlen = 250
vim.opt.undodir = '/tmp/nvim_undo'
vim.opt.undofile = true
vim.opt.wildmode = 'longest,list,full'
vim.opt.directory = '/tmp/nvim_swap'
+vim.o.ignorecase = true
+vim.o.smartcase = true
vim.opt.wrap = true
-vim.opt.textwidth = 0
vim.cmd [[
syntax on
filetype plugin indent on
@@ -44,3 +46,11 @@ autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
vim.g.mapleader = '\\'
vim.g.maplocalleader = '\\'
vim.g['battery#update_statusline'] = 1
+local highlight_group = vim.api.nvim_create_augroup('YankHighlight', { clear = true })
+vim.api.nvim_create_autocmd('TextYankPost', {
+ callback = function()
+ vim.highlight.on_yank()
+ end,
+ group = highlight_group,
+ pattern = '*',
+})