blob: 609ac18fc4af6d899581461e0f9ce9d327a5cc24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
-- colorscheme declaration
vim.cmd("colorscheme tender")
-- coc.nvim colors
vim.cmd("highlight CocFloating ctermbg=0")
vim.cmd("highlight CocErrorFloat ctermfg=15")
-- appearance of splits and vsplits
vim.cmd("highlight VertSplit ctermfg=235 guifg=#3c3836")
vim.cmd("highlight StatusLine ctermfg=black ctermbg=lightgray")
vim.cmd("highlight StatusLineNC ctermfg=darkgray ctermbg=lightgray")
-- gui appearance declarations
if vim.fn.has('gui_running') == 1 then
vim.opt.t_Co = 256
vim.opt.guifont = "JetBrains Mono 11"
vim.opt.guioptions:remove("m")
vim.opt.guioptions:remove("T")
vim.opt.guioptions:remove("r")
vim.opt.guioptions:remove("L")
vim.cmd("colorscheme tender")
end
-- remove trailing whitespace from python and fortran files
vim.api.nvim_exec([[
autocmd BufWritePre *.py :%s/\s\+$//e
autocmd BufWritePre *.f90 :%s/\s\+$//e
autocmd BufWritePre *.f95 :%s/\s\+$//e
autocmd BufWritePre *.for :%s/\s\+$//e
]], false)
-- other appearance settings that I don't know how to set in lua
vim.cmd("filetype plugin on")
vim.cmd("syntax on")
vim.cmd("highlight Cursorline cterm=bold ctermbg=black")
vim.cmd("filetype indent on")
-- set the text color of the line numbers
vim.cmd('highlight LineNr guifg=darkgray ctermfg=darkgray')
-- set the text color for the current line number
vim.cmd('highlight CursorLineNr guifg=cyan ctermfg=cyan')
|