u/Odd-Procedure5985

▲ 22 r/vim+1 crossposts

How do I change the cursor to a block in normal mode and to a beam in insert mode, inside vim's built in :terminal ?

In neovim, this can be done by:

vim.opt.guicursor:append("t:ver25")
vim.opt.guicursor:append("t:blinkon0")

but, this doesn't work in vim, written in vim script:

set guicursor+=t:ver25
set guicursor+=t:blinkon0

E546: Illegal mode: guicursor+=t:ver25 line 30: E546: Illegal mode: guicursor+=t:blinkon0

I have the following to make my cursor a block in normal mode and a beam in insert mode in Vim, but this doesnt work for the :terminal

let &t_SI = "\<Esc>[6 q"
let &t_EI = "\<Esc>[2 q"

is there a way to make the same behaviour possible inside vim's built in terminal ?

OS : cachyos
vim : 9.2
terminal : konsole and kitty

Thanks in advance

reddit.com
u/Odd-Procedure5985 — 8 days ago
▲ 10 r/neovim

Colorschemes (Cattppuccin / Tokyonight) don't work as intended and I can't seem to findout why

Kernel Version : Linux 7.1.4-1-cachyos

KDE version: 6.7.3

Terminal : Konsole, Alacritty

Neovim version : 0.12.4

Plugin Manager: Vim Plug

screenshot of c code using catppuccin : ( the ss is for c, but it doesnt work for any language including lua and other colorschemes like tokyonight also dont work)

https://preview.redd.it/k18dw2ey9dfh1.png?width=717&format=png&auto=webp&s=fab39fd5899ae3978d9efb7c77c00598d241231b

This is not the correct syntax highlighting.

Some init.lua lines:

-- Manage Colors and Aesthetics
vim.opt.termguicolors = true
vim.opt.cursorline = true
require("catppuccin").setup({
    flavour = "mocha",
    integrations = {
        treesitter = true,   
        native_lsp = { enabled = true },
    }
})
vim.cmd.colorscheme("catppuccin")

-- Manage Plugins
-- vim.treesitter.start()
vim.api.nvim_create_autocmd('FileType', {
    pattern = { 'lua', 'c', 'vim', 'vimdoc', 'markdown', 'query', 'markdown_inline'}, 
    callback = function()
        vim.treesitter.start()
    end,
})

checkhealth for treesitter :

https://preview.redd.it/qdjt32wuadfh1.png?width=1135&format=png&auto=webp&s=c3e8bc4346c8776cddb37afcc6177218a083679c

I searched on google and tried a bunch of different things but nothing seems to work

Any help would be appreciated.

thanks in advance

Solution : Seems to be the fact that I don't use LSP, or I could still be wrong !

reddit.com
u/Odd-Procedure5985 — 26 days ago

I saw a process on my system I had never seen before

Hi, I have just started using cachyos, before this I used to use Mint.

Looking at btop, i found the following:

https://preview.redd.it/icz4kcp715fh1.png?width=1055&format=png&auto=webp&s=e6566d5c318cadbb9ec59da7dc9eedacc449afab

642 irq/170-elan_i2
is something I haven't seen before on Mint.

I googled it and found it is my laptop's touchpad.

I just had a question on why I never saw this on Mint, but I see it here.

Do I have to do something about it?

reddit.com
u/Odd-Procedure5985 — 27 days ago