Skip to content

Commit

Permalink
🚧 Support syntax and formater solidity
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Hoang-Nam committed Mar 12, 2022
1 parent 20fac63 commit 9dc7410
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ _Kitty with Fira, Cascadia, and Mini-File-Icons_
| React | 👍👍 | 👍 | 👍 | | | |
| Rust | 👍 | 👍 | 👍 | | | 👍 |
| Scala | | 👍 | | | | |
| Solidity | 👍 | | | | | |
| Solidity | 👍 | 👍 | 👍 | | | |
| Svelte | 👍👍 | 👍 | 👍 | | | |
| Tex | 👍 | 👍 | 👍 | | | |
| TOML | | 👍 | | | | |
Expand Down
2 changes: 1 addition & 1 deletion lua/format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ M.format = function()
end
end

vim.lsp.buf.formatting_sync(nil, 1000)
vim.lsp.buf.formatting_sync(nil, 2000)
end

M.range_format = function()
Expand Down
2 changes: 2 additions & 0 deletions lua/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ return {
'php',
'python',
'rust',
'solidity',
'svelte',
'tex',
'typescript',
Expand Down Expand Up @@ -74,6 +75,7 @@ return {
'php',
'python',
'rust',
'solidity',
'svelte',
'tex',
'typescript',
Expand Down
1 change: 1 addition & 0 deletions lua/utils/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ M.map_filetype_filename = {
php = '*.php',
python = '*.py',
rust = '*.rs',
solidity = '*.sol',
svelte = '*.svelte',
tex = '*.tex',
typescript = '*.ts',
Expand Down

0 comments on commit 9dc7410

Please sign in to comment.