mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Initial
This commit is contained in:
commit
a79fc67d37
647 changed files with 123931 additions and 0 deletions
26
homeConfig/dotfiles/nvim/init.lua
Normal file
26
homeConfig/dotfiles/nvim/init.lua
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
-- Line Numbering
|
||||
vim.o.relativenumber = true
|
||||
vim.o.number = true
|
||||
vim.cmd('highlight LineNr ctermfg=DarkGray')
|
||||
|
||||
-- Enable clipboard
|
||||
vim.o.clipboard = "unnamedplus"
|
||||
|
||||
|
||||
-- Load packer.nvim
|
||||
local packer_install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||||
if vim.fn.empty(vim.fn.glob(packer_install_path)) > 0 then
|
||||
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. packer_install_path)
|
||||
vim.cmd 'packadd packer.nvim'
|
||||
end
|
||||
dofile(vim.fn.stdpath('config') .. '/plugins.lua')
|
||||
|
||||
-- Keep Cursor
|
||||
vim.o.guicursor = ''
|
||||
|
||||
-- Indentation
|
||||
vim.opt.shiftwidth = 2
|
||||
vim.opt.softtabstop = 2
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.tabstop = 2
|
||||
|
||||
65
homeConfig/dotfiles/nvim/plugins.lua
Normal file
65
homeConfig/dotfiles/nvim/plugins.lua
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
-- Load packer.nvim
|
||||
local packer = require('packer')
|
||||
|
||||
-- Start defining plugins
|
||||
return packer.startup(function(use)
|
||||
-- Install packer.nvim
|
||||
use 'wbthomason/packer.nvim'
|
||||
|
||||
|
||||
-- Install indent-blankline.nvimuse
|
||||
use {"lukas-reineke/indent-blankline.nvim",
|
||||
config = function()
|
||||
require("indent_blankline").setup {
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
||||
-- Neo-Tree
|
||||
use {
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
branch = "v2.x",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
"MunifTanjim/nui.nvim",
|
||||
}
|
||||
}
|
||||
|
||||
-- Lualine (bottom line)
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
||||
config = function()
|
||||
require('lualine').setup {}
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
-- Git Integration
|
||||
use { 'TimUntersberger/neogit',
|
||||
requires = 'nvim-lua/plenary.nvim'
|
||||
}
|
||||
|
||||
-- Autobracket
|
||||
use {'windwp/nvim-autopairs',
|
||||
config = function()
|
||||
require('nvim-autopairs').setup()
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
-- Color Preview
|
||||
use { 'ap/vim-css-color',
|
||||
ft = {
|
||||
'css',
|
||||
'sass',
|
||||
'scss',
|
||||
'rasi',
|
||||
'markdown'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
end)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue