add theme
This commit is contained in:
parent
af0a29b20d
commit
0e9fb06adf
1 changed files with 34 additions and 9 deletions
|
@ -11,8 +11,6 @@ vim.opt.undofile = true
|
|||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
|
||||
vim.cmd("colorscheme habamax")
|
||||
|
||||
local plugins = {
|
||||
{
|
||||
source = "neovim/nvim-lspconfig",
|
||||
|
@ -23,6 +21,12 @@ local plugins = {
|
|||
},
|
||||
{
|
||||
source = "andweeb/presence.nvim"
|
||||
},
|
||||
{
|
||||
source = "nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
{
|
||||
source = "Mofiqul/vscode.nvim",
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -103,6 +107,34 @@ for server in pairs(servers) do
|
|||
lspconfig[server].setup(config)
|
||||
end
|
||||
|
||||
require("nvim-treesitter.configs").setup({
|
||||
sync_install = false,
|
||||
auto_install = true,
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
disable = function(lang, buf)
|
||||
local max_filesize = 100 * 1024
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
})
|
||||
|
||||
local c = require('vscode.colors').get_colors()
|
||||
require("vscode").setup({
|
||||
group_overrides = {
|
||||
Comment = { fg=c.vscDarkBlue, bg=c.vscLightGreen, bold=true },
|
||||
}
|
||||
})
|
||||
|
||||
vim.cmd("colorscheme vscode")
|
||||
|
||||
-- Setup Discord rich presence
|
||||
require("presence").setup({
|
||||
neovim_image_text = "Neovim",
|
||||
|
@ -160,13 +192,6 @@ vim.api.nvim_create_autocmd("VimEnter", {
|
|||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = { "c", "lua", "md", "vim" },
|
||||
callback = function()
|
||||
vim.treesitter.start()
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
callback = function()
|
||||
vim.lsp.buf.format({ async = false })
|
||||
|
|
Loading…
Add table
Reference in a new issue