Replaced neodev with lazydev
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
"stevearc/conform.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
|
||||
15
lua/taken/plugins/lsp/lazydev.lua
Normal file
15
lua/taken/plugins/lsp/lazydev.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
"folke/lazydev.nvim",
|
||||
dependencies = { "Bilal2453/luvit-meta", lazy = true },
|
||||
ft = "lua",
|
||||
config = function()
|
||||
local layzdev = require("lazydev")
|
||||
layzdev.setup({
|
||||
library = {
|
||||
"lazy.nvim",
|
||||
{ path = "luvit-meta/library", words = { "vim%.uv" } },
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
@@ -3,11 +3,9 @@ return {
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"folke/neodev.nvim",
|
||||
},
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
config = function()
|
||||
local neodev = require("neodev")
|
||||
local lspconfig = require("lspconfig")
|
||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
||||
|
||||
@@ -20,20 +18,6 @@ return {
|
||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||
end
|
||||
|
||||
neodev.setup({
|
||||
library = {
|
||||
enabled = true,
|
||||
runtime = true,
|
||||
types = true,
|
||||
plugins = {
|
||||
"lazy.nvim",
|
||||
},
|
||||
},
|
||||
setup_jsonls = false,
|
||||
lspconfig = true,
|
||||
pathStrict = true,
|
||||
})
|
||||
|
||||
local defaultLsps = { "html", "cssls", "pyright", "jsonls", "rust_analyzer", "yamlls", "eslint" }
|
||||
|
||||
for _, lsp in ipairs(defaultLsps) do
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
"epwalsh/obsidian.nvim",
|
||||
version = "*",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
"christoomey/vim-tmux-navigator",
|
||||
cmd = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
--- @type LazyPluginSpec
|
||||
return {
|
||||
"folke/trouble.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
|
||||
Reference in New Issue
Block a user