Skip to content

Commit

Permalink
refactor: removes some unused plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ixahmedxi committed Dec 3, 2022
1 parent 16f2f05 commit ebfcb8c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
6 changes: 6 additions & 0 deletions lua/config/lsp/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import({ "mason", "mason-lspconfig", "lspconfig", "cmp_nvim_lsp" }, function(mod
"cssmodules_ls",
"volar",
"angularls",
"rust_analyzer",
},
})

Expand All @@ -64,6 +65,11 @@ import({ "mason", "mason-lspconfig", "lspconfig", "cmp_nvim_lsp" }, function(mod
})
end)
end,
["rust_analyzer"] = function()
import("rust-tools", function (rustTools)
rustTools.setup({ server = opts })
end)
end,
})

require("config.lsp.null-ls")
Expand Down
11 changes: 2 additions & 9 deletions lua/config/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,8 @@ return packer.startup(function(use)
use("ThePrimeagen/harpoon")
use("akinsho/git-conflict.nvim")

-- Colorschemes
use("kvrohit/mellow.nvim")
use("Yazeed1s/oh-lucy.nvim")
-- Colorscheme
use({ "catppuccin/nvim", as = "catppuccin" })
use("marko-cerovac/material.nvim")
use("folke/tokyonight.nvim")
use("olivercederborg/poimandres.nvim")
use("tiagovla/tokyodark.nvim")
use("projekt0n/github-nvim-theme")

-- Treesitter
use("nvim-treesitter/nvim-treesitter")
Expand Down Expand Up @@ -119,6 +112,7 @@ return packer.startup(function(use)
use("folke/trouble.nvim")
use("smiteshp/nvim-navic")
use("utilyre/barbecue.nvim")
use("simrat39/rust-tools.nvim")

-- Editing
use("max397574/better-escape.nvim")
Expand All @@ -138,7 +132,6 @@ return packer.startup(function(use)
use("akinsho/toggleterm.nvim")
use("rcarriga/nvim-notify")
use("ThePrimeagen/vim-be-good")
use("davidgranstrom/nvim-markdown-preview")
use("aserowy/tmux.nvim")

if PACKER_BOOTSTRAP then
Expand Down
8 changes: 6 additions & 2 deletions lua/config/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import("which-key", function(whichKey)
["q"] = { "<cmd>q<cr>", "Quit" },
["e"] = { "<cmd>Neotree toggle<cr>", "Toggle Explorer" },
["n"] = { "<cmd>nohl<cr>", "No highlight" },
["c"] = { "<cmd>lua require('telescope.builtin').colorscheme()<cr>", "Change colorscheme" },
["b"] = {
name = "Buffers",
["p"] = { "<cmd>BufferLinePick<cr>", "Pick" },
Expand Down Expand Up @@ -69,7 +68,7 @@ import("which-key", function(whichKey)
["d"] = { "<cmd>lua vim.lsp.buf.definition()<cr>", "Definition" },
["T"] = { "<cmd>lua vim.lsp.buf.type_definition()<cr>", "Type definition" },
["i"] = { "<cmd>lua vim.lsp.buf.implementation()<cr>", "Implementation" },
["r"] = { "<cmd>lua vim.lsp.buf.references()<cr>", "References" },
["R"] = { "<cmd>lua vim.lsp.buf.references()<cr>", "References" },
["K"] = { "<cmd>lua vim.lsp.buf.hover()<cr>", "Hover" },
["k"] = { "<cmd>lua vim.lsp.buf.signature_help()<cr>", "Signature help" },
["s"] = { "<cmd>SymbolsOutline<cr>", "Toggle symbols outline" },
Expand All @@ -86,6 +85,11 @@ import("which-key", function(whichKey)
["g"] = { "<cmd>TypescriptGoToSourceDefinition<CR>", "Go to source definition" },
["r"] = { "<cmd>TypescriptRenameFile<CR>", "Rename file" },
},
["r"] = {
name = "Rust",
["r"] = { "<cmd>RustRun<cr>", "Run" },
["a"] = { "<cmd>RustRunnables<cr>", "Runnables"}
},
["u"] = {
name = "Trouble",
r = { "<cmd>TroubleToggle lsp_references<cr>", "References" },
Expand Down

0 comments on commit ebfcb8c

Please sign in to comment.