add niri and update nvim config
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
--local wk = require("which-key")
|
||||
--require("aerial").setup({
|
||||
-- wk.add({
|
||||
-- { "{", "<cmd>AerialPrev<CR>", desc = "Jump to prev Symbol" },
|
||||
-- { "}", "<cmd>AerialNext<CR>", desc = "Jump to prev Symbol" },
|
||||
-- { "<leader>a", "<cmd>AerialToggle!<CR>", desc = "Toggle Outline" },
|
||||
-- }),
|
||||
--})
|
||||
@@ -2,3 +2,7 @@ vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead", "BufEnter" }, {
|
||||
pattern = { "*.r", "*.R" },
|
||||
command = "set ts=2 sw=2 noet",
|
||||
})
|
||||
vim.api.nvim_create_autocmd({ "BufRead", "BufEnter" }, {
|
||||
pattern = { "*.md", "*.txt" },
|
||||
command = "set wrap",
|
||||
})
|
||||
|
||||
@@ -1,14 +1,19 @@
|
||||
require("plug_init.vim_init")
|
||||
require("plug_init.lazy_path")
|
||||
require("lazy").setup("plugins")
|
||||
|
||||
require("plug_init.ft_autocmds")
|
||||
require("plug_init.lsp_init")
|
||||
--require("plug_init.which_key_init")
|
||||
require("plug_init.wilder_init")
|
||||
require("plug_init.mini_init")
|
||||
require("plug_init.lazy")
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
{ import = "plugins" },
|
||||
},
|
||||
checker = { enabled = true },
|
||||
})
|
||||
require("everforest").load()
|
||||
require("plug_init.ft_autocmds")
|
||||
require("plug_init.godot_editor")
|
||||
require("plug_init.mini_init")
|
||||
|
||||
--require("plug_init.lsp_init")
|
||||
--require("plug_init.which_key_init")
|
||||
-- require("plug_init.wilder_init")
|
||||
|
||||
--require("plug_init.color-picker_init")
|
||||
|
||||
|
||||
24
.config/nvim/lua/plug_init/lazy.lua
Normal file
24
.config/nvim/lua/plug_init/lazy.lua
Normal file
@@ -0,0 +1,24 @@
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||
if vim.v.shell_error ~= 0 then
|
||||
vim.api.nvim_echo({
|
||||
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
|
||||
{ out, "WarningMsg" },
|
||||
{ "\nPress any key to exit..." },
|
||||
}, true, {})
|
||||
vim.fn.getchar()
|
||||
os.exit(1)
|
||||
end
|
||||
end
|
||||
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)
|
||||
--
|
||||
-- already set in "plug_init.vim_init"
|
||||
-- vim.g.mapleader = " "
|
||||
-- vim.g.maplocalleader = "\\"
|
||||
@@ -1,12 +0,0 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
@@ -9,6 +9,7 @@ require("mini.comment").setup() -- block comments etc
|
||||
-- sugar ↓↓↓↓↓↓
|
||||
require("mini.indentscope").setup() -- show indent scope
|
||||
require("mini.cursorword").setup() -- highlight identical words
|
||||
require("mini.indentscope").gen_animation.none()
|
||||
|
||||
-- complicated ↓↓↓↓↓↓
|
||||
require("mini.operators").setup()
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
vim.g.neovide_refresh_rate = 60
|
||||
vim.g.neovide_refresh_rate_idle = 5
|
||||
vim.g.neovide_no_idle = false
|
||||
vim.g.neovide_cursor_trail_size = 0.5
|
||||
vim.g.neovide_cursor_animation_length = 0.05
|
||||
vim.g.neovide_cursor_trail_size = 0.05
|
||||
vim.g.neovide_cursor_animation_length = 0.01
|
||||
vim.g.neovide_cursor_unfocused_outline_width = 0.1
|
||||
vim.g.neovide_cursor_vfx_mode = "railgun" -- pixiedust, railgun, ripple, sonicboom, torpedo, wireframe
|
||||
vim.g.neovide_cursor_vfx_particle_speed = 40.0
|
||||
vim.g.neovide_cursor_vfx_particle_phase = 1.5 -- mass of particles, only railgun
|
||||
vim.g.neovide_cursor_vfx_particle_speed = 100.0
|
||||
vim.g.neovide_cursor_vfx_particle_phase = 1.0 -- mass of particles, only railgun
|
||||
vim.g.neovide_cursor_vfx_particle_curl = 1.0 -- rotation of particles, only railgun
|
||||
vim.g.neovide_cursor_vfx_particle_lifetime = 1.0
|
||||
vim.g.neovide_cursor_vfx_particle_density = 10
|
||||
vim.g.neovide_cursor_vfx_particle_density = 7
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
vim.o.compatible = false
|
||||
vim.o.showmatch = true
|
||||
vim.o.hlsearch = true
|
||||
vim.o.ignorecase = true
|
||||
vim.o.smartcase = true
|
||||
vim.o.incsearch = false
|
||||
vim.o.tabstop = 4
|
||||
@@ -38,6 +39,7 @@ vim.g.netrw_winsize = 20
|
||||
-- is used for the preview window.
|
||||
|
||||
vim.g.mapleader = " "
|
||||
-- vim.g.maplocalleader = "\\"
|
||||
|
||||
-- move highlighted lines up and down, automatic indentation
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
|
||||
@@ -1,4 +1,17 @@
|
||||
local wilder = require("wilder")
|
||||
local gradient = {
|
||||
"#fa9aea",
|
||||
"#fc4c7c",
|
||||
"#fc8595",
|
||||
"#f59565",
|
||||
"#ebbb6b",
|
||||
"#e0e050",
|
||||
"#c9f9b9",
|
||||
"#86f6b6",
|
||||
"#57f7d7",
|
||||
"#75e5f5",
|
||||
"#4686e6",
|
||||
}
|
||||
|
||||
wilder.set_option(
|
||||
"renderer",
|
||||
|
||||
Reference in New Issue
Block a user