Skip to content

Commit

Permalink
🚧 Update plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
Nguyen-Hoang-Nam committed Mar 27, 2022
1 parent 9dc7410 commit 2b0afd0
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 33 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,43 +319,43 @@ store in `~/.local/share/nvim/site/pack/*/start/`.

| Plugin | Last updated |
| ----------------------------------------------------------------------------------------------- | ------------ |
| [aerial](https://github.com/stevearc/aerial.nvim) | Mar 11 2022 |
| [auto-session](https://github.com/rmagatti/auto-session) | Feb 20 2022 |
| [aerial](https://github.com/stevearc/aerial.nvim) | Mar 23 2022 |
| [auto-session](https://github.com/rmagatti/auto-session) | Mar 14 2022 |
| [cmp-nvim-lsp](https://github.com/hrsh7th/cmp-nvim-lsp) | Feb 15 2022 |
| [cmp-nvim-lsp-signature-help](https://github.com/hrsh7th/cmp-nvim-lsp-signature-help) | Feb 15 2022 |
| [cmp-nvim-lsp-signature-help](https://github.com/hrsh7th/cmp-nvim-lsp-signature-help) | Mar 22 2022 |
| [cmp-path](https://github.com/hrsh7th/cmp-path) | Feb 3 2022 |
| [cmp_luasnip](https://github.com/saadparwaiz1/cmp_luasnip) | Jan 2 2022 |
| [cmp_luasnip](https://github.com/saadparwaiz1/cmp_luasnip) | Mar 26 2022 |
| [dashboard-nvim](https://github.com/glepnir/dashboard-nvim) | Apr 17 2021 |
| [diffview.nvim](https://github.com/sindrets/diffview.nvim) | Feb 21 2022 |
| [friendly-snippets](https://github.com/rafamadriz/friendly-snippets) | Mar 5 2022 |
| [git-utils.nvim](https://github.com/Nguyen-Hoang-Nam/git-utils.nvim) | |
| [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) | Mar 9 2022 |
| [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim) | Mar 25 2022 |
| [goto-preview](https://github.com/rmagatti/goto-preview) | Dec 25 2021 |
| [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) | Mar 9 2022 |
| [LuaSnip](https://github.com/L3MON4D3/LuaSnip) | Mar 11 2022 |
| [nvim-autopair](https://github.com/windwp/nvim-autopairs) | Mar 6 2022 |
| [nvim-bufferline.lua](https://github.com/akinsho/nvim-bufferline.lua) | Mar 9 2022 |
| [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) | Mar 2 2022 |
| [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim) | Mar 25 2022 |
| [LuaSnip](https://github.com/L3MON4D3/LuaSnip) | Mar 26 2022 |
| [nvim-autopair](https://github.com/windwp/nvim-autopairs) | Mar 25 2022 |
| [nvim-bufferline.lua](https://github.com/akinsho/nvim-bufferline.lua) | Mar 21 2022 |
| [nvim-cmp](https://github.com/hrsh7th/nvim-cmp) | Mar 22 2022 |
| [nvim-colorizer.lua](https://github.com/norcalli/nvim-colorizer.lua) | Apr 20 2020 |
| [nvim-dap](https://github.com/mfussenegger/nvim-dap) | Mar 9 2022 |
| [nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui) | Mar 5 2022 |
| [nvim-dap](https://github.com/mfussenegger/nvim-dap) | Mar 25 2022 |
| [nvim-dap-ui](https://github.com/rcarriga/nvim-dap-ui) | Mar 21 2022 |
| [nvim-dap-virtual-text](https://github.com/theHamsta/nvim-dap-virtual-text) | Feb 19 2021 |
| [nvim-jdtls](https://github.com/mfussenegger/nvim-jdtls) | Jan 27 2022 |
| [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) | Mar 9 2022 |
| [nvim-jdtls](https://github.com/mfussenegger/nvim-jdtls) | Feb 24 2022 |
| [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig) | Mar 23 2022 |
| [nvim-mini-file-icons](https://github.com/Nguyen-Hoang-Nam/nvim-mini-file-icons) | |
| [nvim-scrollview](https://github.com/dstein64/nvim-scrollview) | Feb 27 2022 |
| [nvim-toggleterm.lua](https://github.com/akinsho/nvim-toggleterm.lua) | Feb 27 2022 |
| [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | Mar 11 2022 |
| [nvim-scrollview](https://github.com/dstein64/nvim-scrollview) | Mar 14 2022 |
| [nvim-toggleterm.lua](https://github.com/akinsho/nvim-toggleterm.lua) | Mar 24 2022 |
| [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) | Mar 21 2022 |
| [nvim-ts-autotag](https://github.com/windwp/nvim-ts-autotag) | Mar 1 2022 |
| [nvim-ts-context-commentstring](https://github.com/JoosepAlviste/nvim-ts-context-commentstring) | Dec 13 2021 |
| [nvim-ts-context-commentstring](https://github.com/JoosepAlviste/nvim-ts-context-commentstring) | Mar 18 2022 |
| [nvim-ts-rainbow](https://github.com/p00f/nvim-ts-rainbow) | Feb 23 2022 |
| [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) | Mar 4 2022 |
| [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) | Mar 20 2022 |
| [rest.nvim](https://github.com/NTBBloodbath/rest.nvim) | Jan 26 2022 |
| [tabout.nvim](https://github.com/abecodes/tabout.nvim) | Dec 15 2021 |
| [tabout.nvim](https://github.com/abecodes/tabout.nvim) | Mar 19 2021 |
| [telescope-fzf-native.nvim](https://github.com/nvim-telescope/telescope-fzf-native.nvim) | Feb 19 2022 |
| [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) | Mar 11 2022 |
| [vim-test](https://github.com/vim-test/vim-test) | Mar 8 2022 |
| [vim-ultest](https://github.com/rcarriga/vim-ultest) | Mar 2 2022 |
| [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) | Mar 26 2022 |
| [vim-test](https://github.com/vim-test/vim-test) | Mar 26 2022 |
| [vim-ultest](https://github.com/rcarriga/vim-ultest) | Mar 19 2022 |
| [yanil](https://github.com/Nguyen-Hoang-Nam/yanil/tree/customize-ui) | |

### Treesitter (Optional)
Expand Down
2 changes: 1 addition & 1 deletion lua/dap/go.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- https://github.com/go-delve/delve/blob/master/Documentation/usage/dlv_dap.md
--

local M = {}

function M.adapters(callback, _)
Expand Down
16 changes: 9 additions & 7 deletions lua/languages/javascript.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@ M.efm = {
{
formatCommand = 'prettier --tab-width=4 --use-tabs=false --stdin-filepath ${INPUT}',
formatStdin = true,
},
{
-- lintCommand = 'eslint_d --stdin --stdin-filename ${INPUT}',
-- lintCommand = 'eslint -f visualstudio --stdin --stdin-filename ${INPUT}',
-- lintIgnoreExitCode = true,
-- lintStdin = true,
-- lintFormats = {
-- '%f(%l,%c): %tarning %m',
-- '%f(%l,%c): %rror %m',
-- },
lintCommand = 'eslint -f visualstudio --stdin --stdin-filename ${INPUT}',
lintIgnoreExitCode = true,
lintStdin = true,
lintFormats = {
'%f(%l,%c): %tarning %m',
'%f(%l,%c): %rror %m',
},
},
}

Expand Down
2 changes: 1 addition & 1 deletion lua/languages/python.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local M = {}

M.efm = {
{
formatCommand = 'black --quiet -',
formatCommand = 'black --line-length 79 --quiet -',
formatStdin = true,
},
{
Expand Down
3 changes: 2 additions & 1 deletion lua/languages/solidity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ M.all_format = { efm = 'Prettier' }

M.default_format = 'efm'

M.lsp_server = 'solidity_ls'
-- M.lsp_server = 'solidity_ls'
M.lsp_server = 'solc'

M.lsp = {
capabilities = lsp.capabilities,
Expand Down
25 changes: 25 additions & 0 deletions lua/utils/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,24 @@ function M.rename_popup()
end)
)

api.nvim_buf_set_keymap(
buf,
'n',
'<CR>',
'',
cmd_option(function()
local name = api.nvim_buf_get_lines(buf, 0, 1, false)[1]
api.nvim_win_close(win_handle, true)

if name ~= '' then
vim.lsp.buf.rename(name)
end

local keys = vim.api.nvim_replace_termcodes('l', true, false, true)
api.nvim_feedkeys(keys, 'i', true)
end)
)

api.nvim_buf_set_option(buf, 'buftype', 'nofile')
api.nvim_buf_set_option(buf, 'bufhidden', 'delete')

Expand All @@ -243,4 +261,11 @@ function M.toggle_test()
end
end
end

function M.cover_score()
local score_raw = vim.api.nvim_exec('!go test -cover | sed -n 2p | cut -d " " -f 2 | tr -d "\\n"', true)
local newline_position = string.find(score_raw, '\n')
print(string.sub(score_raw, newline_position))
end

return M

0 comments on commit 2b0afd0

Please sign in to comment.