summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2022-05-28 18:48:20 +0200
committeryuzu-eva <stevenhu@web.de>2022-05-28 18:48:20 +0200
commit6979654c01fd7d3e68408b15aaed478a71553629 (patch)
tree328e9cfed78fe9d3ec470f6b0284465927689489
parent25d7bd9684da7785290ecdb8760fb9e16a950adb (diff)
added luasnip
-rw-r--r--.config/nvim/lua/user/plugins.lua8
-rw-r--r--.config/nvim/lua/user/plugins/cmp.lua19
-rw-r--r--.config/nvim/lua/user/plugins/lspconfig.lua12
-rw-r--r--.config/nvim/lua/user/plugins/luasnip.lua9
-rw-r--r--.config/nvim/lua/user/plugins/nvim-tree.lua14
-rw-r--r--.config/nvim/plugin/packer_compiled.lua494
-rw-r--r--.config/nvim/snippets/html.lua14
7 files changed, 314 insertions, 256 deletions
diff --git a/.config/nvim/lua/user/plugins.lua b/.config/nvim/lua/user/plugins.lua
index 657aedf..7f81291 100644
--- a/.config/nvim/lua/user/plugins.lua
+++ b/.config/nvim/lua/user/plugins.lua
@@ -1,6 +1,5 @@
require('packer').startup(function()
use { 'wbthomason/packer.nvim' } -- Let packer manage itself
-
use { 'tpope/vim-commentary' }
use { 'tpope/vim-surround' }
use { 'tpope/vim-eunuch' }
@@ -57,6 +56,7 @@ require('packer').startup(function()
'hrsh7th/cmp-buffer',
'jessarcher/cmp-path',
'hrsh7th/cmp-nvim-lua',
+ 'L3MON4D3/LuaSnip',
'onsails/lspkind-nvim',
'hrsh7th/cmp-nvim-lsp-signature-help',
},
@@ -82,4 +82,10 @@ require('packer').startup(function()
require('user.plugins.lualine')
end
}
+ use {
+ 'L3MON4D3/LuaSnip',
+ config = function()
+ require('user.plugins.luasnip')
+ end
+ }
end)
diff --git a/.config/nvim/lua/user/plugins/cmp.lua b/.config/nvim/lua/user/plugins/cmp.lua
index 4bfe38e..81cd2ee 100644
--- a/.config/nvim/lua/user/plugins/cmp.lua
+++ b/.config/nvim/lua/user/plugins/cmp.lua
@@ -3,13 +3,14 @@ local has_words_before = function()
return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match '%s' == nil
end
+local luasnip = require 'luasnip'
local cmp = require 'cmp'
local lspkind = require 'lspkind'
-- Set completeopt to have a better completion experience
vim.o.completeopt = 'menuone,longest,preview'
-cmp.setup {
+cmp.setup({
experimental = {
ghost_text = true,
},
@@ -23,6 +24,11 @@ cmp.setup {
},
},
},
+ snippet = {
+ expand = function(args)
+ require('luasnip').lsp_expand(args.body)
+ end,
+ },
mapping = {
['<C-p>'] = cmp.mapping.select_prev_item(),
['<C-n>'] = cmp.mapping.select_next_item(),
@@ -35,7 +41,9 @@ cmp.setup {
select = false,
},
['<Tab>'] = cmp.mapping(function(fallback)
- if cmp.visible() then
+ if luasnip.expand_or_jumpable() then
+ luasnip.expand_or_jump()
+ elseif cmp.visible() then
cmp.select_next_item()
elseif has_words_before() then
cmp.complete()
@@ -44,7 +52,9 @@ cmp.setup {
end
end, { 'i', 's' }),
['<S-Tab>'] = cmp.mapping(function(fallback)
- if cmp.visible() then
+ if luasnip.jumpable(-1) then
+ luasnip.jump(-1)
+ elseif cmp.visible() then
cmp.select_prev_item()
else
fallback()
@@ -56,7 +66,8 @@ cmp.setup {
{ name = 'nvim_lsp' },
{ name = 'nvim_lsp_signature_help' },
{ name = 'nvim_lua' },
+ { name = 'luasnip' },
{ name = 'path' },
{ name = 'buffer' },
},
-}
+})
diff --git a/.config/nvim/lua/user/plugins/lspconfig.lua b/.config/nvim/lua/user/plugins/lspconfig.lua
index 1467d66..b5dfc86 100644
--- a/.config/nvim/lua/user/plugins/lspconfig.lua
+++ b/.config/nvim/lua/user/plugins/lspconfig.lua
@@ -69,6 +69,14 @@ require 'lspconfig'.tsserver.setup {
}
}
+require 'lspconfig'.html.setup {
+ on_attach = on_attach,
+ capabilities = capabilities,
+ flags = {
+ debounce_text_changes = 150,
+ }
+}
+
local runtime_path = vim.split(package.path, ';')
table.insert(runtime_path, "lua/?.lua")
table.insert(runtime_path, "lua/?/init.lua")
@@ -88,8 +96,8 @@ require 'lspconfig'.sumneko_lua.setup {
path = runtime_path,
},
diagnostics = {
- -- Recognize the `vim` und `use` global
- globals = { 'vim', 'use' },
+ -- Recognize globals
+ globals = { 'vim', 'use', 'parse' },
},
workspace = {
-- Make server aware of Neovim runtime files
diff --git a/.config/nvim/lua/user/plugins/luasnip.lua b/.config/nvim/lua/user/plugins/luasnip.lua
new file mode 100644
index 0000000..2e7462a
--- /dev/null
+++ b/.config/nvim/lua/user/plugins/luasnip.lua
@@ -0,0 +1,9 @@
+local ls = require "luasnip"
+require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/snippets" })
+
+ls.config.set_config {
+ history = true,
+ updateevents = 'TextChanged,TextChangedI',
+ enable_autosnippets = true,
+}
+
diff --git a/.config/nvim/lua/user/plugins/nvim-tree.lua b/.config/nvim/lua/user/plugins/nvim-tree.lua
index a4173e7..3c425c5 100644
--- a/.config/nvim/lua/user/plugins/nvim-tree.lua
+++ b/.config/nvim/lua/user/plugins/nvim-tree.lua
@@ -1,11 +1,11 @@
--- vim.g.nvim_tree_git_hl = 1
-vim.g.nvim_tree_highlight_opened_files = 1
-vim.g.nvim_tree_group_empty = 1
-
require('nvim-tree').setup {
- git = {
- ignore = false,
- },
+ renderer = {
+ highlight_opened_files = "all",
+ group_empty = true,
+ },
+ git = {
+ ignore = false,
+ },
}
vim.cmd [[highlight NvimTreeIndentMarker guifg=#30323E]]
diff --git a/.config/nvim/plugin/packer_compiled.lua b/.config/nvim/plugin/packer_compiled.lua
index 2e47096..793ecff 100644
--- a/.config/nvim/plugin/packer_compiled.lua
+++ b/.config/nvim/plugin/packer_compiled.lua
@@ -1,262 +1,272 @@
-- Automatically generated packer.nvim plugin loader code
-if vim.api.nvim_call_function('has', { 'nvim-0.5' }) ~= 1 then
- vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
- return
+if vim.api.nvim_call_function('has', {'nvim-0.5'}) ~= 1 then
+ vim.api.nvim_command('echohl WarningMsg | echom "Invalid Neovim version for packer.nvim! | echohl None"')
+ return
end
vim.api.nvim_command('packadd packer.nvim')
local no_errors, error_msg = pcall(function()
- local time
- local profile_info
- local should_profile = false
- if should_profile then
- local hrtime = vim.loop.hrtime
- profile_info = {}
- time = function(chunk, start)
- if start then
- profile_info[chunk] = hrtime()
- else
- profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
- end
- end
- else
- time = function(chunk, start) end
+ local time
+ local profile_info
+ local should_profile = false
+ if should_profile then
+ local hrtime = vim.loop.hrtime
+ profile_info = {}
+ time = function(chunk, start)
+ if start then
+ profile_info[chunk] = hrtime()
+ else
+ profile_info[chunk] = (hrtime() - profile_info[chunk]) / 1e6
+ end
end
-
- local function save_profiles(threshold)
- local sorted_times = {}
- for chunk_name, time_taken in pairs(profile_info) do
- sorted_times[#sorted_times + 1] = { chunk_name, time_taken }
- end
- table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
- local results = {}
- for i, elem in ipairs(sorted_times) do
- if not threshold or threshold and elem[2] > threshold then
- results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
- end
- end
-
- _G._packer = _G._packer or {}
- _G._packer.profile_output = results
+ else
+ time = function(chunk, start) end
+ end
+
+local function save_profiles(threshold)
+ local sorted_times = {}
+ for chunk_name, time_taken in pairs(profile_info) do
+ sorted_times[#sorted_times + 1] = {chunk_name, time_taken}
+ end
+ table.sort(sorted_times, function(a, b) return a[2] > b[2] end)
+ local results = {}
+ for i, elem in ipairs(sorted_times) do
+ if not threshold or threshold and elem[2] > threshold then
+ results[i] = elem[1] .. ' took ' .. elem[2] .. 'ms'
end
+ end
- time([[Luarocks path setup]], true)
- local package_path_str = "/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
- local install_cpath_pattern = "/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
- if not string.find(package.path, package_path_str, 1, true) then
- package.path = package.path .. ';' .. package_path_str
- end
+ _G._packer = _G._packer or {}
+ _G._packer.profile_output = results
+end
- if not string.find(package.cpath, install_cpath_pattern, 1, true) then
- package.cpath = package.cpath .. ';' .. install_cpath_pattern
- end
+time([[Luarocks path setup]], true)
+local package_path_str = "/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?.lua;/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/share/lua/5.1/?/init.lua;/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?.lua;/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/luarocks/rocks-5.1/?/init.lua"
+local install_cpath_pattern = "/home/cafebabe/.cache/nvim/packer_hererocks/2.1.0-beta3/lib/lua/5.1/?.so"
+if not string.find(package.path, package_path_str, 1, true) then
+ package.path = package.path .. ';' .. package_path_str
+end
- time([[Luarocks path setup]], false)
- time([[try_loadstring definition]], true)
- local function try_loadstring(s, component, name)
- local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
- if not success then
- vim.schedule(function()
- vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
- end)
- end
- return result
- end
+if not string.find(package.cpath, install_cpath_pattern, 1, true) then
+ package.cpath = package.cpath .. ';' .. install_cpath_pattern
+end
+
+time([[Luarocks path setup]], false)
+time([[try_loadstring definition]], true)
+local function try_loadstring(s, component, name)
+ local success, result = pcall(loadstring(s), name, _G.packer_plugins[name])
+ if not success then
+ vim.schedule(function()
+ vim.api.nvim_notify('packer.nvim: Error running ' .. component .. ' for ' .. name .. ': ' .. result, vim.log.levels.ERROR, {})
+ end)
+ end
+ return result
+end
- time([[try_loadstring definition]], false)
- time([[Defining packer_plugins]], true)
- _G.packer_plugins = {
- ["cmp-buffer"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-buffer",
- url = "https://github.com/hrsh7th/cmp-buffer"
- },
- ["cmp-nvim-lsp"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
- url = "https://github.com/hrsh7th/cmp-nvim-lsp"
- },
- ["cmp-nvim-lsp-signature-help"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
- url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"
- },
- ["cmp-nvim-lua"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
- url = "https://github.com/hrsh7th/cmp-nvim-lua"
- },
- ["cmp-path"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-path",
- url = "https://github.com/jessarcher/cmp-path"
- },
- dracula = {
- config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.dracula\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/dracula",
- url = "https://github.com/dracula/vim"
- },
- ["lsp-colors.nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim",
- url = "https://github.com/folke/lsp-colors.nvim"
- },
- ["lspkind-nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
- url = "https://github.com/onsails/lspkind-nvim"
- },
- ["lualine.nvim"] = {
- config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.lualine\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/lualine.nvim",
- url = "https://github.com/nvim-lualine/lualine.nvim"
- },
- ["nvim-autopairs"] = {
- config = { "\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
- url = "https://github.com/windwp/nvim-autopairs"
- },
- ["nvim-cmp"] = {
- config = { "\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21user.plugins.cmp\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-cmp",
- url = "https://github.com/hrsh7th/nvim-cmp"
- },
- ["nvim-code-action-menu"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-code-action-menu",
- url = "https://github.com/weilbith/nvim-code-action-menu"
- },
- ["nvim-lspconfig"] = {
- config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.lspconfig\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
- url = "https://github.com/neovim/nvim-lspconfig"
- },
- ["nvim-tree.lua"] = {
- config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.nvim-tree\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
- url = "https://github.com/kyazdani42/nvim-tree.lua"
- },
- ["nvim-treesitter"] = {
- config = { "\27LJ\2\n]\0\0\3\0\4\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\1K\0\1\0\28user.plugins.treesitter\nsetup\16spellsitter\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
- url = "https://github.com/nvim-treesitter/nvim-treesitter"
- },
- ["nvim-treesitter-textobjects"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects",
- url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
- },
- ["nvim-ts-context-commentstring"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-ts-context-commentstring",
- url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring"
- },
- ["nvim-web-devicons"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
- url = "https://github.com/kyazdani42/nvim-web-devicons"
- },
- ["packer.nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/packer.nvim",
- url = "https://github.com/wbthomason/packer.nvim"
- },
- playground = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/playground",
- url = "https://github.com/nvim-treesitter/playground"
- },
- ["plenary.nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/plenary.nvim",
- url = "https://github.com/nvim-lua/plenary.nvim"
- },
- ["popup.nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/popup.nvim",
- url = "https://github.com/nvim-lua/popup.nvim"
- },
- ["schemastore.nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/schemastore.nvim",
- url = "https://github.com/b0o/schemastore.nvim"
- },
- ["spellsitter.nvim"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/spellsitter.nvim",
- url = "https://github.com/lewis6991/spellsitter.nvim"
- },
- ["telescope.nvim"] = {
- config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.telescope\frequire\0" },
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/telescope.nvim",
- url = "https://github.com/nvim-telescope/telescope.nvim"
- },
- ["vim-commentary"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/vim-commentary",
- url = "https://github.com/tpope/vim-commentary"
- },
- ["vim-eunuch"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/vim-eunuch",
- url = "https://github.com/tpope/vim-eunuch"
- },
- ["vim-surround"] = {
- loaded = true,
- path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/vim-surround",
- url = "https://github.com/tpope/vim-surround"
- }
- }
+time([[try_loadstring definition]], false)
+time([[Defining packer_plugins]], true)
+_G.packer_plugins = {
+ LuaSnip = {
+ config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.luasnip\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/LuaSnip",
+ url = "https://github.com/L3MON4D3/LuaSnip"
+ },
+ ["cmp-buffer"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-buffer",
+ url = "https://github.com/hrsh7th/cmp-buffer"
+ },
+ ["cmp-nvim-lsp"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp",
+ url = "https://github.com/hrsh7th/cmp-nvim-lsp"
+ },
+ ["cmp-nvim-lsp-signature-help"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-nvim-lsp-signature-help",
+ url = "https://github.com/hrsh7th/cmp-nvim-lsp-signature-help"
+ },
+ ["cmp-nvim-lua"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-nvim-lua",
+ url = "https://github.com/hrsh7th/cmp-nvim-lua"
+ },
+ ["cmp-path"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/cmp-path",
+ url = "https://github.com/jessarcher/cmp-path"
+ },
+ dracula = {
+ config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.dracula\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/dracula",
+ url = "https://github.com/dracula/vim"
+ },
+ ["lsp-colors.nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/lsp-colors.nvim",
+ url = "https://github.com/folke/lsp-colors.nvim"
+ },
+ ["lspkind-nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/lspkind-nvim",
+ url = "https://github.com/onsails/lspkind-nvim"
+ },
+ ["lualine.nvim"] = {
+ config = { "\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.lualine\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/lualine.nvim",
+ url = "https://github.com/nvim-lualine/lualine.nvim"
+ },
+ ["nvim-autopairs"] = {
+ config = { "\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-autopairs",
+ url = "https://github.com/windwp/nvim-autopairs"
+ },
+ ["nvim-cmp"] = {
+ config = { "\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21user.plugins.cmp\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-cmp",
+ url = "https://github.com/hrsh7th/nvim-cmp"
+ },
+ ["nvim-code-action-menu"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-code-action-menu",
+ url = "https://github.com/weilbith/nvim-code-action-menu"
+ },
+ ["nvim-lspconfig"] = {
+ config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.lspconfig\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-lspconfig",
+ url = "https://github.com/neovim/nvim-lspconfig"
+ },
+ ["nvim-tree.lua"] = {
+ config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.nvim-tree\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-tree.lua",
+ url = "https://github.com/kyazdani42/nvim-tree.lua"
+ },
+ ["nvim-treesitter"] = {
+ config = { "\27LJ\2\n]\0\0\3\0\4\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\1K\0\1\0\28user.plugins.treesitter\nsetup\16spellsitter\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-treesitter",
+ url = "https://github.com/nvim-treesitter/nvim-treesitter"
+ },
+ ["nvim-treesitter-textobjects"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-treesitter-textobjects",
+ url = "https://github.com/nvim-treesitter/nvim-treesitter-textobjects"
+ },
+ ["nvim-ts-context-commentstring"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-ts-context-commentstring",
+ url = "https://github.com/JoosepAlviste/nvim-ts-context-commentstring"
+ },
+ ["nvim-web-devicons"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/nvim-web-devicons",
+ url = "https://github.com/kyazdani42/nvim-web-devicons"
+ },
+ ["packer.nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/packer.nvim",
+ url = "https://github.com/wbthomason/packer.nvim"
+ },
+ playground = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/playground",
+ url = "https://github.com/nvim-treesitter/playground"
+ },
+ ["plenary.nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/plenary.nvim",
+ url = "https://github.com/nvim-lua/plenary.nvim"
+ },
+ ["popup.nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/popup.nvim",
+ url = "https://github.com/nvim-lua/popup.nvim"
+ },
+ ["schemastore.nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/schemastore.nvim",
+ url = "https://github.com/b0o/schemastore.nvim"
+ },
+ ["spellsitter.nvim"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/spellsitter.nvim",
+ url = "https://github.com/lewis6991/spellsitter.nvim"
+ },
+ ["telescope.nvim"] = {
+ config = { "\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.telescope\frequire\0" },
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/telescope.nvim",
+ url = "https://github.com/nvim-telescope/telescope.nvim"
+ },
+ ["vim-commentary"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/vim-commentary",
+ url = "https://github.com/tpope/vim-commentary"
+ },
+ ["vim-eunuch"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/vim-eunuch",
+ url = "https://github.com/tpope/vim-eunuch"
+ },
+ ["vim-surround"] = {
+ loaded = true,
+ path = "/home/cafebabe/.local/share/nvim/site/pack/packer/start/vim-surround",
+ url = "https://github.com/tpope/vim-surround"
+ }
+}
- time([[Defining packer_plugins]], false)
- -- Config for: nvim-cmp
- time([[Config for nvim-cmp]], true)
- try_loadstring("\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21user.plugins.cmp\frequire\0", "config", "nvim-cmp")
- time([[Config for nvim-cmp]], false)
- -- Config for: lualine.nvim
- time([[Config for lualine.nvim]], true)
- try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.lualine\frequire\0", "config", "lualine.nvim")
- time([[Config for lualine.nvim]], false)
- -- Config for: nvim-autopairs
- time([[Config for nvim-autopairs]], true)
- try_loadstring("\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
- time([[Config for nvim-autopairs]], false)
- -- Config for: nvim-tree.lua
- time([[Config for nvim-tree.lua]], true)
- try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.nvim-tree\frequire\0", "config", "nvim-tree.lua")
- time([[Config for nvim-tree.lua]], false)
- -- Config for: nvim-treesitter
- time([[Config for nvim-treesitter]], true)
- try_loadstring("\27LJ\2\n]\0\0\3\0\4\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\1K\0\1\0\28user.plugins.treesitter\nsetup\16spellsitter\frequire\0", "config", "nvim-treesitter")
- time([[Config for nvim-treesitter]], false)
- -- Config for: dracula
- time([[Config for dracula]], true)
- try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.dracula\frequire\0", "config", "dracula")
- time([[Config for dracula]], false)
- -- Config for: telescope.nvim
- time([[Config for telescope.nvim]], true)
- try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.telescope\frequire\0", "config", "telescope.nvim")
- time([[Config for telescope.nvim]], false)
- -- Config for: nvim-lspconfig
- time([[Config for nvim-lspconfig]], true)
- try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.lspconfig\frequire\0", "config", "nvim-lspconfig")
- time([[Config for nvim-lspconfig]], false)
- if should_profile then save_profiles() end
+time([[Defining packer_plugins]], false)
+-- Config for: nvim-autopairs
+time([[Config for nvim-autopairs]], true)
+try_loadstring("\27LJ\2\n<\0\0\3\0\3\0\0066\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\1K\0\1\0\nsetup\19nvim-autopairs\frequire\0", "config", "nvim-autopairs")
+time([[Config for nvim-autopairs]], false)
+-- Config for: nvim-tree.lua
+time([[Config for nvim-tree.lua]], true)
+try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.nvim-tree\frequire\0", "config", "nvim-tree.lua")
+time([[Config for nvim-tree.lua]], false)
+-- Config for: telescope.nvim
+time([[Config for telescope.nvim]], true)
+try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.telescope\frequire\0", "config", "telescope.nvim")
+time([[Config for telescope.nvim]], false)
+-- Config for: nvim-cmp
+time([[Config for nvim-cmp]], true)
+try_loadstring("\27LJ\2\n0\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\21user.plugins.cmp\frequire\0", "config", "nvim-cmp")
+time([[Config for nvim-cmp]], false)
+-- Config for: dracula
+time([[Config for dracula]], true)
+try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.dracula\frequire\0", "config", "dracula")
+time([[Config for dracula]], false)
+-- Config for: LuaSnip
+time([[Config for LuaSnip]], true)
+try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.luasnip\frequire\0", "config", "LuaSnip")
+time([[Config for LuaSnip]], false)
+-- Config for: lualine.nvim
+time([[Config for lualine.nvim]], true)
+try_loadstring("\27LJ\2\n4\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\25user.plugins.lualine\frequire\0", "config", "lualine.nvim")
+time([[Config for lualine.nvim]], false)
+-- Config for: nvim-treesitter
+time([[Config for nvim-treesitter]], true)
+try_loadstring("\27LJ\2\n]\0\0\3\0\4\0\t6\0\0\0'\2\1\0B\0\2\0029\0\2\0B\0\1\0016\0\0\0'\2\3\0B\0\2\1K\0\1\0\28user.plugins.treesitter\nsetup\16spellsitter\frequire\0", "config", "nvim-treesitter")
+time([[Config for nvim-treesitter]], false)
+-- Config for: nvim-lspconfig
+time([[Config for nvim-lspconfig]], true)
+try_loadstring("\27LJ\2\n6\0\0\3\0\2\0\0046\0\0\0'\2\1\0B\0\2\1K\0\1\0\27user.plugins.lspconfig\frequire\0", "config", "nvim-lspconfig")
+time([[Config for nvim-lspconfig]], false)
+if should_profile then save_profiles() end
end)
if not no_errors then
- error_msg = error_msg:gsub('"', '\\"')
- vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: ' .. error_msg .. '" | echom "Please check your config for correctness" | echohl None')
+ error_msg = error_msg:gsub('"', '\\"')
+ vim.api.nvim_command('echohl ErrorMsg | echom "Error in packer_compiled: '..error_msg..'" | echom "Please check your config for correctness" | echohl None')
end
diff --git a/.config/nvim/snippets/html.lua b/.config/nvim/snippets/html.lua
new file mode 100644
index 0000000..f802206
--- /dev/null
+++ b/.config/nvim/snippets/html.lua
@@ -0,0 +1,14 @@
+return {
+ parse('skeleton', '<!DOCTYPE html>\
+<html lang="en">\
+<meta charset="UTF-8">\
+<title></title>\
+<meta name="viewport" content="width=devide-width,initial-scale=1">\
+<link rel="stylesheet" href="">\
+<body>\
+ <div>\
+ </div>\
+</body>\
+<script src=""></script>\
+</html>')
+}