aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua/simenandre
diff options
context:
space:
mode:
authorSimen A. W. Olsen <so@bjerk.io>2023-12-11 13:50:30 +0100
committerSimen A. W. Olsen <so@bjerk.io>2023-12-11 13:50:30 +0100
commit4a2edf5a0f86ce3be0f8124cdb4dcad788f4784e (patch)
tree703b09f61e7680be276c66fd651f247affa9f1c1 /.config/nvim/lua/simenandre
parentfb4b39e669c8a4aadd6acfb154d42788f6bff881 (diff)
downloaddotfiles-4a2edf5a0f86ce3be0f8124cdb4dcad788f4784e.tar.gz
dotfiles-4a2edf5a0f86ce3be0f8124cdb4dcad788f4784e.zip
neovim and stuff
Diffstat (limited to '.config/nvim/lua/simenandre')
-rw-r--r--.config/nvim/lua/simenandre/init.lua39
-rw-r--r--.config/nvim/lua/simenandre/lazy.lua12
-rw-r--r--.config/nvim/lua/simenandre/set.lua32
3 files changed, 83 insertions, 0 deletions
diff --git a/.config/nvim/lua/simenandre/init.lua b/.config/nvim/lua/simenandre/init.lua
new file mode 100644
index 0000000..2382eee
--- /dev/null
+++ b/.config/nvim/lua/simenandre/init.lua
@@ -0,0 +1,39 @@
+require("simenandre.lazy")
+require("simenandre.set")
+
+vim.g.mapleader = " " -- Make sure to set `mapleader` before lazy so your mappings are correct
+
+require("lazy").setup({
+ "ThePrimeagen/vim-be-good",
+ {
+ 'rose-pine/neovim',
+ name = 'rose-pine',
+ config = function()
+ vim.cmd('colorscheme rose-pine')
+ end
+ },
+ {
+ 'VonHeikemen/lsp-zero.nvim',
+ branch = 'v2.x',
+ dependencies = {
+ -- LSP Support
+ {'neovim/nvim-lspconfig'}, -- Required
+ {'williamboman/mason.nvim'}, -- Optional
+ {'williamboman/mason-lspconfig.nvim'}, -- Optional
+
+ -- Autocompletion
+ {'hrsh7th/nvim-cmp'}, -- Required
+ {'hrsh7th/cmp-nvim-lsp'}, -- Required
+ {'L3MON4D3/LuaSnip'}, -- Required
+ }
+ },
+ {
+ "nvim-treesitter/nvim-treesitter",
+ run = function()
+ local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
+ ts_update()
+ end
+ },
+ "github/copilot.vim"
+})
+
diff --git a/.config/nvim/lua/simenandre/lazy.lua b/.config/nvim/lua/simenandre/lazy.lua
new file mode 100644
index 0000000..d14f916
--- /dev/null
+++ b/.config/nvim/lua/simenandre/lazy.lua
@@ -0,0 +1,12 @@
+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)
diff --git a/.config/nvim/lua/simenandre/set.lua b/.config/nvim/lua/simenandre/set.lua
new file mode 100644
index 0000000..039e58c
--- /dev/null
+++ b/.config/nvim/lua/simenandre/set.lua
@@ -0,0 +1,32 @@
+vim.opt.guicursor = ""
+
+vim.opt.nu = true
+vim.opt.relativenumber = true
+
+vim.opt.tabstop = 2
+vim.opt.softtabstop = 4
+vim.opt.shiftwidth = 2
+vim.opt.expandtab = true
+
+vim.opt.smartindent = true
+
+vim.opt.wrap = false
+
+vim.opt.swapfile = false
+vim.opt.backup = false
+vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
+vim.opt.undofile = true
+
+vim.opt.hlsearch = false
+vim.opt.incsearch = true
+
+vim.opt.termguicolors = true
+
+vim.opt.scrolloff = 8
+vim.opt.signcolumn = "yes"
+vim.opt.isfname:append("@-@")
+
+vim.opt.updatetime = 50
+
+vim.opt.colorcolumn = "80"
+