mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-22 23:57:33 +00:00
Fix some highlighting
This commit is contained in:
parent
2eba3d8bc6
commit
02b0cb76bd
@ -3,9 +3,6 @@ local M = {}
|
|||||||
local utils = require("utils")
|
local utils = require("utils")
|
||||||
|
|
||||||
function M.config_lsp_ui()
|
function M.config_lsp_ui()
|
||||||
-- Add floating window boarders
|
|
||||||
vim.cmd([[autocmd ColorScheme * highlight NormalFloat guibg=#1f2335]])
|
|
||||||
vim.cmd([[autocmd ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]])
|
|
||||||
local border = {
|
local border = {
|
||||||
{ "┌", "FloatBorder" },
|
{ "┌", "FloatBorder" },
|
||||||
{ "─", "FloatBorder" },
|
{ "─", "FloatBorder" },
|
||||||
@ -132,9 +129,9 @@ local function get_default_attach(override_capabilities)
|
|||||||
-- Set autocommands conditional on server_capabilities
|
-- Set autocommands conditional on server_capabilities
|
||||||
if client.resolved_capabilities.document_highlight then
|
if client.resolved_capabilities.document_highlight then
|
||||||
vim.cmd([[
|
vim.cmd([[
|
||||||
:hi LspReferenceRead cterm=bold ctermbg=red guibg=LightYellow
|
:highlight link LspReferenceRead MatchParen
|
||||||
:hi LspReferenceText cterm=bold ctermbg=red guibg=LightYellow
|
:highlight link LspReferenceText MatchParen
|
||||||
:hi LspReferenceWrite cterm=bold ctermbg=red guibg=LightYellow
|
:highlight link LspReferenceWrite MatchParen
|
||||||
augroup lsp_document_highlight
|
augroup lsp_document_highlight
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
|
autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
|
||||||
|
Loading…
Reference in New Issue
Block a user