kaicataldo / material.vim Goto Github PK
View Code? Open in Web Editor NEW๐จ A port of the Material color scheme for Vim/Neovim
License: MIT License
๐จ A port of the Material color scheme for Vim/Neovim
License: MIT License
This theme is missing the Oceanic and Light variants that can be seen on the official site for the Material theme. We should add them!
I think this might be because macOS Terminal doesn't support true colors?
Lualine has it's own material theme but โ similiar to the builtin lightline theme โ it does not sync with the style of the vim theme.
Would it be possible to add it?
Thank you for this awesome vim theme and your time put into it! :D
After the changes in #21 (specifically edfed09), support for vim-airline
was removed with the message:
the current version is broken and I'm not using vim-airline at the moment
There's another closed issue (#26) that also brings this up, so I sent a PR (#30) to add it back but it's still broken. From the discussion in #30 (comment), I'm closing the PR and opening this issue to track this feature.
For now, I'm sticking to the old version to keep using it with vim-airline
:
Plug 'kaicataldo/material.vim', {'commit': '5aabe47'}
We should add cterm
values as a fallback for older versions of Vim. Currently, we only set gui
values.
For more context, see #6 (comment)
Hi,
I really liked the old color scheme, would you consider making an "original" variant. The current default foreground color is way too bright...
Hello,
I just updated and got this error. I use vim 9.0.0910. I tried to debug and the problem is in this file, the work that you did yesterday :) 05efa0c
I solved it by adding if condition after L563 " Tree-sitter
, upto L591.
if has('nvim')
...
endif
I don't know how to ask if it has tree-sitter :D
Found possible other solutions, but I don't know how to implement them.
elixir issue on nvim-treesiter repo and among the comments I found this
If you could be kind enough to implement at least the if statement :)
Thanks.
I am getting control sequence dumps into my terminal stdin, I assume it's this plugin as my .vimrc is minimal and contains nothing special except for loading this plugin. I've checked that my TERM is set appropriately, xterm-kitty
and this issue keeps cropping up. Does the following mean anything to the devs here?
Here's the issue I am referencing: kovidgoyal/kitty#2018
As for title, the bundled airline theme does not work in my configuration. Moreover, when executing the command :AirlineTheme material
to temporarily set the theme as the one to use, I get as output airline: these is an error in theme material
. I use neovim, and in my configuration I set the variable airline_theme as suggested.
I upload my neovim configuration as a txt, since Github complains if I leave the ".vim" extension.
init.vim.txt
Hello, thanks for this awesome theme. I'm trying to set it up to use the dark version, but when I add let g:material_theme_style = 'dark'
in my .vimrc file (or = 'palenight'
for that matter), it continues to stay on the default version.
Everything else seems to work great though.
It took me quite a while to come across the vim-javascript plugin. Until finding it, I thought this colour scheme was seriously lacking.
It would be great for other newcomers who use JavaScript if the README mentioned that the vim-javascript plugin would greatly improve their experience (along with any other plugins that improve this colour scheme's syntax highlighting).
Once that's installed, this plugin is fantastic! Thanks for taking the time!
will vim-plug automatically copy the material.vim file to the colorschemes directory, or does need to be done manually?
without moving the material.vim file i get this:
E185: Cannot find color scheme 'material'
I install with vundle.
http://joxi.ru/D2Pj8Oqtp664Kr
What may be the problem?
Hey! I just installed this theme, and for some reason it makes all the identifiers in .ts files red. Is there a way to change that? I'm really used to them being white in vscode's material theme
I'm using lunarvim; Here is my config:
local linters = require "lvim.lsp.null-ls.linters"
linters.setup {
{ command = "eslint", filetypes = { "typescript", "typescriptreact", "javascript", "javascriptreact" } }
}
local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup {
{
command = "prettier",
filetypes = { "typescript", "typescriptreact", "javascriptreact", "javascriptreact" },
},
}
require("lvim.lsp.manager").setup "tailwindcss"
local code_actions = require "lvim.lsp.null-ls.code_actions"
code_actions.setup {
{
exe = "eslint",
filetypes = { "typescript", "typescriptreact", "javascript", "javascriptreact", "vue" },
},
}
lvim.format_on_save.enabled = true
lvim.lsp.buffer_mappings.normal_mode['H'] = { vim.lsp.buf.hover, "Show documentation" }
lvim.keys.normal_mode["gD"] = "<cmd>lua vim.lsp.buf.declaration()<CR>"
lvim.colorscheme = "material"
lvim.plugins = {
{
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
},
{
"zbirenbaum/copilot-cmp",
after = { "copilot.lua" },
config = function()
require("copilot_cmp").setup()
end,
},
{
"kaicataldo/material.vim",
config = function()
vim.g.material_theme_style = "default-community"
vim.g.material_terminal_italics = true
end,
},
}
local ok, copilot = pcall(require, "copilot")
if not ok then
return
end
copilot.setup {
suggestion = {
keymap = {
accept = "<c-l>",
next = "<c-j>",
prev = "<c-k>",
dismiss = "<c-h>",
},
},
}
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap("n", "<c-s>", "<cmd>lua require('copilot.suggestion').toggle_auto_trigger()<CR>", opts)```
Appreciate any help!
VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 19 2019 12:07:03)
macOS version
syntax on
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
"let g:material_theme_style = 'default' | 'palenight' | 'dark'
let g:material_theme_style = 'palenight'
let g:material_terminal_italics = 1
set background=dark
colorscheme material
This colorscheme made me want to code again : )
After LLMs started performing really well at coding, I was a bit discouraged from coding at all. Why bother if the LLMs can do it better and faster (which isn't quite the case, but that's how it seemed at first)?
One of the most frustrating parts of coding is getting everything configured correctly for a new environment, new hardware, no language, etc. This colorscheme just simply worked. And it was just simply beautiful. It inspired me to want to code again : )
Thank you!!!
(Feel free to delete this. There's no bug or feature request, just my compliments.)
I pretty much have the same issue as described here: https://www.reddit.com/r/neovim/comments/ahcg9e/nerdtree_file_highlight/
with the default theme.
Is this something theme related? Since it worked on my previous theme.
Hello, I am using vim 8.1 on macOS, the default works fine, but the other theme styles don't work.
" set color scheme
set background=dark
colorscheme material
" Enable true colors
if (has("termguicolors"))
set termguicolors
endif
let g:material_theme_style = 'palenight'
let g:material_terminal_italics = 1
Above settings make a default display.
First off great theme really liking being able to go between the material themes and get the sublime text material theme look.
I was going to adjust the cursorline and the lightline theme personally though. For me the backing color is a little too close to what the default theme color palette is. Wanted to see if you at all agreed and wanted a PR to change it closer to how palenight.vim has it.
Thanks again
This is the best Material Theme for Vim, the others don't even come close.
Thank you :)
The address material-theme.site
does not point to a valid address.
I downloaded the iTerm palenight theme and tried importing within iTerm but am receiving the following error:
The selected file could not be read or did not contain a valid color scheme
Hi, I am a little new to the vim world. I am trying to install this theme. I used vim-plug
to install the theme and the theme was installed successfully. Here are my configurations for the theme:
Plug 'kaicataldo/material.vim'
syntax enable
set background=dark
if (has("nvim"))
"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has("termguicolors"))
set termguicolors
endif
let g:material_theme_style = 'palenight'
let g:material_terminal_italics = 1
let g:airline_theme = 'material'
let g:lightline = { 'colorscheme': 'material_vim' }
colorscheme material
Now neovim throws an error when I open any file with this error:
Error detected while processing /Users/mac/.config/nvim/init.vim:
line 47:
E185: Cannot find color scheme 'material'
Press ENTER or type command to continue
not sure what am I missing here.
Hey there,
I love that theme but had for quite some time a problem with it, that it renders conceal characters with wrong colors( by default DarkGrey ):
I checked the documentation for neovim and vim and found the reason:
hi Conceal guibg=material guifg=material
Fixes it, but doesn't look super good. If you have time, could you tell me which colors should be appropriate ?
Looks like 2113bce updated tabline colors so that selected tab is not highlighted.
This may just be me/my terminal/some misconfiguration, but I find matching parentheses very easy to confuse with the cursor. (neovim nightly, default theme style, alacritty / screen-256color)
Current settings call s:SetHighlight('MatchParen', s:comments, s:cyan, 'bold')
(match parenthesis first, then cursor)
An arbitrary tweak on my end (that's not likely within the parameters of the original theme): call s:SetHighlight('MatchParen', s:caret, s:bg, 'bold')
results in a bit more pleasing:
(match parenthesis first, then cursor)
For anyone else with the same issue, it's fortunately easy enough to fix on your own without modifying material.vim:
hi MatchParen cterm=bold ctermfg=220 gui=bold guifg=#ffcc00 guibg=#263238
We can add a lot more fine-grained syntax highlighting for JavaScript to match the original Material theme using the syntax that is defined here.
Hi,
My python syntax highlighting is not working as I expected. Not entirely sure if that is an issue with this theme or my vim configuration. I am currently using vim-polyglot and this theme. Here is a screenshot showing that the syntax is not being highlighted:
As you can see there is almost no hightlighting.
If this is a case of this theme not having python language support, I'd be more than happy to make one.
Just to showcase it working in JS here is another screenshot:
Hello, this is more of a question
Will you make the theme work with vim-airline again ?
Since the last update 4 days ago, airline can't find the theme
It worked before, no issues, both gVim and terminal vim
Thanks.
Thanks a lot for the great theme, it's by far my favourite one!
I would like to ask you whether it's possible to increase the contrast of the line numbers in the palenight theme. They're sometimes a bit hard to read (or do I just need glasses? ๐). Is there any way to make the line numbers more visible? Thanks again! ๐
Tags and their attributes are the same color. In the original vscode version, tags are red, and attributes are purple, but here I see everything in the same purple.
I'm using the lastest neovim version. Tried disabling all plugins. My settings are pretty much default:
" True Color Support
if (has("termguicolors"))
set termguicolors
endif
" Material Theme
let g:material_term1nal_italics = 1
let g:material_theme_style = 'darker'
colorscheme material
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.