Fix neovim highlighting

This commit is contained in:
Martin Pander
2026-05-08 20:55:41 +02:00
parent c092fdeb48
commit 15c019b4df
7 changed files with 121 additions and 52 deletions

View File

@@ -49,6 +49,7 @@ vim.opt.encoding = 'utf-8'
vim.opt.completeopt = 'menu,menuone,noselect'
vim.opt.termguicolors = true
vim.opt.conceallevel = 1
vim.opt.updatetime = 300
----------------------------
----------- SWAP -----------
@@ -65,6 +66,20 @@ vim.opt.directory = swapdir .. "," .. temp
----------------------------
-------- CLIPBOARD ---------
----------------------------
-- Force Neovim to use the OSC 52 provider explicitly
-- This often resolves the "waiting" hang by properly handling the sequence
vim.g.clipboard = {
name = 'OSC 52',
copy = {
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
},
paste = {
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
['*'] = require('vim.ui.clipboard.osc52').paste('*'),
},
}
if vim.fn.has("wsl") == 1 then
vim.g.clipboard = {
name = 'WslClipboard',
@@ -78,15 +93,17 @@ if vim.fn.has("wsl") == 1 then
},
cache_enabled = 0,
}
vim.opt.clipboard = 'unnamedplus'
end
vim.opt.clipboard = 'unnamedplus'
----------------------------
-------- COMMANDS ----------
----------------------------
vim.cmd('filetype plugin indent on')
vim.cmd.colorscheme "catppuccin-latte"
----------------------------
@@ -171,24 +188,17 @@ vim.diagnostic.config({
prefix = '',
current_line = false,
severity = {
-- min = vim.diagnostic.severity.INFO,
max = vim.diagnostic.severity.INFO,
},
},
virtual_lines = {
current_line = false,
severity = {
min = vim.diagnostic.severity.WARN,
-- max = vim.diagnostic.severity.WARN,
min = vim.diagnostic.severity.HINT,
},
},
virtual_lines = false,
float = {
prefix = '',
focusable = false,
style = "minimal",
border = "rounded",
source = "always",
header = "",
scope = 'line',
style = 'minimal',
border = 'rounded',
source = 'always',
header = '',
},
})