mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 13:06:35 +05:30
remove unused plugins
This commit is contained in:
@ -4,33 +4,33 @@ local capabilities = configs.capabilities
|
|||||||
|
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
|
|
||||||
local servers = { "tsserver", "tailwindcss", "eslint", "gopls", "rust_analyzer" }
|
local servers = { "tsserver", "tailwindcss", "eslint", "gopls" }
|
||||||
|
|
||||||
local function organize_imports()
|
local function organize_imports()
|
||||||
local params = {
|
local params = {
|
||||||
command = "_typescript.organizeImports",
|
command = "_typescript.organizeImports",
|
||||||
arguments = { vim.api.nvim_buf_get_name(0) },
|
arguments = { vim.api.nvim_buf_get_name(0) },
|
||||||
title = "",
|
title = "",
|
||||||
}
|
}
|
||||||
vim.lsp.buf.execute_command(params)
|
vim.lsp.buf.execute_command(params)
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, lsp in ipairs(servers) do
|
for _, lsp in ipairs(servers) do
|
||||||
if lsp == "tsserver" then
|
if lsp == "tsserver" then
|
||||||
lspconfig[lsp].setup({
|
lspconfig[lsp].setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
commands = {
|
commands = {
|
||||||
OrganizeImports = {
|
OrganizeImports = {
|
||||||
organize_imports,
|
organize_imports,
|
||||||
description = "Organize Imports",
|
description = "Organize Imports",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
else
|
else
|
||||||
lspconfig[lsp].setup({
|
lspconfig[lsp].setup({
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
-- Doesn't work
|
|
||||||
|
|
||||||
local lint = require("lint")
|
|
||||||
|
|
||||||
lint.linters_by_ft = {
|
|
||||||
lua = { "luacheck" },
|
|
||||||
javascript = { "eslint_d" },
|
|
||||||
typescript = { "eslint_d" },
|
|
||||||
javascriptreact = { "eslint_d" },
|
|
||||||
typescriptreact = { { "eslint_d" } },
|
|
||||||
nix = { "statix" },
|
|
||||||
}
|
|
||||||
|
|
||||||
local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true })
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
|
|
||||||
group = lint_augroup,
|
|
||||||
callback = function()
|
|
||||||
lint.try_lint()
|
|
||||||
end,
|
|
||||||
})
|
|
@ -1,63 +1,65 @@
|
|||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.treesitter = {
|
M.treesitter = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
-- defaults
|
-- defaults
|
||||||
"vim",
|
"vim",
|
||||||
"lua",
|
"lua",
|
||||||
|
|
||||||
-- web dev
|
-- web dev
|
||||||
"html",
|
"html",
|
||||||
"css",
|
"css",
|
||||||
"javascript",
|
"javascript",
|
||||||
"typescript",
|
"typescript",
|
||||||
"tsx",
|
"tsx",
|
||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nix",
|
"nix",
|
||||||
|
|
||||||
-- go
|
-- go
|
||||||
"go",
|
"go",
|
||||||
"gomod",
|
"gomod",
|
||||||
"gowork",
|
"gowork",
|
||||||
"gosum",
|
"gosum",
|
||||||
|
},
|
||||||
-- rust
|
|
||||||
"rust",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
M.mason = {
|
M.mason = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
-- defaults
|
-- defaults
|
||||||
"lua-language-server",
|
"lua-language-server",
|
||||||
"stylua",
|
"stylua",
|
||||||
"luacheck",
|
"luacheck",
|
||||||
|
|
||||||
-- web dev
|
-- web dev
|
||||||
"css-lsp",
|
"css-lsp",
|
||||||
"html-lsp",
|
"html-lsp",
|
||||||
"prettierd",
|
"prettierd",
|
||||||
"eslint-lsp",
|
"eslint-lsp",
|
||||||
"eslint_d",
|
"eslint_d",
|
||||||
"typescript-language-server",
|
"typescript-language-server",
|
||||||
"tailwindcss-language-server",
|
"tailwindcss-language-server",
|
||||||
|
|
||||||
-- nix
|
-- nix
|
||||||
"nil",
|
"nil",
|
||||||
|
|
||||||
-- rust
|
-- go
|
||||||
"rust-analyzer",
|
"gopls",
|
||||||
"rustfmt",
|
"goimports",
|
||||||
"codelldb",
|
"gofumpt",
|
||||||
},
|
"gomodifytags",
|
||||||
|
"impl",
|
||||||
|
"iferr",
|
||||||
|
"staticcheck",
|
||||||
|
"delve",
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
M.telescope = {
|
M.telescope = {
|
||||||
defaults = {
|
defaults = {
|
||||||
winblend = 40,
|
winblend = 40,
|
||||||
pumblend = 40,
|
pumblend = 40,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
local configs = require("nvchad.configs.lspconfig")
|
|
||||||
local on_attach = configs.on_attach
|
|
||||||
local capabilities = configs.capabilities
|
|
||||||
|
|
||||||
vim.g.rustaceanvim = {
|
|
||||||
server = {
|
|
||||||
on_attach = on_attach,
|
|
||||||
capabilities = capabilities,
|
|
||||||
default_settings = {
|
|
||||||
["rust-analyzer"] = {
|
|
||||||
cargo = {
|
|
||||||
allFeatures = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
@ -3,6 +3,8 @@ local overrides = require("configs.overrides")
|
|||||||
local plugins = {
|
local plugins = {
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
|
event = { "BufWritePre" },
|
||||||
|
cmd = { "ConformInfo" },
|
||||||
config = function()
|
config = function()
|
||||||
require("configs.conform")
|
require("configs.conform")
|
||||||
end,
|
end,
|
||||||
@ -93,35 +95,5 @@ local plugins = {
|
|||||||
"folke/neodev.nvim",
|
"folke/neodev.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"ray-x/go.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"ray-x/guihua.lua",
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
"theHamsta/nvim-dap-virtual-text",
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require("go").setup()
|
|
||||||
end,
|
|
||||||
event = { "CmdlineEnter" },
|
|
||||||
ft = { "go", "gomod" },
|
|
||||||
build = ':lua require("go.install").update_all_sync()',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mrcjkb/rustaceanvim",
|
|
||||||
version = "^4",
|
|
||||||
ft = { "rust" },
|
|
||||||
config = function()
|
|
||||||
require("configs.rustaceanvim")
|
|
||||||
end,
|
|
||||||
dependencies = {
|
|
||||||
"neovim/nvim-lspconfig",
|
|
||||||
"mfussenegger/nvim-dap",
|
|
||||||
"rcarriga/nvim-dap-ui",
|
|
||||||
"theHamsta/nvim-dap-virtual-text",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
return plugins
|
return plugins
|
||||||
|
Reference in New Issue
Block a user