diff options
author | Elizabeth <me@liz.coffee> | 2025-06-02 13:11:10 -0700 |
---|---|---|
committer | Elizabeth <me@liz.coffee> | 2025-06-02 13:11:10 -0700 |
commit | d098e94ad102da9d018acca72ca5a5c554d25a01 (patch) | |
tree | d6d23ee63ad5a1aa4017a605d9e09e75de2c5f49 /dots/nvim | |
parent | ede675866355d34ac9fdc1b8e047576f574bdfa2 (diff) | |
download | dotfiles-d098e94ad102da9d018acca72ca5a5c554d25a01.tar.gz dotfiles-d098e94ad102da9d018acca72ca5a5c554d25a01.zip |
Update paths n stuff
Diffstat (limited to 'dots/nvim')
-rw-r--r-- | dots/nvim/.config/nvim/init.lua | 9 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/.gitkeep | 0 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/config/lazy.lua | 35 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/config/options.lua | 39 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/plugins/comment.lua | 6 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/plugins/lualine.lua | 34 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/plugins/telescope.lua | 25 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/plugins/theme.lua | 9 | ||||
-rw-r--r-- | dots/nvim/.config/nvim/lua/plugins/whichkey.lua | 6 |
9 files changed, 163 insertions, 0 deletions
diff --git a/dots/nvim/.config/nvim/init.lua b/dots/nvim/.config/nvim/init.lua new file mode 100644 index 0000000..ae56b98 --- /dev/null +++ b/dots/nvim/.config/nvim/init.lua @@ -0,0 +1,9 @@ +-- <leader> -- +vim.g.mapleader = " " +vim.g.maplocalleader = "\\" +-- </leader> -- + +-- <init.config> -- +require("config.lazy") +require("config.options") +-- </init.config> -- diff --git a/dots/nvim/.config/nvim/lua/.gitkeep b/dots/nvim/.config/nvim/lua/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/dots/nvim/.config/nvim/lua/.gitkeep diff --git a/dots/nvim/.config/nvim/lua/config/lazy.lua b/dots/nvim/.config/nvim/lua/config/lazy.lua new file mode 100644 index 0000000..f5ee74c --- /dev/null +++ b/dots/nvim/.config/nvim/lua/config/lazy.lua @@ -0,0 +1,35 @@ +-- Bootstrap lazy.nvim +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 + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +-- Make sure to setup `mapleader` and `maplocalleader` before +-- loading lazy.nvim so that mappings are correct. +-- This is also a good place to setup other settings (vim.opt) +vim.g.mapleader = " " +vim.g.maplocalleader = "\\" + +-- Setup lazy.nvim +require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + }, + -- Configure any other settings here. See the documentation for more details. + -- colorscheme that will be used when installing plugins. + install = { colorscheme = { "habamax" } }, + -- automatically check for plugin updates + checker = { enabled = true }, +}) diff --git a/dots/nvim/.config/nvim/lua/config/options.lua b/dots/nvim/.config/nvim/lua/config/options.lua new file mode 100644 index 0000000..01489f0 --- /dev/null +++ b/dots/nvim/.config/nvim/lua/config/options.lua @@ -0,0 +1,39 @@ +local options = { + cmdheight = 0, + + number = true, + relativenumber = true, + + clipboard = "unnamedplus", + + breakindent = true, + tabstop = 4, + softtabstop = 4, + shiftwidth = 4, + expandtab = true, + + undofile = true, + + hlsearch = false, + ignorecase = true, + smartcase = true, + + completeopt = "menuone,noselect", + + timeout = true, + timeoutlen = 500, + + foldcolumn = "0", + foldlevel = 99, + foldlevelstart = 99, + foldenable = true, + + spelllang = { "nb", "en" }, + spellcapcheck = "", +} + +vim.g.spellfile_URL = "https://ftp.nluug.nl/pub/vim/runtime/spell/" + +for k, v in pairs(options) do + vim.opt[k] = v +end diff --git a/dots/nvim/.config/nvim/lua/plugins/comment.lua b/dots/nvim/.config/nvim/lua/plugins/comment.lua new file mode 100644 index 0000000..fe9adbe --- /dev/null +++ b/dots/nvim/.config/nvim/lua/plugins/comment.lua @@ -0,0 +1,6 @@ +return { + "numToStr/Comment.nvim", + opts = {}, + lazy = false, +} + diff --git a/dots/nvim/.config/nvim/lua/plugins/lualine.lua b/dots/nvim/.config/nvim/lua/plugins/lualine.lua new file mode 100644 index 0000000..a5c341d --- /dev/null +++ b/dots/nvim/.config/nvim/lua/plugins/lualine.lua @@ -0,0 +1,34 @@ +return { + { + 'nvim-lualine/lualine.nvim', + event = 'VeryLazy', + opts = function() + return { + options = { + icons_enabled = true, + theme = 'gruvbox', + component_separators = { left = '', right = ''}, + section_separators = { left = '', right = ''}, + }, + sections = { + lualine_c = { + { 'filename', path = 1 }, + }, + lualine_y = { + { + require('tmux-status').tmux_windows, + cond = require('tmux-status').show, + padding = { left = 1, right = 1 }, + }, + } + }, + } + end, + }, + { + "christopher-francisco/tmux-status.nvim", +-- lazy = true, + opts = {}, + }, +} + diff --git a/dots/nvim/.config/nvim/lua/plugins/telescope.lua b/dots/nvim/.config/nvim/lua/plugins/telescope.lua new file mode 100644 index 0000000..47b0b36 --- /dev/null +++ b/dots/nvim/.config/nvim/lua/plugins/telescope.lua @@ -0,0 +1,25 @@ +return { + "nvim-telescope/telescope.nvim", + branch = "0.1.x", + dependencies = { + "nvim-lua/plenary.nvim", + { + "nvim-telescope/telescope-fzf-native.nvim", + build = "make", + cond = function() + return vim.fn.executable "make" == 1 + end, + }, + }, + config = function () + pcall(require("telescope").load_extension, "fzf") + end, + opt = { + pickers = { + colorscheme = { + enable_preview = true + } + } + }, +} + diff --git a/dots/nvim/.config/nvim/lua/plugins/theme.lua b/dots/nvim/.config/nvim/lua/plugins/theme.lua new file mode 100644 index 0000000..7f53fa8 --- /dev/null +++ b/dots/nvim/.config/nvim/lua/plugins/theme.lua @@ -0,0 +1,9 @@ +return { + "ellisonleao/gruvbox.nvim", + opts = { + transparent_mode = true, + }, + init = function() + vim.cmd("colorscheme gruvbox") + end +} diff --git a/dots/nvim/.config/nvim/lua/plugins/whichkey.lua b/dots/nvim/.config/nvim/lua/plugins/whichkey.lua new file mode 100644 index 0000000..1173e06 --- /dev/null +++ b/dots/nvim/.config/nvim/lua/plugins/whichkey.lua @@ -0,0 +1,6 @@ +return { + "folke/which-key.nvim", + event = "VeryLazy", + opts = {}, +} + |