feat(nvim): add mini plugins, smart open and formatting
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
return {
|
||||
'saecki/crates.nvim',
|
||||
event = { "BufRead Cargo.toml" },
|
||||
lazy = true,
|
||||
verylazy = true,
|
||||
config = function()
|
||||
require('crates').setup()
|
||||
end,
|
||||
|
||||
@@ -1,32 +1,41 @@
|
||||
return {
|
||||
-- LSP Support
|
||||
{
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = "v3.x",
|
||||
lazy = true,
|
||||
config = false,
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
dependencies = {
|
||||
{"hrsh7th/cmp-nvim-lsp"},
|
||||
},
|
||||
-- LSP Support
|
||||
-- {
|
||||
-- 'VonHeikemen/lsp-zero.nvim',
|
||||
-- branch = "v3.x",
|
||||
-- lazy = true,
|
||||
-- config = false,
|
||||
-- },
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
-- dependencies = {
|
||||
-- {"hrsh7th/cmp-nvim-lsp"},
|
||||
-- },
|
||||
lazy = true,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
lazy = true,
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
},
|
||||
{
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
lazy = true,
|
||||
},
|
||||
-- Autocompletion
|
||||
{
|
||||
"hrsh7th/nvim-cmp",
|
||||
dependencies = {
|
||||
{"L3MON4D3/LuaSnip"}
|
||||
},
|
||||
lazy = true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"mfussenegger/nvim-lint",
|
||||
lazy = false,
|
||||
},
|
||||
-- supposedly faster formatter
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = {},
|
||||
},
|
||||
-- Autocompletion
|
||||
-- {
|
||||
-- "hrsh7th/nvim-cmp",
|
||||
-- dependencies = {
|
||||
-- {"L3MON4D3/LuaSnip"}
|
||||
-- },
|
||||
-- lazy = true,
|
||||
-- },
|
||||
}
|
||||
|
||||
@@ -1,53 +1,58 @@
|
||||
return {
|
||||
-- not deps
|
||||
--{ "xiyaowong/transparent.nvim" },
|
||||
-- { "olimorris/onedarkpro.nvim" },
|
||||
{ "neanias/everforest-nvim" },
|
||||
{ "ibhagwan/fzf-lua", lazy = true },
|
||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", lazy=true},
|
||||
{ "nvim-treesitter/nvim-treesitter-context", lazy=true },
|
||||
{ "nvim-telescope/telescope.nvim", tag = "0.1.2",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim"
|
||||
},
|
||||
lazy = true,
|
||||
},
|
||||
{ "nvim-lualine/lualine.nvim",
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
lazy = false
|
||||
},
|
||||
{ "stevearc/aerial.nvim" },
|
||||
-- {
|
||||
-- "folke/noice.nvim",
|
||||
-- event = "VeryLazy",
|
||||
-- opts = {},
|
||||
-- dependencies = {
|
||||
-- "MunifTanjim/nui.nvim",
|
||||
-- --OPTIONAL:
|
||||
-- -- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- -- If not available, we use `mini` as the fallback
|
||||
-- --"rcarriga/nvim-notify",
|
||||
-- }
|
||||
-- },
|
||||
{
|
||||
"danielfalk/smart-open.nvim",
|
||||
branch = "0.2.x",
|
||||
lazy = true,
|
||||
dependencies = {
|
||||
"kkharji/sqlite.lua",
|
||||
-- Only required if using match_algorithm fzf
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||
-- Optional. If installed, native fzy will be used when match_algorithm is fzy
|
||||
{ "nvim-telescope/telescope-fzy-native.nvim" },
|
||||
},
|
||||
},
|
||||
{ "gelguy/wilder.nvim", lazy = true },
|
||||
{ "tpope/vim-fugitive", lazy = true },
|
||||
{ "norcalli/nvim-colorizer.lua", verylazy = true },
|
||||
{ "ziontee113/color-picker.nvim", verylazy = true },
|
||||
{ "lewis6991/gitsigns.nvim", verylazy = true },
|
||||
{ "MunifTanjim/nui.nvim", verylazy = true }, --dependency for telescope
|
||||
--{ "elkowar/yuck.vim", verylazy = true },--helper for eww widget configuration
|
||||
-- optional
|
||||
{ "nvim-treesitter/nvim-treesitter-textobjects", lazy = true },
|
||||
-- not deps
|
||||
--{ "xiyaowong/transparent.nvim" },
|
||||
-- { "olimorris/onedarkpro.nvim" },
|
||||
{ "neanias/everforest-nvim" },
|
||||
{ "ibhagwan/fzf-lua", lazy = true },
|
||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate", lazy = true },
|
||||
{ "nvim-treesitter/nvim-treesitter-context", lazy = true },
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.1.2",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
lazy = true,
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
lazy = false,
|
||||
},
|
||||
{ "stevearc/aerial.nvim" },
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
dependencies = {
|
||||
"MunifTanjim/nui.nvim",
|
||||
--OPTIONAL:
|
||||
-- `nvim-notify` is only needed, if you want to use the notification view.
|
||||
-- If not available, we use `mini` as the fallback
|
||||
"rcarriga/nvim-notify",
|
||||
},
|
||||
},
|
||||
{
|
||||
"echasnovski/mini.nvim",
|
||||
version = false,
|
||||
},
|
||||
{
|
||||
"danielfalk/smart-open.nvim",
|
||||
branch = "0.2.x",
|
||||
lazy = true,
|
||||
dependencies = {
|
||||
"kkharji/sqlite.lua",
|
||||
-- Only required if using match_algorithm fzf
|
||||
{ "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||
-- Optional. If installed, native fzy will be used when match_algorithm is fzy
|
||||
{ "nvim-telescope/telescope-fzy-native.nvim" },
|
||||
},
|
||||
},
|
||||
{ "gelguy/wilder.nvim", lazy = true },
|
||||
{ "norcalli/nvim-colorizer.lua", verylazy = true },
|
||||
{ "ziontee113/color-picker.nvim", verylazy = true },
|
||||
{ "lewis6991/gitsigns.nvim", verylazy = true },
|
||||
-- optional
|
||||
{ "nvim-treesitter/nvim-treesitter-textobjects", lazy = true },
|
||||
}
|
||||
|
||||
37
.config/nvim/lua/plugins/trouble.lua
Normal file
37
.config/nvim/lua/plugins/trouble.lua
Normal file
@@ -0,0 +1,37 @@
|
||||
return {
|
||||
"folke/trouble.nvim",
|
||||
opts = {},
|
||||
cmd = "Trouble",
|
||||
keys = {
|
||||
{
|
||||
"<leader>xx",
|
||||
"<cmd>Trouble diagnostics toggle<cr>",
|
||||
desc = "Diagnostics (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>xX",
|
||||
"<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>xL",
|
||||
"<cmd>Trouble loclist toggle<cr>",
|
||||
desc = "Location List (Trouble)",
|
||||
},
|
||||
{
|
||||
"<leader>xQ",
|
||||
"<cmd>Trouble qflist toggle<cr>",
|
||||
desc = "Quickfix List (Trouble)",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 100
|
||||
end,
|
||||
opts = {}
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 50
|
||||
end,
|
||||
opts = {},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user