Added bunch of plugins
This commit is contained in:
parent
ce28c5f0c9
commit
53f2fd8cda
3
init.lua
3
init.lua
@ -1,9 +1,8 @@
|
||||
vim.opt.termguicolors = true
|
||||
|
||||
require("config.functions")
|
||||
require("config.keymaps")
|
||||
require("config.lazy")
|
||||
require("config.keymaps")
|
||||
require("config.options")
|
||||
--require("core.plugins")
|
||||
require("config.aliases")
|
||||
require("config.plugin")
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
local wk = require("which-key")
|
||||
-- clear searchterm
|
||||
vim.keymap.set('n', '<F5>', ':noh<CR>')
|
||||
|
||||
@ -14,11 +15,6 @@ vim.keymap.set('n', '*', '*```<CR>')
|
||||
-- show lsp floating tooltip
|
||||
vim.keymap.set('n', '<c-k>', ':lua vim.lsp.buf.hover()<CR>')
|
||||
|
||||
-- The telescope leader key is space
|
||||
-- keymaps can be found in telescope config
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
-- toggle tagbar plugin
|
||||
vim.keymap.set('n', '<F8>', ':TagbarToggle fj<CR>')
|
||||
|
||||
@ -39,3 +35,23 @@ vim.keymap.set('n', '<C-l>', ':wincmd l<CR>')
|
||||
|
||||
-- move split to tab
|
||||
vim.keymap.set('n', '<C-m>', ':tab split<CR>')
|
||||
|
||||
-- open context menu
|
||||
vim.keymap.set("n", "<C-t>", function()
|
||||
require("menu").open("default")
|
||||
end, {})
|
||||
|
||||
-- lspsaga
|
||||
wk.register({
|
||||
l = {
|
||||
name = "Lspsaga",
|
||||
c = { "<cmd>Lspsaga code_action<cr>", "Code Action" },
|
||||
o = { "<cmd>Lspsaga outline<cr>", "Outline" },
|
||||
r = { "<cmd>Lspsaga rename<cr>", "Rename" },
|
||||
d = { "<cmd>Lspsaga goto_definition<cr>", "Lsp GoTo Definition" },
|
||||
f = { "<cmd>Lspsaga finder<cr>", "Lsp Finder" },
|
||||
p = { "<cmd>Lspsaga preview_definition<cr>", "Preview Definition" },
|
||||
s = { "<cmd>Lspsaga signature_help<cr>", "Signature Help" },
|
||||
w = { "<cmd>Lspsaga show_workspace_diagnostics<cr>", "Show Workspace Diagnostics" },
|
||||
}
|
||||
}, { prefix = "<leader>" })
|
||||
|
||||
@ -18,8 +18,8 @@ vim.opt.rtp:prepend(lazypath)
|
||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||
-- loading lazy.nvim so that mappings are correct.
|
||||
-- This is also a good place to setup other settings (vim.opt)
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = "\\"
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
|
||||
@ -25,22 +25,8 @@ return {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
},
|
||||
--# neo-tree, a filebrowser
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
keys = {
|
||||
{ "<leader>ft", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
|
||||
},
|
||||
opts = {},
|
||||
},
|
||||
--# gruvbox, a style
|
||||
'morhetz/gruvbox',
|
||||
--# catppuccin, a style
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000
|
||||
},
|
||||
--# fugitive, a git wrapper
|
||||
'tpope/vim-fugitive',
|
||||
--# tagbar, opens a view to see properties and methods of file
|
||||
@ -50,7 +36,6 @@ return {
|
||||
--# deadcolumn, shows line limit when coming close
|
||||
'Bekaboo/deadcolumn.nvim',
|
||||
--# colorizer, show hex and other colors e.g: #ADADBF
|
||||
--'norcalli/nvim-colorizer.lua', looks unmaintained
|
||||
'NiklasV1/nvim-colorizer.lua',
|
||||
--# SyntaxAttr, display syntax highlighting
|
||||
'vim-scripts/SyntaxAttr.vim',
|
||||
@ -84,6 +69,102 @@ return {
|
||||
require("lazy-lsp").setup {}
|
||||
end
|
||||
},
|
||||
-- Add scrollbar
|
||||
'petertriho/nvim-scrollbar',
|
||||
-- Show shortcut keys
|
||||
{
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
-- your configuration comes here
|
||||
-- or leave it empty to use the default settings
|
||||
-- refer to the configuration section below
|
||||
},
|
||||
keys = {
|
||||
{
|
||||
"<leader>?",
|
||||
function()
|
||||
require("which-key").show({ global = false })
|
||||
end,
|
||||
desc = "Buffer Local Keymaps (which-key)",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- formatting!
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = {
|
||||
formatters_by_ft = { lua = { "stylua" } },
|
||||
},
|
||||
},
|
||||
-- context menu
|
||||
{
|
||||
"nvzone/volt",
|
||||
lazy = true
|
||||
},
|
||||
{
|
||||
"nvzone/menu",
|
||||
lazy = true
|
||||
},
|
||||
-- color picker
|
||||
{
|
||||
"nvzone/minty",
|
||||
cmd = { "Shades", "Huefy" },
|
||||
},
|
||||
-- undo tree
|
||||
{
|
||||
"jiaoshijie/undotree",
|
||||
dependencies = { "nvim-lua/plenary.nvim" },
|
||||
---@module 'undotree.collector'
|
||||
---@type UndoTreeCollector.Opts
|
||||
opts = {
|
||||
-- your options
|
||||
},
|
||||
keys = { -- load the plugin only when using it's keybinding:
|
||||
{ "<leader>u", "<cmd>lua require('undotree').toggle()<cr>" },
|
||||
},
|
||||
},
|
||||
{
|
||||
'nvimdev/lspsaga.nvim',
|
||||
config = function()
|
||||
require('lspsaga').setup({})
|
||||
end,
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter', -- optional
|
||||
'nvim-tree/nvim-web-devicons', -- optional
|
||||
}
|
||||
},
|
||||
}
|
||||
--"williamboman/mason.nvim",
|
||||
--"williamboman/mason-lspconfig.nvim",
|
||||
--"neovim/nvim-lspconfig",
|
||||
--# neo-tree, a filebrowser
|
||||
--{
|
||||
-- "nvim-neo-tree/neo-tree.nvim",
|
||||
-- keys = {
|
||||
-- { "<leader>ft", "<cmd>Neotree toggle<cr>", desc = "NeoTree" },
|
||||
-- },
|
||||
-- opts = {},
|
||||
--},
|
||||
---- ui plugin is a collection of many UI modules like statusline, tabline, cheatsheet, nvdash and much more!
|
||||
--"nvim-lua/plenary.nvim",
|
||||
--{
|
||||
-- "nvim-tree/nvim-web-devicons",
|
||||
-- lazy = true
|
||||
--},
|
||||
--{
|
||||
-- "nvchad/ui",
|
||||
-- config = function()
|
||||
-- require "nvchad"
|
||||
-- end
|
||||
--},
|
||||
--{
|
||||
-- "nvchad/base46",
|
||||
-- lazy = true,
|
||||
-- build = function()
|
||||
-- require("base46").load_all_highlights()
|
||||
-- end,
|
||||
--},
|
||||
--{
|
||||
-- "dundalek/lazy-lsp.nvim",
|
||||
-- commit="0ccc0238be37351d53e64c2f6c7f9e106e2bdb68",
|
||||
@ -107,9 +188,3 @@ return {
|
||||
-- require("lazy-lsp").setup {}
|
||||
-- end,
|
||||
--},
|
||||
-- Add scrollbar
|
||||
'petertriho/nvim-scrollbar',
|
||||
}
|
||||
--"williamboman/mason.nvim",
|
||||
--"williamboman/mason-lspconfig.nvim",
|
||||
--"neovim/nvim-lspconfig",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user