mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nvim: autocursorline
This commit is contained in:
parent
1edcb7b0b2
commit
acbbfa23f4
2 changed files with 11 additions and 1 deletions
|
|
@ -7,7 +7,6 @@ vim.o.smartcase = true
|
||||||
|
|
||||||
vim.o.number = true
|
vim.o.number = true
|
||||||
vim.o.relativenumber = true
|
vim.o.relativenumber = true
|
||||||
vim.o.cursorline = true
|
|
||||||
vim.o.signcolumn = "yes"
|
vim.o.signcolumn = "yes"
|
||||||
|
|
||||||
vim.o.expandtab = true
|
vim.o.expandtab = true
|
||||||
|
|
|
||||||
|
|
@ -42,3 +42,14 @@ vim.api.nvim_create_autocmd("LspProgress", {
|
||||||
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
|
group = vim.api.nvim_create_augroup("UserLspConfig", {}),
|
||||||
callback = function() require("fidget").setup {} end,
|
callback = function() require("fidget").setup {} end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local auto_cursorline = vim.api.nvim_create_augroup("AutoCursorLine", {})
|
||||||
|
vim.api.nvim_create_autocmd({ "VimEnter", "WinEnter", "BufWinEnter" }, {
|
||||||
|
group = auto_cursorline,
|
||||||
|
callback = function() vim.wo.cursorline = true end,
|
||||||
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd("WinLeave", {
|
||||||
|
group = auto_cursorline,
|
||||||
|
callback = function() vim.wo.cursorline = false end,
|
||||||
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue