feat: nvchad neovim config + more yeswiki git repo
This commit is contained in:
parent
f9ae07c2f9
commit
ce4e0d543e
25 changed files with 607 additions and 218 deletions
3
dotfiles/nvim.lazy/lua/config/autocmds.lua
Normal file
3
dotfiles/nvim.lazy/lua/config/autocmds.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- Autocmds are automatically loaded on the VeryLazy event
|
||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||
-- Add any additional autocmds here
|
43
dotfiles/nvim.lazy/lua/config/keymaps.lua
Normal file
43
dotfiles/nvim.lazy/lua/config/keymaps.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
-- Keymaps are automatically loaded on the VeryLazy event
|
||||
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
|
||||
-- Add any additional keymaps here
|
||||
local map = vim.keymap.set
|
||||
map({ "i", "x", "n", "s" }, "<f1>", function()
|
||||
require("harpoon"):list():select(1)
|
||||
end, { desc = "Harpoon file 1" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f2>", function()
|
||||
require("harpoon"):list():select(2)
|
||||
end, { desc = "Harpoon file 2" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f3>", function()
|
||||
require("harpoon"):list():select(3)
|
||||
end, { desc = "Harpoon file 3" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f4>", function()
|
||||
require("harpoon"):list():select(4)
|
||||
end, { desc = "Harpoon file 4" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f5>", function()
|
||||
require("harpoon"):list():select(5)
|
||||
end, { desc = "Harpoon file 5" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f6>", function()
|
||||
require("harpoon"):list():select(6)
|
||||
end, { desc = "Harpoon file 6" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f7>", function()
|
||||
require("harpoon"):list():select(7)
|
||||
end, { desc = "Harpoon file 7" })
|
||||
|
||||
map({ "i", "x", "n", "s" }, "<f8>", function()
|
||||
require("harpoon"):list():select(8)
|
||||
end, { desc = "Harpoon file 8" })
|
||||
|
||||
-- Move Lines
|
||||
map("n", "<A-down>", "<cmd>m .+1<cr>==", { desc = "Move Down" })
|
||||
map("n", "<A-up>", "<cmd>m .-2<cr>==", { desc = "Move Up" })
|
||||
map("i", "<A-down>", "<esc><cmd>m .+1<cr>==gi", { desc = "Move Down" })
|
||||
map("i", "<A-up>", "<esc><cmd>m .-2<cr>==gi", { desc = "Move Up" })
|
||||
map("v", "<A-down>", ":m '>+1<cr>gv=gv", { desc = "Move Down" })
|
||||
map("v", "<A-up>", ":m '<-2<cr>gv=gv", { desc = "Move Up" })
|
46
dotfiles/nvim.lazy/lua/config/lazy.lua
Normal file
46
dotfiles/nvim.lazy/lua/config/lazy.lua
Normal file
|
@ -0,0 +1,46 @@
|
|||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
-- bootstrap lazy.nvim
|
||||
-- stylua: ignore
|
||||
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
|
||||
end
|
||||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
vim.env.SHELL = "/bin/sh"
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
-- { import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
-- { import = "lazyvim.plugins.extras.lang.json" },
|
||||
-- { import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = false,
|
||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||
-- have outdated releases, which may break your Neovim install.
|
||||
version = false, -- always use the latest git commit
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = false }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
10
dotfiles/nvim.lazy/lua/config/options.lua
Normal file
10
dotfiles/nvim.lazy/lua/config/options.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
-- Options are automatically loaded before lazy.nvim startup
|
||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||
-- Add any additional options here
|
||||
local opt = vim.opt
|
||||
opt.scrolloff = 9
|
||||
opt.wrap = true
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.list = false
|
||||
opt.relativenumber = true
|
||||
opt.cursorline = false
|
5
dotfiles/nvim.lazy/lua/plugins/disabled.lua
Normal file
5
dotfiles/nvim.lazy/lua/plugins/disabled.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
return {
|
||||
{ "akinsho/bufferline.nvim", enabled = false },
|
||||
{ "lukas-reineke/indent-blankline.nvim", enabled = false },
|
||||
{ "echasnovski/mini.indentscope", enabled = false },
|
||||
}
|
140
dotfiles/nvim.lazy/lua/plugins/mrflos.lua
Normal file
140
dotfiles/nvim.lazy/lua/plugins/mrflos.lua
Normal file
|
@ -0,0 +1,140 @@
|
|||
function ColorMyPencils(color)
|
||||
color = color or "rose-pine"
|
||||
vim.cmd.colorscheme(color)
|
||||
|
||||
vim.api.nvim_set_hl(0, "Normal", { bg = "none" })
|
||||
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" })
|
||||
end
|
||||
|
||||
return {
|
||||
-- theme Rosé Pine
|
||||
{
|
||||
"rose-pine/neovim",
|
||||
name = "rose-pine",
|
||||
config = function()
|
||||
require("rose-pine").setup({
|
||||
disable_background = true,
|
||||
styles = {
|
||||
italic = false,
|
||||
},
|
||||
})
|
||||
|
||||
vim.cmd("colorscheme rose-pine")
|
||||
|
||||
ColorMyPencils()
|
||||
end,
|
||||
},
|
||||
|
||||
-- Configure LazyVim to load theme
|
||||
{
|
||||
"LazyVim/LazyVim",
|
||||
opts = {
|
||||
colorscheme = "rose-pine",
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
"css",
|
||||
"dockerfile",
|
||||
"go",
|
||||
"html",
|
||||
"javascript",
|
||||
"json",
|
||||
"lua",
|
||||
"make",
|
||||
"markdown",
|
||||
"markdown_inline",
|
||||
"nix",
|
||||
"php",
|
||||
"python",
|
||||
"query",
|
||||
"regex",
|
||||
"rust",
|
||||
"toml",
|
||||
"tsx",
|
||||
"typescript",
|
||||
"twig",
|
||||
"vim",
|
||||
"vue",
|
||||
"yaml",
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Neotree plugin
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
opts = {
|
||||
close_if_last_window = true,
|
||||
event_handlers = {
|
||||
{
|
||||
event = "file_opened",
|
||||
handler = function()
|
||||
vim.cmd([[Neotree close]])
|
||||
end,
|
||||
},
|
||||
},
|
||||
filesystem = {
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
},
|
||||
},
|
||||
window = {
|
||||
position = "current",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
intelephense = {
|
||||
environment = {
|
||||
includePaths = {
|
||||
"/home/mrflos/Developpements/yeswiki",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"folke/noice.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = {
|
||||
cmdline = {
|
||||
view = "cmdline",
|
||||
},
|
||||
presets = {
|
||||
bottom_search = true,
|
||||
command_palette = false,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
opts = {
|
||||
defaults = {
|
||||
layout_strategy = "bottom_pane",
|
||||
layout_config = {
|
||||
prompt_position = "top",
|
||||
preview_cutoff = 5, -- Preview should always show (unless previewer = false)
|
||||
width = function(_, max_columns, _)
|
||||
return math.min(max_columns, 120)
|
||||
end,
|
||||
height = function(_, _, max_lines)
|
||||
return math.min(max_lines, 15)
|
||||
end,
|
||||
},
|
||||
sorting_strategy = "ascending",
|
||||
border = true,
|
||||
borderchars = {
|
||||
prompt = { "─", "│", "─", "│", "╭", "╮", "╯", "╰" },
|
||||
results = { "─", "│", "─", "│", "├", "╮", "╯", "╰" },
|
||||
preview = { "─", "│", "─", "│", "╭", "┤", "╯", "╰" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue