set cursorline in terminal

This commit is contained in:
xfy
2024-09-14 14:43:22 +08:00
parent eafb5a3c56
commit 2d7c2d8678
2 changed files with 7 additions and 1 deletions

View File

@ -41,7 +41,7 @@
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
"nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" },
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
"nvim-tree.lua": { "branch": "master", "commit": "a4dd5ad5c8f9349142291d24e0e6466995594b9a" },
"nvim-tree.lua": { "branch": "master", "commit": "bd4881660bf0ddfa6acb21259f856ba3dcb26a93" },
"nvim-treesitter": { "branch": "master", "commit": "e0338f2b74fbad808f2569c7d4eadd8796af2118" },
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
"nvim-web-devicons": { "branch": "master", "commit": "9154484705968658e9aab2b894d1b2a64bf9f83d" },

View File

@ -10,9 +10,15 @@ return {
float_opts = {
border = "curved",
},
on_open = function()
vim.wo.cursorline = true
end,
})
local horizontal = Terminal:new({
direction = "horizontal",
on_open = function()
vim.wo.cursorline = true
end,
})
local map = vim.keymap.set