commit 1f08b9e9c48e7174d3726bbf20b89d1a17eef040 Author: Nigel Barink Date: Sun Mar 24 16:31:02 2024 +0100 initial diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua new file mode 100644 index 0000000..170c447 --- /dev/null +++ b/after/plugin/colors.lua @@ -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() diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..dd8f7bb --- /dev/null +++ b/init.lua @@ -0,0 +1 @@ +require("barink") diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..550f84a --- /dev/null +++ b/lazy-lock.json @@ -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" } +} \ No newline at end of file diff --git a/lua/barink/colorscheme.lua b/lua/barink/colorscheme.lua new file mode 100644 index 0000000..2b7edb3 --- /dev/null +++ b/lua/barink/colorscheme.lua @@ -0,0 +1,9 @@ + +require("tokyonight").setup({ + style="night", + light_style="day", + transparent=true, + terminal_colors=true, + dim_inactive=false, + lualine_bold=false +}) diff --git a/lua/barink/init.lua b/lua/barink/init.lua new file mode 100644 index 0000000..10273aa --- /dev/null +++ b/lua/barink/init.lua @@ -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', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fs', builtin.git_files, {}) + +vim.keymap.set('n', '', vim.cmd.UndotreeToggle) + diff --git a/lua/barink/lazy.lua b/lua/barink/lazy.lua new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lua/barink/lazy.lua @@ -0,0 +1 @@ +