[nvim] Sets up LazyVim and Nerd font.

This commit is contained in:
2025-02-07 20:59:56 -08:00
parent bbaa20a515
commit 30ee2b7c7e
16 changed files with 294 additions and 114 deletions

View File

@@ -1,37 +1,2 @@
-- Leader must be set before lazy is setup.
vim.g.mapleader = ","
vim.cmd [[
colorscheme decay-dark
set autoindent
set expandtab
set smartindent
set shiftwidth=2
set tabstop=2
set softtabstop=2
filetype on
]]
-- Make sure sesssion options includes `localoptions` so that auto-sessions will start properly
vim.o.sessionoptions="blank,buffers,curdir,folds,help,tabpages,winsize,winpos,terminal,localoptions"
local telescope = require('telescope.builtin')
vim.keymap.set("n", "<C-e>", "<cmd>RnvimrToggle<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<C-n>", "<cmd>TabNext<CR>", { noremap = true, silent = true })
vim.keymap.set("n", "<C-p>", telescope.find_files, { desc = "Telescope find files" })
vim.keymap.set("n", "<C-t>", telescope.buffers, { desc = "Telescope buffers" })
vim.filetype.add {
extension = {
rasi = 'rasi',
},
pattern = {
-- Some common config files and their types
['.*/waybar/config'] = 'jsonc',
['.*/mako/config'] = 'dosini',
['.*/kitty/*.conf'] = 'bash',
['.*/hypr/.*%.conf'] = 'hyprlang',
},
}
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")