Skip to content

Commit

Permalink
ref(plugins): replace lua-dev with neodev
Browse files Browse the repository at this point in the history
  • Loading branch information
arsham committed Oct 22, 2022
1 parent 2e62152 commit ba4579b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ Some plugins are not listed here. You can find the complete list in the
| Core | [tmux-plugins/vim-tmux](https://github.com/tmux-plugins/vim-tmux) | |
| Core | [tpope/vim-git](https://github.com/tpope/vim-git) | |
| Core | [andymass/vim-matchup](https://github.com/andymass/vim-matchup) | |
| Core | [folke/lua-dev.nvim](https://github.com/folke/lua-dev.nvim) | |
| Core | [folke/neodev.nvim](https://github.com/folke/neodev.nvim) | |
| Core | [mattn/webapi-vim](https://github.com/mattn/webapi-vim) | |
| Core | [milisims/nvim-luaref](https://github.com/milisims/nvim-luaref) | |
| Core | [nvim-lua/plenary.nvim](https://github.com/nvim-lua/plenary.nvim) | |
Expand Down
11 changes: 8 additions & 3 deletions lua/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -478,9 +478,14 @@ packer.startup({
})

use({
"folke/lua-dev.nvim",
ft = { "lua" },
cond = { full_start, lsp_enabled },
"folke/neodev.nvim",
config = function()
require("neodev").setup({})
end,
wants = { "nvim-lspconfig" },
after = { "nvim-lspconfig" },
ft = { "lua" },
cond = { full_start, lsp_enabled },
})

use({
Expand Down
4 changes: 2 additions & 2 deletions lua/settings/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ local servers = {
sumneko_lua = { --{{{
opts = {},
update = function(on_attach, opts)
opts = require("lua-dev").setup({
opts = {
library = {
plugins = { "arshlib.nvim", "plenary.nvim" },
},
Expand Down Expand Up @@ -113,7 +113,7 @@ local servers = {
},
},
},
})
}
opts.on_attach = function(client, bufnr)
client.server_capabilities.documentFormattingProvider = false
client.server_capabilities.documentRangeFormattingProvider = false
Expand Down
6 changes: 6 additions & 0 deletions lua/settings/neodev-nvim.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require("neodev").setup({
library = {
plugins = { "arshlib.nvim", "plenary.nvim" },
},
runtime_path = true,
})

0 comments on commit ba4579b

Please sign in to comment.