Work on LSP
This commit is contained in:
parent
82084e72a3
commit
258b42a1d5
@ -32,6 +32,7 @@
|
|||||||
"nvim-dap": { "branch": "master", "commit": "2b428ff2632e73295e9decbcf1c40d8e26213305" },
|
"nvim-dap": { "branch": "master", "commit": "2b428ff2632e73295e9decbcf1c40d8e26213305" },
|
||||||
"nvim-dap-python": { "branch": "master", "commit": "d777c2b32ed39f61209c09bede28d7491621a631" },
|
"nvim-dap-python": { "branch": "master", "commit": "d777c2b32ed39f61209c09bede28d7491621a631" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" },
|
"nvim-dap-ui": { "branch": "master", "commit": "a5606bc5958db86f8d92803bea7400ee26a8d7e4" },
|
||||||
|
"nvim-lint": { "branch": "master", "commit": "ad0fe35e80f5cd31a0f19176d7b30e5c3011119d" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "037ea0901ce9a28cfcaa36302618f06d2e164fbf" },
|
"nvim-lspconfig": { "branch": "master", "commit": "037ea0901ce9a28cfcaa36302618f06d2e164fbf" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "ad0b95dee55955817af635fa121f6e2486b10583" },
|
"nvim-tree.lua": { "branch": "master", "commit": "ad0b95dee55955817af635fa121f6e2486b10583" },
|
||||||
|
|||||||
@ -1,21 +1,22 @@
|
|||||||
return {}
|
return {
|
||||||
-- return {
|
indent = {
|
||||||
-- indentLine_enabled = 1,
|
char = "│",
|
||||||
-- filetype_exclude = {
|
tab_char = "│",
|
||||||
-- "help",
|
},
|
||||||
-- "terminal",
|
scope = { enabled = false },
|
||||||
-- "lazy",
|
exclude = {
|
||||||
-- "lspinfo",
|
filetypes = {
|
||||||
-- "TelescopePrompt",
|
"NvimTree",
|
||||||
-- "TelescopeResults",
|
"Trouble",
|
||||||
-- "mason",
|
"alpha",
|
||||||
-- "nvdash",
|
"dashboard",
|
||||||
-- "nvcheatsheet",
|
"help",
|
||||||
-- "",
|
"lazy",
|
||||||
-- },
|
"lspinfo",
|
||||||
-- buftype_exclude = { "terminal" },
|
"mason",
|
||||||
-- show_trailing_blankline_indent = false,;
|
"neo-tree",
|
||||||
-- show_first_indent_level = false,
|
"notify",
|
||||||
-- show_current_context = true,
|
"toggleterm",
|
||||||
-- show_current_context_start = true,
|
},
|
||||||
-- }
|
},
|
||||||
|
}
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
local actions = require "diffview.actions"
|
||||||
|
|
||||||
return {
|
return {
|
||||||
hooks = {
|
hooks = {
|
||||||
diff_buf_read = function(_)
|
diff_buf_read = function(_)
|
||||||
@ -8,4 +10,15 @@ return {
|
|||||||
vim.api.nvim_command "set ft=diff"
|
vim.api.nvim_command "set ft=diff"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
keymaps = {
|
||||||
|
file_panel = {
|
||||||
|
["<CR>"] = actions.focus_entry,
|
||||||
|
},
|
||||||
|
view = {
|
||||||
|
["<CR>"] = function()
|
||||||
|
print "asd"
|
||||||
|
-- actions.diffget()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,9 +16,46 @@ for _, lsp in ipairs(servers) do
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
-- configuring single server, example: typescript
|
-- lsp settings (for overriding per client)
|
||||||
-- lspconfig.tsserver.setup {
|
local handlers = {
|
||||||
-- on_attach = nvlsp.on_attach,
|
["textdocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = "rounded" }),
|
||||||
|
["textdocument/signaturehelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, { border = "rounded" }),
|
||||||
|
}
|
||||||
|
|
||||||
|
-- require("lspconfig").pyright.setup {
|
||||||
-- on_init = nvlsp.on_init,
|
-- on_init = nvlsp.on_init,
|
||||||
|
-- on_attach = nvlsp.on_attach,
|
||||||
-- capabilities = nvlsp.capabilities,
|
-- capabilities = nvlsp.capabilities,
|
||||||
|
-- handlers = handlers,
|
||||||
|
--
|
||||||
|
-- settings = {
|
||||||
|
-- pyright = {
|
||||||
|
-- -- options available here: https://github.com/microsoft/pyright/blob/main/docs/settings.md
|
||||||
|
-- disableorganizeimports = true, -- using ruff
|
||||||
|
-- -- disablelanguageservices = true, -- using ruff
|
||||||
|
-- },
|
||||||
|
-- python = {
|
||||||
|
-- analysis = {
|
||||||
|
-- -- ignore = { "*" }, -- using ruff
|
||||||
|
-- -- typecheckingmode = "off", -- using mypy
|
||||||
|
-- diagnosticseverityoverrides = {
|
||||||
|
-- reportmissingimports = false,
|
||||||
|
-- -- reportattributeaccessissue = false,
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
-- }
|
-- }
|
||||||
|
|
||||||
|
require("lspconfig").pylsp.setup {
|
||||||
|
settings = {
|
||||||
|
pylsp = {
|
||||||
|
plugins = {
|
||||||
|
pycodestyle = {
|
||||||
|
ignore = { "W391", "E501" },
|
||||||
|
maxLineLength = 100,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|||||||
@ -220,14 +220,7 @@ end, { desc = "Goto prev buffer" })
|
|||||||
-- end, { desc = "Close buffer" })
|
-- end, { desc = "Close buffer" })
|
||||||
|
|
||||||
-- Comment
|
-- Comment
|
||||||
local comment = require "Comment.api"
|
-- https://github.com/numToStr/Comment.nvim?tab=readme-ov-file#basic-mappings
|
||||||
map("n", "<leader>ci", function()
|
|
||||||
comment.toggle.linewise.current()
|
|
||||||
end, { desc = "Toggle comment" })
|
|
||||||
|
|
||||||
map("v", "<leader>ci", function()
|
|
||||||
comment.toggle.linewise(vim.fin.visualmode())
|
|
||||||
end, { desc = "Toggle comment" })
|
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
map("n", "gD", vim.lsp.buf.declaration, { desc = "LSP declaration" })
|
map("n", "gD", vim.lsp.buf.declaration, { desc = "LSP declaration" })
|
||||||
@ -425,23 +418,21 @@ end, { desc = "Which-key query lookup" })
|
|||||||
local gitsigns = require "gitsigns"
|
local gitsigns = require "gitsigns"
|
||||||
map("n", "]c", function()
|
map("n", "]c", function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then
|
||||||
return "]c"
|
-- Use default vim ]c when in diff mode
|
||||||
|
vim.cmd.normal { "]c", bang = true }
|
||||||
|
else
|
||||||
|
gitsigns.nav_hunk "next"
|
||||||
end
|
end
|
||||||
vim.schedule(function()
|
end, { desc = "Git: Jump to next hunk" })
|
||||||
gitsigns.next_hunk()
|
|
||||||
end)
|
|
||||||
return "<Ignore>"
|
|
||||||
end, { desc = "Jump to next hunk" })
|
|
||||||
|
|
||||||
map("n", "[c", function()
|
map("n", "[c", function()
|
||||||
if vim.wo.diff then
|
if vim.wo.diff then
|
||||||
return "[c"
|
-- Use default vim ]c when in diff mode
|
||||||
|
vim.cmd.normal { "[c", bang = true }
|
||||||
|
else
|
||||||
|
gitsigns.nav_hunk "prev"
|
||||||
end
|
end
|
||||||
vim.schedule(function()
|
end, { desc = "Git: Jump to prev hunk" })
|
||||||
gitsigns.prev_hunk()
|
|
||||||
end)
|
|
||||||
return "<Ignore>"
|
|
||||||
end, { desc = "Jump to prev hunk" })
|
|
||||||
|
|
||||||
map("n", "<leader>rh", gitsigns.reset_hunk, { desc = "Git Reset hunk" })
|
map("n", "<leader>rh", gitsigns.reset_hunk, { desc = "Git Reset hunk" })
|
||||||
map("n", "<leader>ph", gitsigns.preview_hunk, { desc = "Git Preview hunk" })
|
map("n", "<leader>ph", gitsigns.preview_hunk, { desc = "Git Preview hunk" })
|
||||||
|
|||||||
@ -18,13 +18,21 @@ return {
|
|||||||
{ "ludovicchabant/vim-gutentags", lazy = false },
|
{ "ludovicchabant/vim-gutentags", lazy = false },
|
||||||
{ "emaniacs/vim-rest-console", lazy = false },
|
{ "emaniacs/vim-rest-console", lazy = false },
|
||||||
{ "mfussenegger/nvim-dap", lazy = false },
|
{ "mfussenegger/nvim-dap", lazy = false },
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-lint",
|
||||||
|
lazy = false,
|
||||||
|
init = function()
|
||||||
|
-- require("link").linters_by_ft = {
|
||||||
|
-- python = { "mypy" },
|
||||||
|
-- }
|
||||||
|
end,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
"nvim-neotest/nvim-nio",
|
"nvim-neotest/nvim-nio",
|
||||||
},
|
},
|
||||||
lazy = false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"mfussenegger/nvim-dap-python",
|
"mfussenegger/nvim-dap-python",
|
||||||
@ -32,7 +40,6 @@ return {
|
|||||||
"mfussenegger/nvim-dap",
|
"mfussenegger/nvim-dap",
|
||||||
"rcarriga/nvim-dap-ui",
|
"rcarriga/nvim-dap-ui",
|
||||||
},
|
},
|
||||||
lazy = false,
|
|
||||||
init = function()
|
init = function()
|
||||||
require("dap-python").setup "python"
|
require("dap-python").setup "python"
|
||||||
-- Setup nvim-dap-ui also
|
-- Setup nvim-dap-ui also
|
||||||
@ -49,15 +56,14 @@ return {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Weissle/persistent-breakpoints.nvim",
|
"Weissle/persistent-breakpoints.nvim",
|
||||||
lazy = false,
|
|
||||||
config = function(_, _)
|
config = function(_, _)
|
||||||
require("persistent-breakpoints").setup {
|
require("persistent-breakpoints").setup {
|
||||||
load_breakpoints_event = { "BufReadPost" },
|
load_breakpoints_event = { "BufReadPost" },
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ "nvim-telescope/telescope-live-grep-args.nvim", lazy = false },
|
{ "nvim-telescope/telescope-live-grep-args.nvim" },
|
||||||
{ "nvim-telescope/telescope-dap.nvim", lazy = false },
|
{ "nvim-telescope/telescope-dap.nvim" },
|
||||||
-- {
|
-- {
|
||||||
-- "harrisoncramer/gitlab.nvim",
|
-- "harrisoncramer/gitlab.nvim",
|
||||||
-- dependencies = {
|
-- dependencies = {
|
||||||
@ -68,7 +74,6 @@ return {
|
|||||||
-- "nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree.
|
-- "nvim-tree/nvim-web-devicons", -- Recommended but not required. Icons in discussion tree.
|
||||||
-- },
|
-- },
|
||||||
-- enabled = true,
|
-- enabled = true,
|
||||||
-- lazy = false,
|
|
||||||
-- build = function()
|
-- build = function()
|
||||||
-- require("gitlab.server").build(true)
|
-- require("gitlab.server").build(true)
|
||||||
-- end, -- Builds the Go binary
|
-- end, -- Builds the Go binary
|
||||||
@ -81,7 +86,6 @@ return {
|
|||||||
-- },
|
-- },
|
||||||
{
|
{
|
||||||
"sindrets/diffview.nvim",
|
"sindrets/diffview.nvim",
|
||||||
lazy = false,
|
|
||||||
opts = function()
|
opts = function()
|
||||||
return require "configs.diffview"
|
return require "configs.diffview"
|
||||||
end,
|
end,
|
||||||
@ -114,7 +118,6 @@ return {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"chentoast/marks.nvim",
|
"chentoast/marks.nvim",
|
||||||
lazy = false,
|
|
||||||
init = function()
|
init = function()
|
||||||
require("marks").setup {
|
require("marks").setup {
|
||||||
default_mappings = true,
|
default_mappings = true,
|
||||||
@ -159,7 +162,6 @@ return {
|
|||||||
{
|
{
|
||||||
"nvim-tree/nvim-web-devicons",
|
"nvim-tree/nvim-web-devicons",
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
dofile(vim.g.base46_cache .. "devicons")
|
|
||||||
require("nvim-web-devicons").setup(opts)
|
require("nvim-web-devicons").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -182,14 +184,12 @@ return {
|
|||||||
return require "configs.treesitter"
|
return require "configs.treesitter"
|
||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
dofile(vim.g.base46_cache .. "syntax")
|
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||||
lazy = false,
|
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter.configs").setup(require "configs.treesitter_textobjects")
|
require("nvim-treesitter.configs").setup(require "configs.treesitter_textobjects")
|
||||||
end,
|
end,
|
||||||
@ -202,10 +202,6 @@ return {
|
|||||||
opts = function()
|
opts = function()
|
||||||
return require "configs.gitsigns"
|
return require "configs.gitsigns"
|
||||||
end,
|
end,
|
||||||
-- config = function(_, opts)
|
|
||||||
-- dofile(vim.g.base46_cache .. "git")
|
|
||||||
-- require("gitsigns").setup(opts)
|
|
||||||
-- end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
-- lsp stuff
|
-- lsp stuff
|
||||||
@ -215,19 +211,6 @@ return {
|
|||||||
opts = function()
|
opts = function()
|
||||||
return require "configs.mason"
|
return require "configs.mason"
|
||||||
end,
|
end,
|
||||||
-- config = function(_, opts)
|
|
||||||
-- dofile(vim.g.base46_cache .. "mason")
|
|
||||||
-- require("mason").setup(opts)
|
|
||||||
--
|
|
||||||
-- -- custom nvchad cmd to install all mason binaries listed
|
|
||||||
-- vim.api.nvim_create_user_command("MasonInstallAll", function()
|
|
||||||
-- if opts.ensure_installed and #opts.ensure_installed > 0 then
|
|
||||||
-- vim.cmd("MasonInstall " .. table.concat(opts.ensure_installed, " "))
|
|
||||||
-- end
|
|
||||||
-- end, {})
|
|
||||||
--
|
|
||||||
-- vim.g.mason_binaries_list = opts.ensure_installed
|
|
||||||
-- end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -238,54 +221,6 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- load luasnips + cmp related in insert mode only
|
|
||||||
{
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
event = "InsertEnter",
|
|
||||||
dependencies = {
|
|
||||||
{
|
|
||||||
-- snippet plugin
|
|
||||||
"L3MON4D3/LuaSnip",
|
|
||||||
dependencies = "rafamadriz/friendly-snippets",
|
|
||||||
opts = { history = true, updateevents = "TextChanged,TextChangedI" },
|
|
||||||
config = function(_, opts)
|
|
||||||
require "configs.luasnip"(opts)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- autopairing of (){}[] etc
|
|
||||||
{
|
|
||||||
"windwp/nvim-autopairs",
|
|
||||||
opts = {
|
|
||||||
fast_wrap = {},
|
|
||||||
disable_filetype = { "TelescopePrompt", "vim" },
|
|
||||||
},
|
|
||||||
config = function(_, opts)
|
|
||||||
require("nvim-autopairs").setup(opts)
|
|
||||||
|
|
||||||
-- setup cmp for autopairs
|
|
||||||
local cmp_autopairs = require "nvim-autopairs.completion.cmp"
|
|
||||||
require("cmp").event:on("confirm_done", cmp_autopairs.on_confirm_done())
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
-- cmp sources plugins
|
|
||||||
{
|
|
||||||
"saadparwaiz1/cmp_luasnip",
|
|
||||||
"hrsh7th/cmp-nvim-lua",
|
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
|
||||||
"hrsh7th/cmp-buffer",
|
|
||||||
"hrsh7th/cmp-path",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
opts = function()
|
|
||||||
return require "configs.cmp"
|
|
||||||
end,
|
|
||||||
config = function(_, opts)
|
|
||||||
require("cmp").setup(opts)
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
keys = {
|
keys = {
|
||||||
@ -305,88 +240,14 @@ return {
|
|||||||
{
|
{
|
||||||
"desdic/macrothis.nvim",
|
"desdic/macrothis.nvim",
|
||||||
opts = {},
|
opts = {},
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<Leader>kkd",
|
|
||||||
function()
|
|
||||||
require("macrothis").delete()
|
|
||||||
end,
|
|
||||||
desc = "[D]elete",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kke",
|
|
||||||
function()
|
|
||||||
require("macrothis").edit()
|
|
||||||
end,
|
|
||||||
desc = "[E]dit",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkl",
|
|
||||||
function()
|
|
||||||
require("macrothis").load()
|
|
||||||
end,
|
|
||||||
desc = "[L]oad",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkn",
|
|
||||||
function()
|
|
||||||
require("macrothis").rename()
|
|
||||||
end,
|
|
||||||
desc = "Re[n]ame",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkq",
|
|
||||||
function()
|
|
||||||
require("macrothis").quickfix()
|
|
||||||
end,
|
|
||||||
desc = "Run macro on all files in [q]uickfix",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkr",
|
|
||||||
function()
|
|
||||||
require("macrothis").run()
|
|
||||||
end,
|
|
||||||
desc = "[R]un macro",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kks",
|
|
||||||
function()
|
|
||||||
require("macrothis").save()
|
|
||||||
end,
|
|
||||||
desc = "[S]ave",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkx",
|
|
||||||
function()
|
|
||||||
require("macrothis").register()
|
|
||||||
end,
|
|
||||||
desc = "Edit register",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkp",
|
|
||||||
function()
|
|
||||||
require("macrothis").copy_register_printable()
|
|
||||||
end,
|
|
||||||
desc = "Co[p]y register as printable",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"<Leader>kkm",
|
|
||||||
function()
|
|
||||||
require("macrothis").copy_macro_printable()
|
|
||||||
end,
|
|
||||||
desc = "Copy [m]acro as printable",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"onsails/diaglist.nvim",
|
"onsails/diaglist.nvim",
|
||||||
lazy = false,
|
|
||||||
debug = false,
|
debug = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"anuvyklack/hydra.nvim",
|
"anuvyklack/hydra.nvim",
|
||||||
lazy = false,
|
|
||||||
config = function()
|
config = function()
|
||||||
require "configs.hydra"
|
require "configs.hydra"
|
||||||
end,
|
end,
|
||||||
@ -399,7 +260,6 @@ return {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"natecraddock/workspaces.nvim",
|
"natecraddock/workspaces.nvim",
|
||||||
lazy = false,
|
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
require("workspaces").setup {
|
require("workspaces").setup {
|
||||||
@ -433,7 +293,6 @@ return {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"yorickpeterse/nvim-window",
|
"yorickpeterse/nvim-window",
|
||||||
lazy = false,
|
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-window").setup {
|
require("nvim-window").setup {
|
||||||
normal_hl = "Normal",
|
normal_hl = "Normal",
|
||||||
@ -445,12 +304,10 @@ return {
|
|||||||
|
|
||||||
{
|
{
|
||||||
"sindrets/winshift.nvim",
|
"sindrets/winshift.nvim",
|
||||||
lazy = false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
"kdheepak/lazygit.nvim",
|
"kdheepak/lazygit.nvim",
|
||||||
lazy = false,
|
|
||||||
config = function()
|
config = function()
|
||||||
require("lazy").setup {
|
require("lazy").setup {
|
||||||
{
|
{
|
||||||
@ -471,10 +328,6 @@ return {
|
|||||||
opts = function()
|
opts = function()
|
||||||
return require "configs.nvimtree"
|
return require "configs.nvimtree"
|
||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
|
||||||
dofile(vim.g.base46_cache .. "nvimtree")
|
|
||||||
require("nvim-tree").setup(opts)
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -485,7 +338,6 @@ return {
|
|||||||
return require "configs.telescope"
|
return require "configs.telescope"
|
||||||
end,
|
end,
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
-- dofile(vim.g.base46_cache .. "telescope")
|
|
||||||
local telescope = require "telescope"
|
local telescope = require "telescope"
|
||||||
telescope.setup(opts)
|
telescope.setup(opts)
|
||||||
|
|
||||||
@ -499,13 +351,8 @@ return {
|
|||||||
-- Only load whichkey after all the gui
|
-- Only load whichkey after all the gui
|
||||||
{
|
{
|
||||||
"folke/which-key.nvim",
|
"folke/which-key.nvim",
|
||||||
lazy = false,
|
|
||||||
keys = { "<leader>", "<c-r>", "<c-w>", '"', "'", "`", "c", "v", "g" },
|
keys = { "<leader>", "<c-r>", "<c-w>", '"', "'", "`", "c", "v", "g" },
|
||||||
cmd = "WhichKey",
|
cmd = "WhichKey",
|
||||||
config = function(_, opts)
|
|
||||||
dofile(vim.g.base46_cache .. "whichkey")
|
|
||||||
require("which-key").setup(opts)
|
|
||||||
end,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"ThePrimeagen/harpoon",
|
"ThePrimeagen/harpoon",
|
||||||
@ -532,12 +379,10 @@ return {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
-- require("notify").setup({
|
|
||||||
-- background_colour = "#000000"
|
|
||||||
-- })
|
|
||||||
end,
|
end,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
|
-- Uncomment the next line to use nvim-notify
|
||||||
-- "rcarriga/nvim-notify",
|
-- "rcarriga/nvim-notify",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -545,15 +390,10 @@ return {
|
|||||||
"folke/todo-comments.nvim",
|
"folke/todo-comments.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
opts = {
|
opts = {},
|
||||||
-- your configuration comes here
|
|
||||||
-- or leave it empty to use the default settings
|
|
||||||
-- refer to the configuration section below
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
lazy = false,
|
|
||||||
cmd = "Trouble",
|
cmd = "Trouble",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user