Skip to content

hightlight not working #10

Description

@TalhaAksoy

i installed with vim plug (neovim)

init.vim

:set number
:set syntax
:set autoindent
:set tabstop=2
:set shiftwidth=2
:set smarttab
:set expandtab
:set softtabstop=2
:set mouse=a
:set clipboard=unnamedplus
:set completeopt=menu,menuone,noselect
:set cursorline
:set splitbelow
:set splitright

call plug#begin('/home/alha/.config/nvim/plugged')

Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.5' }
Plug 'chikko80/error-lens.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'folke/lsp-colors.nvim',
Plug 'https://github.com/chikko80/error-lens.nvim',
Plug 'vim-airline/vim-airline-themes',
Plug 'glepnir/dashboard-nvim', { 'branch': 'master' }
Plug 'https://github.com/nvim-lua/plenary.nvim',
Plug 'https://github.com/nvim-neo-tree/neo-tree.nvim',
Plug 'MunifTanjim/nui.nvim',
Plug 'http://github.com/tpope/vim-surround',
Plug 'https://github.com/tpope/vim-commentary', " For Commenting gcc & gc
Plug 'https://github.com/vim-airline/vim-airline', " Status bar
Plug 'https://github.com/ap/vim-css-color', " CSS Color Preview
Plug 'https://github.com/rafi/awesome-vim-colorschemes', " Retro Scheme
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'https://github.com/ryanoasis/vim-devicons', " Developer Icons
Plug 'https://github.com/tc50cal/vim-terminal', " Vim Terminal
Plug 'https://github.com/preservim/tagbar', " Tagbar for code navigation
Plug 'https://github.com/terryma/vim-multiple-cursors', " CTRL + N for multiple cursors
Plug 'williamboman/mason.nvim',
Plug 'williamboman/mason-lspconfig.nvim',
Plug 'neovim/nvim-lspconfig',
Plug 'kabouzeid/nvim-lspinstall',
Plug 'lewis6991/gitsigns.nvim', " OPTIONAL: for git status
Plug 'nvim-tree/nvim-web-devicons', " OPTIONAL: for file icons
Plug 'romgrk/barbar.nvim',
Plug 'kyazdani42/nvim-web-devicons',
Plug 'https://github.com/nvim-neo-tree/neo-tree.nvim',
Plug 'catppuccin/nvim', { 'as': 'catppuccin' }

call plug#end()

lua require('mason_config')
lua require('nvim-tree_config')
lua require('error-lens_config')
"source ./minimalist.vim

" Mapping
nnoremap <f5> :Neotree toggle reveal position=float<CR>
nnoremap <F8> :TagbarToggle<CR>
nnoremap <C-j> <C-w>h
nnoremap <C-l> <C-w>l
nnoremap <C-Left> :bprev<CR>
nnoremap <C-Right> :bnext<CR>
nnoremap <C-w> :BufferClose<CR>

inoremap <expr> <Tab> pumvisible() ? coc#_select_confirm() : "<Tab>"
" Mapping

:set completeopt-=preview " For No Previews
":colorscheme catppuccin-mocha
:colorscheme onedark

let g:coc_node_path = '/usr/bin/node'

" Neotree
autocmd QuitPre * if tabpagenr('$') ==  1 && winnr('$') ==  1 && exists('b:Neotree') && b:Neotree.isTabTree() | quitall | endif
autocmd BufEnter * if exists(':Neotree close') | :Neotree close | endif

"augroup NeotreeOnStart
"  autocmd!
"  autocmd VimEnter * Neotree
"augroup END
"Neotree

" BarBar
" BarBar

" Dashboard
" Enable the dashboard
let g:dashboard_enable_at_startup =  1

" Custom header
let g:dashboard_custom_header = {
\ 'type': 'text',
\ 'content': ['Hello, World!']
\ }

" Dashboard footer
let g:dashboard_footer_icon = '😄'
let g:dashboard_footer_desc = {
\ 'type': 'text',
\ 'content': ['Dashboard Footer Description']
\ }

" Session load path
let g:dashboard_session_directory = $HOME . "/.config/nvim/session"
" Dashboard


"let g:airline_theme='ayu_dark'                                                                                                             
"let g:airline_powerline_fonts = 1                                                                                                         
"let g:airline_section_b = '%{getcwd()}' " in section B of the status line display the CWD
" Disable whitespace checks in Vim Airline
"let g:airline#extensions#whitespace#enabled =  0

" Set the current directory to display in the status line
"let g:airline#extensions#branch#displayed_head_limit =  1
"let g:airline#extensions#branch#format = '%{getcwd()}'

" Remove trailing whitespace indicator from Vim Airline
"let g:airline_skip_empty_sections =  1                                    

error-lens_config.lua

require("error-lens").setup({
    -- this setting tries to auto adjust the colors
  -- based on the diagnostic-highlight groups and your
  -- theme background color with a color blender
  enabled = true,
  auto_adjust = {
    enable = false,
    fallback_bg_color = true, -- mandatory if enable true (e.g. #281478)
    step = 7, -- inc: colors should be brighter/darker
    total = 30 -- steps of blender
  },
  prefix = 10, -- distance code <-> diagnostic message
  -- default colors
  colors = {
    error_fg = "#FF6363", -- diagnostic font color
    error_bg = "#4B252C", -- diagnostic line color
    warn_fg = "#FA973A",
    warn_bg = "#403733",
    info_fg = "#5B38E8",
    info_bg = "#281478",
    hint_fg = "#25E64B",
    hint_bg = "#147828"
  }
})

what i do wrong , i cant fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions