aboutsummaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-04 00:48:58 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2024-04-04 00:48:58 +0200
commitc511b5f4c99c152b56985cda8eef2d2bb42df412 (patch)
treeafdfe3ce61fe3154b0fe9d44fbfa0073dabf8bea /nvim
parentd8ce34981ecc54f444cae2faf7757f25b28a93f2 (diff)
downloaddotfiles-c511b5f4c99c152b56985cda8eef2d2bb42df412.tar.gz
neovim with lazy.nvim
Diffstat (limited to 'nvim')
-rw-r--r--nvim/init.lua17
-rw-r--r--nvim/init.vim3
-rw-r--r--nvim/lazy-lock.json5
-rw-r--r--nvim/lua/plugins/hardline.lua9
-rw-r--r--nvim/lua/plugins/init.lua3
-rw-r--r--nvim/vimscript/main.vim5
6 files changed, 39 insertions, 3 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
new file mode 100644
index 0000000..f5be9f4
--- /dev/null
+++ b/nvim/init.lua
@@ -0,0 +1,17 @@
+-- load vim config
+vim.cmd("source " .. vim.fn.stdpath("config") .. "/vimscript/*")
+
+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("plugins")
diff --git a/nvim/init.vim b/nvim/init.vim
deleted file mode 100644
index fc8de71..0000000
--- a/nvim/init.vim
+++ /dev/null
@@ -1,3 +0,0 @@
-set runtimepath^=~/.vim runtimepath+=~/.vim/after
-let &packpath=&runtimepath
-source ~/.vim/vimrc
diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json
new file mode 100644
index 0000000..e13e19e
--- /dev/null
+++ b/nvim/lazy-lock.json
@@ -0,0 +1,5 @@
+{
+ "lazy.nvim": { "branch": "main", "commit": "83493db50a434a4c5c648faf41e2ead80f96e478" },
+ "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" },
+ "nvim-hardline": { "branch": "main", "commit": "9b85ebfba065091715676fb440c16a37c465b9a5" }
+} \ No newline at end of file
diff --git a/nvim/lua/plugins/hardline.lua b/nvim/lua/plugins/hardline.lua
new file mode 100644
index 0000000..d756f79
--- /dev/null
+++ b/nvim/lua/plugins/hardline.lua
@@ -0,0 +1,9 @@
+return {
+ {
+ "ojroques/nvim-hardline",
+ config = function()
+ require("hardline").setup {
+ }
+ end,
+ }
+}
diff --git a/nvim/lua/plugins/init.lua b/nvim/lua/plugins/init.lua
new file mode 100644
index 0000000..29d8e53
--- /dev/null
+++ b/nvim/lua/plugins/init.lua
@@ -0,0 +1,3 @@
+return {
+ "hrsh7th/nvim-cmp",
+}
diff --git a/nvim/vimscript/main.vim b/nvim/vimscript/main.vim
new file mode 100644
index 0000000..0d81142
--- /dev/null
+++ b/nvim/vimscript/main.vim
@@ -0,0 +1,5 @@
+set nu rnu
+highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
+
+nmap <silent> gc :tabclose<CR>
+nmap <silent> gn :tabnew<CR>:e .<CR>