From a07bd72c5489d5ac70e8da41f869edee0d626454 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 20 Dec 2021 12:10:15 +0100 Subject: [PATCH] nvim: messing around --- .config/nvim/init.vim | 6 ++++++ .config/nvim/lua/plugins.lua | 28 ++++++++++------------------ 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 522bd31..f50e3a4 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -26,4 +26,10 @@ map ,H :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' \ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" \ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" +function! SynGroup() + let l:s = synID(line('.'), col('.'), 1) + echo synIDattr(l:s, 'name') . ' -> ' . synIDattr(synIDtrans(l:s), 'name') +endfun +map ,J :call SynGroup() + map ,L :luafile % diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 2b31a8c..0cf19fa 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -49,6 +49,7 @@ return require('packer').startup(function() end end + utils.mapx("is", "", "v:lua.complete('', '')") utils.mapx("is", "", "v:lua.complete('', '')") utils.mapx("is", "", "v:lua.complete('', '')") utils.mapx("is", "", "v:lua.complete('', '')") @@ -186,23 +187,14 @@ return require('packer').startup(function() } -- use { - -- "marko-cerovac/material.nvim", - -- config = function() - -- vim.g.material_style = 'lighter' - -- vim.g.material_lighter_contrast = true - -- require('material').set() - -- end + -- "cuducos/yaml.nvim", + -- ft = {"yaml"}, + -- requires = { + -- "nvim-treesitter/nvim-treesitter", + -- -- "nvim-telescope/telescope.nvim" -- optional + -- }, + -- config = function () + -- require("yaml_nvim").init() + -- end -- } - - use { - "cuducos/yaml.nvim", - ft = {"yaml"}, - requires = { - "nvim-treesitter/nvim-treesitter", - -- "nvim-telescope/telescope.nvim" -- optional - }, - config = function () - require("yaml_nvim").init() - end - } end)