mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-07 21:48:17 -08:00
Move plugins to their own files
This commit is contained in:
parent
95d38fef5d
commit
892a6f6ec0
6 changed files with 94 additions and 95 deletions
15
lua/plugins/go.lua
Normal file
15
lua/plugins/go.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"ray-x/go.nvim",
|
||||
lazy = false,
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
require "configs.go"
|
||||
end,
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod", "gowork", "gotmpl" },
|
||||
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||
}
|
||||
|
|
@ -6,101 +6,6 @@ return {
|
|||
require "configs.conform"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"ray-x/go.nvim",
|
||||
lazy = false,
|
||||
dependencies = { -- optional packages
|
||||
"ray-x/guihua.lua",
|
||||
"neovim/nvim-lspconfig",
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
},
|
||||
config = function()
|
||||
require "configs.go"
|
||||
end,
|
||||
event = { "CmdlineEnter" },
|
||||
ft = { "go", "gomod", "gowork", "gotmpl" },
|
||||
build = ':lua require("go.install").update_all_sync()', -- if you need to install/update all binaries
|
||||
},
|
||||
-- These are some examples, uncomment them if you want to see them work!
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require("nvchad.configs.lspconfig").defaults()
|
||||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua-language-server",
|
||||
"stylua",
|
||||
"html-lsp",
|
||||
"css-lsp",
|
||||
"prettier",
|
||||
"gopls",
|
||||
"goimports",
|
||||
"golines",
|
||||
"gofumpt",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
opts = {
|
||||
renderer = {
|
||||
icons = {
|
||||
glyphs = {
|
||||
git = { -- this is so stupid lmao
|
||||
unstaged = "😴",
|
||||
staged = "😎",
|
||||
unmerged = "😈",
|
||||
untracked = "😭",
|
||||
renamed = "😶",
|
||||
deleted = "😵",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/trouble.nvim",
|
||||
branch = "dev", -- IMPORTANT!
|
||||
keys = {
|
||||
{
|
||||
"<leader>tx",
|
||||
"<cmd>Trouble diagnostics toggle<cr>",
|
||||
desc = "Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tX",
|
||||
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||
desc = "Buffer Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>cs",
|
||||
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||
desc = "Symbols (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>cl",
|
||||
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||
desc = "LSP Definitions / references / ... (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tL",
|
||||
"<cmd>Trouble loclist toggle<cr>",
|
||||
desc = "Location List (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tQ",
|
||||
"<cmd>Trouble qflist toggle<cr>",
|
||||
desc = "Quickfix List (Trouble)",
|
||||
},
|
||||
},
|
||||
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||
},
|
||||
-- "nvim-treesitter/nvim-treesitter",
|
||||
-- opts = {
|
||||
-- ensure_installed = {
|
||||
|
|
|
|||
7
lua/plugins/lsp-config.lua
Normal file
7
lua/plugins/lsp-config.lua
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
return {
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require("nvchad.configs.lspconfig").defaults()
|
||||
require "configs.lspconfig"
|
||||
end,
|
||||
}
|
||||
16
lua/plugins/mason.lua
Normal file
16
lua/plugins/mason.lua
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
return {
|
||||
"williamboman/mason.nvim",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"lua-language-server",
|
||||
"stylua",
|
||||
"html-lsp",
|
||||
"css-lsp",
|
||||
"prettier",
|
||||
"gopls",
|
||||
"goimports",
|
||||
"golines",
|
||||
"gofumpt",
|
||||
},
|
||||
},
|
||||
}
|
||||
19
lua/plugins/nvim-tree.lua
Normal file
19
lua/plugins/nvim-tree.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
opts = {
|
||||
renderer = {
|
||||
icons = {
|
||||
glyphs = {
|
||||
git = { -- this is so stupid lmao
|
||||
unstaged = "😴",
|
||||
staged = "😎",
|
||||
unmerged = "😈",
|
||||
untracked = "😭",
|
||||
renamed = "😶",
|
||||
deleted = "😵",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
37
lua/plugins/trouble.lua
Normal file
37
lua/plugins/trouble.lua
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
return {
|
||||
"folke/trouble.nvim",
|
||||
branch = "dev", -- IMPORTANT!
|
||||
keys = {
|
||||
{
|
||||
"<leader>tx",
|
||||
"<cmd>Trouble diagnostics toggle<cr>",
|
||||
desc = "Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tX",
|
||||
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||
desc = "Buffer Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>cs",
|
||||
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||
desc = "Symbols (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>cl",
|
||||
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||
desc = "LSP Definitions / references / ... (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tL",
|
||||
"<cmd>Trouble loclist toggle<cr>",
|
||||
desc = "Location List (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>tQ",
|
||||
"<cmd>Trouble qflist toggle<cr>",
|
||||
desc = "Quickfix List (Trouble)",
|
||||
},
|
||||
},
|
||||
opts = {}, -- for default options, refer to the configuration section for custom setup.
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue