Initial lazy-nvim migration

This commit is contained in:
pfych 2025-02-21 09:28:37 +11:00
parent b1a1471324
commit b02e4dda6c
14 changed files with 108 additions and 584 deletions

View file

@ -1,30 +0,0 @@
vim.cmd("autocmd!")
vim.scriptencoding = 'utf-8'
vim.opt.encoding = 'utf-8'
vim.opt.fileencoding = 'utf-8'
vim.wo.relativenumber = true
vim.wo.number = true
vim.opt.title = true
vim.opt.autoindent = true
vim.opt.smartindent = true
vim.opt.smarttab = true
vim.opt.expandtab = true
vim.opt.breakindent = true
vim.opt.shiftwidth = 2
vim.opt.tabstop = 2
vim.opt.mouse = "a"
vim.opt.undofile = true
vim.opt.undodir = vim.fn.expand('~/.vim/undodir')
-- UXN Assembly on save
vim.cmd("command Uxnasm !uxnasm % %<.rom")
vim.cmd("autocmd BufWritePost *.tal :Uxnasm")
-- Line wrap config
vim.opt.wrap = true
vim.opt.linebreak = true
vim.opt.breakindent = true
vim.opt.breakindentopt = "shift:2,min:40,sbr"

View file

@ -1,33 +0,0 @@
require("catppuccin").setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
transparent_background = false,
no_italic = false, -- Force no italic
no_bold = false, -- Force no bold
styles = {
comments = { "italic" },
conditionals = {},
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
},
color_overrides = {
},
integrations = {
cmp = true,
},
})
-- setup must be called before loading
vim.cmd('colorscheme catppuccin')
vim.api.nvim_set_hl(0, "Normal", { guibg = NONE, ctermbg = NONE })

View file

@ -1,7 +0,0 @@
-- CodeActionsMenu with ?
vim.api.nvim_set_keymap("n", "?", ":CodeActionMenu<CR>", { silent = true, noremap = true })
vim.api.nvim_set_keymap("n", ">", ":lua vim.diagnostic.goto_next()<CR>", { silent = true, noremap = true })
vim.api.nvim_set_keymap("n", "<", ":lua vim.diagnostic.goto_prev()<CR>", { silent = true, noremap = true })
vim.opt.splitright = true
vim.api.nvim_set_keymap("n", "<space>f", ":NERDTreeToggle<CR>", { noremap = true })

View file

@ -1,31 +0,0 @@
local status, packer = pcall(require, "packer")
if (not status) then
print("Packer is not installed")
return
end
vim.cmd [[packadd packer.nvim]]
packer.startup(function(use)
use 'wbthomason/packer.nvim'
use 'hrsh7th/cmp-buffer' -- nvim-cmp source for buffer words
use 'hrsh7th/cmp-nvim-lsp' -- nvim-cmp source for neovim's built-in LSP
use 'hrsh7th/nvim-cmp' -- Completion
use 'L3MON4D3/LuaSnip'
use 'neovim/nvim-lspconfig' -- LSP
use 'jose-elias-alvarez/null-ls.nvim'
use 'williamboman/mason.nvim' -- LSP Installer
use 'williamboman/mason-lspconfig.nvim'
use 'nvim-tree/nvim-web-devicons'
use { 'catppuccin/nvim', as = "catppuccin" }
use {
'nvim-telescope/telescope.nvim', tag = '0.1.8', -- For file searching :Telescope find_files
requires = { { 'nvim-lua/plenary.nvim' } }
}
use { 'prettier/vim-prettier', build = 'pnpm install' }
use { 'weilbith/nvim-code-action-menu', cmd = 'CodeActionMenu' }
use 'bellinitte/uxntal.vim'
use 'preservim/nerdtree' -- For file-browser :NERDTree
use 'elkowar/yuck.vim'
end)