change neovim config structure

remove dial.nvim
add grubbox.nvim
This commit is contained in:
Pim Kunis 2023-01-20 16:58:46 +01:00
parent e1609c825f
commit 22972a7f0a
4 changed files with 27 additions and 25 deletions

View file

@ -1,15 +1 @@
return require('packer').startup(function(use) require('plugins')
use 'wbthomason/packer.nvim'
use {
'monaqa/dial.nvim',
config = function ()
vim.api.nvim_set_keymap("n", "<C-a>", require("dial.map").inc_normal(), {noremap = true})
vim.api.nvim_set_keymap("n", "<C-x>", require("dial.map").dec_normal(), {noremap = true})
vim.api.nvim_set_keymap("v", "<C-a>", require("dial.map").inc_visual(), {noremap = true})
vim.api.nvim_set_keymap("v", "<C-x>", require("dial.map").dec_visual(), {noremap = true})
vim.api.nvim_set_keymap("v", "g<C-a>", require("dial.map").inc_gvisual(), {noremap = true})
vim.api.nvim_set_keymap("v", "g<C-x>", require("dial.map").dec_gvisual(), {noremap = true})
end
}
end)

View file

@ -0,0 +1,7 @@
return require('packer').startup(function()
--- Packer can manage itself
use 'wbthomason/packer.nvim'
-- Colorscheme
use 'gruvbox-community/gruvbox'
end)

View file

@ -0,0 +1 @@
vim.cmd[[ colorscheme gruvbox ]]

View file

@ -18,17 +18,25 @@
become: true become: true
apt: apt:
name: neovim name: neovim
- name: Create pack directory
file:
path: ~/.config/nvim/pack/packer/start
state: directory
recurse: true
- name: Clone packer repository
git:
repo: https://github.com/wbthomason/packer.nvim
dest: ~/.config/nvim/pack/packer/start/packer.nvim
depth: 1
- name: Copy init.lua - name: Copy init.lua
copy: copy:
src: "{{ role_path }}/files/init.lua" src: "{{ role_path }}/files/init.lua"
dest: ~/.config/nvim/init.lua dest: ~/.config/nvim/init.lua
- name: Create plugin directory
file:
path: ~/.config/nvim/plugin
state: directory
recurse: true
- name: Copy plugin configuration files
copy:
src: "{{ role_path }}/files/plugin/"
dest: ~/.config/nvim/plugin
- name: Create lua directory
file:
path: ~/.config/nvim/lua
state: directory
recurse: true
- name: Copy lua files
copy:
src: "{{ role_path }}/files/lua/"
dest: ~/.config/nvim/lua