1
0
Fork 0
Windows
Nigel Barink 2024-03-24 16:31:02 +01:00
commit 1f08b9e9c4
Signed by: Nigel
GPG Key ID: 6893A31C2D84A9D2
6 changed files with 139 additions and 0 deletions

10
after/plugin/colors.lua Normal file
View File

@ -0,0 +1,10 @@
function ColorMyPencils(color)
color = color or "tokyonight"
vim.cmd.colorscheme(color)
-- make transparent BG
vim.api.nvim_set_hl(0, "Normal", {bg = "none"})
vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none"})
end
-- ColorMyPencils()

1
init.lua Normal file
View File

@ -0,0 +1 @@
require("barink")

14
lazy-lock.json Normal file
View File

@ -0,0 +1,14 @@
{
"LuaSnip": { "branch": "master", "commit": "a7a4b4682c4b3e2ba82b82a4e6e5f5a0e79dec32" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"lazy.nvim": { "branch": "main", "commit": "af6afefbb46ab29a8a1db69536b04290a9403876" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "ac86dd9f874a6fc0c4e4785da34c6e9bf13a2192" },
"nvim-cmp": { "branch": "main", "commit": "97dc716fc914c46577a4f254035ebef1aa72558a" },
"nvim-lspconfig": { "branch": "master", "commit": "6e5c78ebc9936ca74add66bda22c566f951b6ee5" },
"nvim-treesitter": { "branch": "master", "commit": "5e4f959d5979730ddb2ee9ae60f5133081502b23" },
"plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" },
"telescope.nvim": { "branch": "master", "commit": "c2b8311dfacd08b3056b8f0249025d633a4e71a8" },
"tokyonight.nvim": { "branch": "main", "commit": "623c3cd60a8081b68edcaf544856c053249a659e" },
"undotree": { "branch": "master", "commit": "aa93a7e5890dbbebbc064cd22260721a6db1a196" },
"vim-fugitive": { "branch": "master", "commit": "193ba9b393931bad768c1d2eed688b0bcc240858" }
}

View File

@ -0,0 +1,9 @@
require("tokyonight").setup({
style="night",
light_style="day",
transparent=true,
terminal_colors=true,
dim_inactive=false,
lualine_bold=false
})

104
lua/barink/init.lua Normal file
View File

@ -0,0 +1,104 @@
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
require("lazy").setup({
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
opts = {},
config = function ()
require("tokyonight").setup({
style="night",
light_style="day",
transparent=true,
terminal_colors=true,
dim_inactive=false,
lualine_bold=false,
})
-- make transparent BG
-- vim.api.nvim_set_hl(0, "Normal", {bg = "none"})
-- vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none"})
vim.cmd[[colorscheme tokyonight]]
end
},
{
"nvim-telescope/telescope.nvim",
dependencies = { 'nvim-lua/plenary.nvim'}
},
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = {"c", "lua", "vim", "vimdoc", "bash"},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
},
{"mbbill/undotree"},
{ 'VonHeikemen/lsp-zero.nvim', branch='v3.x'},
{'neovim/nvim-lspconfig'},
{'hrsh7th/cmp-nvim-lsp'},
{'hrsh7th/nvim-cmp'},
{'L3MON4D3/LuaSnip'},
{'tpope/vim-fugitive'},
}, {})
local lsp_zero = require('lsp-zero')
lsp_zero.on_attach(function(client, bufnr)
-- see :help lsp-zero-keybindings
-- to learn the available actions
lsp_zero.default_keymaps({buffer = bufnr})
end)
-- Set basic vim options
vim.opt.guicursor = ""
vim.opt.nu = true
vim.opt.relativenumber = true
local tab_spacing = 4
vim.opt.tabstop = tab_spacing
vim.opt.softtabstop = tab_spacing
vim.opt.shiftwidth = tab_spacing
vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.wrap = false
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.opt.termguicolors = true
vim.opt.scrolloff = 8
-- Keymaps
vim.g.mapleader = " "
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
vim.keymap.set('n', '<leader>fs', builtin.git_files, {})
vim.keymap.set('n', '<leader><F8>', vim.cmd.UndotreeToggle)

1
lua/barink/lazy.lua Normal file
View File

@ -0,0 +1 @@