Update neovim setup
This commit is contained in:
parent
057797e25d
commit
0755c7e3d4
7 changed files with 25 additions and 4 deletions
|
|
@ -124,3 +124,11 @@
|
|||
src: 'templates/nvim/lua/tree-sitter.lua.j2',
|
||||
dest: '{{ xdg_config_dir }}/nvim/lua/tree-sitter.lua',
|
||||
}
|
||||
- {
|
||||
src: 'templates/nvim/lua/git-signs.lua.j2',
|
||||
dest: '{{ xdg_config_dir }}/nvim/lua/git-signs.lua',
|
||||
}
|
||||
- {
|
||||
src: 'templates/nvim/lua/lua-line.lua.j2',
|
||||
dest: '{{ xdg_config_dir }}/nvim/lua/lua-line.lua',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,3 +6,5 @@ require('nvim-cmp')
|
|||
require('keybindings')
|
||||
require('auto-commands')
|
||||
require('tree-sitter')
|
||||
require('lua-line')
|
||||
require('git-signs')
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
--colorscheme
|
||||
vim.cmd('colorscheme space_vim_theme')
|
||||
vim.cmd('colorscheme edge')
|
||||
|
||||
--enable this option here as the events are used in this buffer
|
||||
vim.cmd('syntax on')
|
||||
|
|
|
|||
7
templates/nvim/lua/git-signs.lua.j2
Normal file
7
templates/nvim/lua/git-signs.lua.j2
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
local gitsigns = require('gitsigns');
|
||||
|
||||
gitsigns.setup({
|
||||
numhl = true;
|
||||
})
|
||||
5
templates/nvim/lua/lua-line.lua.j2
Normal file
5
templates/nvim/lua/lua-line.lua.j2
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
-- {{ ansible_managed }} {{ ansible_date_time.time }} {{ ansible_date_time.date }}
|
||||
|
||||
local lualine = require('lualine');
|
||||
|
||||
lualine.setup({})
|
||||
|
|
@ -8,9 +8,6 @@ vim.o.syntax = 'on'
|
|||
-- display all matching files when we tab complete
|
||||
vim.o.wildmenu = true
|
||||
|
||||
-- replace vertical split pipe character with space
|
||||
vim.o.fillchars = 'vert:|,fold: '
|
||||
|
||||
-- Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
||||
-- delays and poor user experience.
|
||||
vim.o.updatetime = 300
|
||||
|
|
|
|||
2
vars.yml
2
vars.yml
|
|
@ -58,6 +58,8 @@ neovim_plugins:
|
|||
}
|
||||
- { url: 'https://github.com/L3MON4D3/LuaSnip', name: 'luasnip', version: 'v1.0.0' }
|
||||
- { url: 'https://github.com/lewis6991/gitsigns.nvim', name: 'gitsigns.nvim' }
|
||||
- { url: 'https://github.com/sainnhe/edge', name: 'edge' }
|
||||
- { url: 'https://github.com/nvim-lualine/lualine.nvim', name: 'lualine' }
|
||||
|
||||
language_servers:
|
||||
- ansible-language-server
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue