Nvim switch from NvChad to LazyVim
This commit is contained in:
8
config/nvim/lua/plugins/colorscheme.lua
Normal file
8
config/nvim/lua/plugins/colorscheme.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
return {
|
||||
{ "rose-pine/neovim", name = "rose-pine", lazy = false, priority = 1000 },
|
||||
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = { colorscheme = "rose-pine" },
|
||||
},
|
||||
}
|
||||
@@ -1,83 +0,0 @@
|
||||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
-- event = 'BufWritePre', -- uncomment for format on save
|
||||
opts = require "configs.conform",
|
||||
},
|
||||
|
||||
-- These are some examples, uncomment them if you want to see them work!
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
config = function()
|
||||
require "configs.lspconfig"
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'mrcjkb/rustaceanvim',
|
||||
-- To avoid being surprised by breaking changes,
|
||||
-- I recommend you set a version range
|
||||
version = '^9',
|
||||
-- This plugin implements proper lazy-loading (see :h lua-plugin-lazy).
|
||||
-- No need for lazy.nvim to lazy-load it.
|
||||
lazy = false,
|
||||
config = function()
|
||||
local mason_registry = require('mason-registry')
|
||||
local codelldb = mason_registry.get_package('codelldb')
|
||||
local extension_path = codelldb:get_install_path() .. "/extension/"
|
||||
local codelldb_path = extension_path .. "adapter/codelldb"
|
||||
local liblldb_ext = vim.uv.os_uname().sysname == "Darwin" and "dylib" or "so"
|
||||
local liblldb_path = extension_path .. "lldb/lib/liblldb." .. liblldb_ext
|
||||
local cfg = require('rustaceanvim.config')
|
||||
|
||||
vim.g.rustaceanvim = {
|
||||
dap = {
|
||||
adapter = cfg.get_codelldb_adapter(codelldb_path, liblldb_path),
|
||||
},
|
||||
}
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
'mfussenegger/nvim-dap',
|
||||
config = function()
|
||||
local dap, dapui = require('dap'), require('dapui')
|
||||
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
|
||||
dap.listeners.before.launch.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
|
||||
dap.listeners.before.event_terminated.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
|
||||
dap.listeners.before.event_exited.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
end
|
||||
},
|
||||
|
||||
{
|
||||
'rcarriga/nvim-dap-ui',
|
||||
dependencies = { 'mfussenegger/nvim-dap', 'nvim-neotest/nvim-nio' },
|
||||
config = function()
|
||||
require('dapui').setup()
|
||||
end,
|
||||
},
|
||||
|
||||
{ import = "nvchad.blink.lazyspec" },
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"vim", "lua", "vimdoc",
|
||||
"html", "css"
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
13
config/nvim/lua/plugins/tmux-navigator.lua
Normal file
13
config/nvim/lua/plugins/tmux-navigator.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
return {
|
||||
{
|
||||
"christoomey/vim-tmux-navigator",
|
||||
lazy = false,
|
||||
cmd = {
|
||||
"TmuxNavigateLeft",
|
||||
"TmuxNavigateDown",
|
||||
"TmuxNavigateUp",
|
||||
"TmuxNavigateRight",
|
||||
"TmuxNavigatePrevious",
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user