initial commit
This commit is contained in:
commit
31ebe341c3
13 files changed
+278
No files matched your search
@@ -0,0 +1,19 @@
|
||||
-- color scheme
|
||||
vim.g.onedark_config = { style = 'darker' }
|
||||
vim.cmd('colorscheme onedark')
|
||||
|
||||
-- highlight extra white space with red
|
||||
vim.api.nvim_set_hl(0, 'TrailingWhitespace', { ctermbg = 'red', bg = '#ff5555' })
|
||||
vim.cmd([[match TrailingWhitespace /\s\+$/]])
|
||||
|
||||
-- diagnostics
|
||||
local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " }
|
||||
for type, icon in pairs(signs) do
|
||||
local hl = "DiagnosticSign" .. type
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||
end
|
||||
|
||||
vim.diagnostic.config({
|
||||
virtual_text = { prefix = '●' };
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user