mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
Added snippets
This commit is contained in:
parent
89c521adb7
commit
76c9bf4dcc
2 changed files with 19 additions and 12 deletions
|
|
@ -8,12 +8,12 @@
|
||||||
|
|
||||||
|
|
||||||
-- Load packer.nvim
|
-- Load packer.nvim
|
||||||
local packer_install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
local packer_install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||||||
if vim.fn.empty(vim.fn.glob(packer_install_path)) > 0 then
|
if vim.fn.empty(vim.fn.glob(packer_install_path)) > 0 then
|
||||||
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. packer_install_path)
|
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. packer_install_path)
|
||||||
vim.cmd 'packadd packer.nvim'
|
vim.cmd 'packadd packer.nvim'
|
||||||
end
|
end
|
||||||
dofile(vim.fn.stdpath('config') .. '/plugins.lua')
|
dofile(vim.fn.stdpath('config') .. '/plugins.lua')
|
||||||
|
|
||||||
-- Keep Cursor
|
-- Keep Cursor
|
||||||
vim.o.guicursor = ''
|
vim.o.guicursor = ''
|
||||||
|
|
@ -25,8 +25,11 @@ dofile(vim.fn.stdpath('config') .. '/plugins.lua')
|
||||||
vim.opt.tabstop = 2
|
vim.opt.tabstop = 2
|
||||||
|
|
||||||
-- Treesitter Enable
|
-- Treesitter Enable
|
||||||
require'nvim-treesitter.configs'.setup {
|
require'nvim-treesitter.configs'.setup {
|
||||||
highlight = {
|
highlight = {
|
||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Init Snippets
|
||||||
|
vim.g.snipMate = { snippet_version = 1 }
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,11 @@ return packer.startup(function(use)
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Vim Snippets
|
||||||
|
use 'garbas/vim-snipmate'
|
||||||
|
use 'honza/vim-snippets'
|
||||||
|
|
||||||
-- Lualine
|
-- Lualine
|
||||||
use {'nvim-lualine/lualine.nvim',
|
use {'nvim-lualine/lualine.nvim',
|
||||||
after = 'github-nvim-theme',
|
after = 'github-nvim-theme',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue