Replaced neodev with lazydev
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
--- @type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
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",
|
"neovim/nvim-lspconfig",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
"hrsh7th/cmp-nvim-lsp",
|
||||||
"folke/neodev.nvim",
|
|
||||||
},
|
},
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
local neodev = require("neodev")
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
local cmp_nvim_lsp = require("cmp_nvim_lsp")
|
||||||
|
|
||||||
@@ -20,20 +18,6 @@ return {
|
|||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = "" })
|
||||||
end
|
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" }
|
local defaultLsps = { "html", "cssls", "pyright", "jsonls", "rust_analyzer", "yamlls", "eslint" }
|
||||||
|
|
||||||
for _, lsp in ipairs(defaultLsps) do
|
for _, lsp in ipairs(defaultLsps) do
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
--- @type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"epwalsh/obsidian.nvim",
|
"epwalsh/obsidian.nvim",
|
||||||
version = "*",
|
version = "*",
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
--- @type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"christoomey/vim-tmux-navigator",
|
"christoomey/vim-tmux-navigator",
|
||||||
cmd = {
|
cmd = {
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
--- @type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
|||||||
Reference in New Issue
Block a user