Skip to content

Instantly share code, notes, and snippets.

@wilyJ80
Created February 11, 2025 22:22
Show Gist options
  • Save wilyJ80/37b6252dabe16a5ee467fcc83b3cebe9 to your computer and use it in GitHub Desktop.
Save wilyJ80/37b6252dabe16a5ee467fcc83b3cebe9 to your computer and use it in GitHub Desktop.
server neovim config
vim.o.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.opt.number = true
-- [[ Install `lazy.nvim` plugin manager ]]
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
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
error('Error cloning lazy.nvim:\n' .. out)
end
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
{
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '‾' },
changedelete = { text = '~' },
},
},
},
{
'folke/which-key.nvim',
event = 'VimEnter',
},
})
-- TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment