From 1e1ec3ac53b08a495d4e967d309f000c3dc2369f Mon Sep 17 00:00:00 2001 From: Mathias Scheider Date: Fri, 20 Mar 2026 11:20:21 +0100 Subject: [PATCH] basic nvim config --- .gitignore | 1 + hypr/.config/hypr/hyprland.conf | 2 +- nvim/.config/nvim/init.lua | 61 +++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 nvim/.config/nvim/init.lua diff --git a/.gitignore b/.gitignore index b314087..d70302d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ hypr/.config/hypr/env.conf hypr/.config/hypr/env.sh hypr/.config/wpaperd/wallpapers/linked *~lock.*# +lazy-lock.json diff --git a/hypr/.config/hypr/hyprland.conf b/hypr/.config/hypr/hyprland.conf index c52bfa1..eb6c5f9 100755 --- a/hypr/.config/hypr/hyprland.conf +++ b/hypr/.config/hypr/hyprland.conf @@ -411,7 +411,7 @@ windowrule { windowrule { name = opacity-kitty-dolphin match:class = .*(kitty|dolphin).* - opacity = 0.85 0.55 + opacity = 0.90 0.80 } layerrule = blur on, ignore_alpha 0.30, match:namespace waybar diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua new file mode 100644 index 0000000..3f516cd --- /dev/null +++ b/nvim/.config/nvim/init.lua @@ -0,0 +1,61 @@ + +-- Basics +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.tabstop = 4 +vim.opt.shiftwidth = 4 +vim.opt.expandtab = true +vim.opt.smartindent = true +vim.g.mapleader = " " + + +-- Bootstrap lazy.nvim +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", + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + + +-- Load Plugins +local plugins = { + + -- catppuccin: color scheme + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + + -- telescope: fuzzy search + { "nvim-telescope/telescope.nvim", tag = '0.1.5', dependencies = { "nvim-lua/plenary.nvim" } }, + + -- treesitter: code parser + { "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" } + +} +local opts = {} +require("lazy").setup(plugins, opts) + + +-- telescope set up +local builtin = require("telescope.builtin") +vim.keymap.set('n', '', builtin.find_files, {}) +vim.keymap.set('n', 'f', builtin.live_grep, {}) + + +-- treesitter set up +local config = require("nvim-treesitter.config") +config.setup({ + ensure_installed = {"python", "bash", "lua"}, + highlight = { enable = true }, + indent = { enable = true } +}) + + +-- catppuccin set up +require("catppuccin").setup() +vim.cmd.colorscheme "catppuccin"