nvim: change colorscheme, fix treesitter

This commit is contained in:
TheK4n 2023-03-14 21:58:02 +03:00
parent dca683a6e1
commit 122d0b2297
4 changed files with 13 additions and 7 deletions

View File

@ -1,5 +1,9 @@
local status, _ = pcall(require, "gruvbox")
local status, colorscheme = pcall(require, "nightfox")
if (not status) then return end
vim.cmd.colorscheme("gruvbox")
colorscheme.compile()
colorscheme.setup()
vim.cmd.colorscheme("nightfox")

View File

@ -1,10 +1,9 @@
local status, nvim_treesitter = pcall(require, "nvim-treesitter")
local status, nvim_treesitter = pcall(require, "nvim-treesitter.configs")
if (not status) then return end
nvim_treesitter.setup {
ensure_installed = {"python", "lua", "vim", "html", "rust"},
sync_install = true,
ensure_installed = {"python", "lua", "vim", "html", "rust", "markdown"},
auto_install = true,
highlight = {

View File

@ -21,6 +21,9 @@ local plugins = {
'nvim-lualine/lualine.nvim',
dependencies = { 'kyazdani42/nvim-web-devicons' }
},
{
'EdenEast/nightfox.nvim'
},
{
'ellisonleao/gruvbox.nvim' -- colorscheme
},

View File

@ -15,7 +15,7 @@ opt.clipboard:append { 'unnamedplus' }
opt.shortmess:append { s = true, I = true} -- disable startup message
opt.shell = 'bash'
opt.shell = 'zsh'
opt.ttimeoutlen = 50
opt.timeoutlen = 500
@ -65,7 +65,7 @@ opt.scrolloff = 7
opt.termguicolors = true
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#4E5754 gui=nocombine]]
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#464e60 gui=nocombine]]
opt.background = 'dark'