migrate over neovim config
This commit is contained in:
parent
92c57d8825
commit
f581832953
18 changed files with 535 additions and 102 deletions
3
dotfiles/nvim/lua/config/autocmds.lua
Normal file
3
dotfiles/nvim/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
|
3
dotfiles/nvim/lua/config/keymaps.lua
Normal file
3
dotfiles/nvim/lua/config/keymaps.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
-- 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
|
46
dotfiles/nvim/lua/config/lazy.lua
Normal file
46
dotfiles/nvim/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)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
{ import = "lazyvim.plugins.extras.editor.aerial" },
|
||||
{ import = "lazyvim.plugins.extras.editor.leap" },
|
||||
{ import = "lazyvim.plugins.extras.lang.typescript" },
|
||||
{ import = "lazyvim.plugins.extras.lang.svelte" },
|
||||
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||
{ import = "lazyvim.plugins.extras.lang.haskell" },
|
||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||
{ import = "lazyvim.plugins.extras.util.chezmoi" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
lazy = false,
|
||||
version = false, -- always use the latest git commit
|
||||
},
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
22
dotfiles/nvim/lua/config/options.lua
Normal file
22
dotfiles/nvim/lua/config/options.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
-- 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
|
||||
|
||||
-- Disable relative line numbers
|
||||
vim.o.relativenumber = false
|
||||
|
||||
-- Change the default font
|
||||
-- Some of my machines have HDR displayed, meaning they need a smaller font size
|
||||
if vim.fn.hostname() == "enoko" then
|
||||
vim.o.guifont = "JetBrainsMono NF:h12"
|
||||
else
|
||||
vim.o.guifont = "JetBrainsMono NF:h14"
|
||||
end
|
||||
|
||||
if vim.g.neovide then
|
||||
-- Reduce neovide scroll animation length
|
||||
vim.g.neovide_scroll_animation_length = 0.1
|
||||
end
|
||||
|
||||
-- Prepend mise shims to path
|
||||
vim.env.PATH = vim.env.HOME .. ".local/share/mise/shims:" .. vim.env.PATH
|
Loading…
Add table
Add a link
Reference in a new issue