Compare commits
2 Commits
5a12e18867
...
ebaebba37d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebaebba37d | ||
|
|
1b25364733 |
@ -28,3 +28,6 @@ vim.keymap.set('n', '<S-Tab>', ':tabprevious<CR>')
|
||||
|
||||
-- jump to definition in new tab
|
||||
vim.keymap.set('n', '<C-]>', '<cmd>tab split | lua vim.lsp.buf.definition()<CR>', {})
|
||||
|
||||
-- quick close tab
|
||||
vim.keymap.set('n', '<C-w>', ':tabclose<CR>')
|
||||
|
||||
@ -1,37 +0,0 @@
|
||||
-- Attaches to every FileType mode
|
||||
require 'colorizer'.setup()
|
||||
|
||||
-- Attach to certain Filetypes, add special configuration for `html`
|
||||
-- Use `background` for everything else.
|
||||
require 'colorizer'.setup {
|
||||
'css';
|
||||
'javascript';
|
||||
html = {
|
||||
mode = 'foreground';
|
||||
}
|
||||
}
|
||||
|
||||
-- Use the `default_options` as the second parameter, which uses
|
||||
-- `foreground` for every mode. This is the inverse of the previous
|
||||
-- setup configuration.
|
||||
require 'colorizer'.setup({
|
||||
'css';
|
||||
'javascript';
|
||||
html = { mode = 'background' };
|
||||
}, { mode = 'foreground' })
|
||||
|
||||
-- Use the `default_options` as the second parameter, which uses
|
||||
-- `foreground` for every mode. This is the inverse of the previous
|
||||
-- setup configuration.
|
||||
require 'colorizer'.setup {
|
||||
'*'; -- Highlight all files, but customize some others.
|
||||
css = { rgb_fn = true; }; -- Enable parsing rgb(...) functions in css.
|
||||
html = { names = false; } -- Disable parsing "names" like Blue or Gray
|
||||
}
|
||||
|
||||
-- Exclude some filetypes from highlighting by using `!`
|
||||
require 'colorizer'.setup {
|
||||
'*'; -- Highlight all files, but customize some others.
|
||||
'!vim'; -- Exclude vim from highlighting.
|
||||
-- Exclusion Only makes sense if '*' is specified!
|
||||
}
|
||||
@ -1,5 +1,4 @@
|
||||
require("core.plugin_config.gruvbox")
|
||||
require("core.plugin_config.lualine")
|
||||
require("core.plugin_config.nvim-tree")
|
||||
require("core.plugin_config.treesitter")
|
||||
require("core.plugin_config.telescope")
|
||||
@ -15,3 +14,4 @@ require("core.plugin_config.lsp_config")
|
||||
require("core.plugin_config.indent-blankline")
|
||||
require("core.plugin_config.indent-blankline")
|
||||
require("core.plugin_config.vim-indentwise")
|
||||
require("core.plugin_config.lualine")
|
||||
|
||||
@ -1,14 +1,26 @@
|
||||
local function getCurrTag()
|
||||
--vim.cmd [[TagbarCurrentTag]]
|
||||
--local currTag = tagbar#currenttag('%s\ ','','f')
|
||||
--local currTag = echo vim.api.nvim_command('TagbarCurrentTag')
|
||||
--local currTag = vim.api.nvim_command('tagbar#currenttag')
|
||||
--local currTag = vim.call('tagbar#currenttag')
|
||||
--local currTag = echo tagbar#currenttag('%s', 'No current tag')
|
||||
return luaeval('require("tagbar").currenttag')
|
||||
--if currTag then
|
||||
-- echo currTag
|
||||
--end
|
||||
--return 'foobar'
|
||||
end
|
||||
|
||||
require('lualine').setup {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'gruvbox',
|
||||
theme = 'gruvbox-material',
|
||||
},
|
||||
sections = {
|
||||
lualine_a = {
|
||||
{
|
||||
'filename',
|
||||
path = 1,
|
||||
}
|
||||
}
|
||||
lualine_c = { "filename", {getCurrTag} },
|
||||
},
|
||||
inactive_sections = {
|
||||
lualine_c = { "filename", {getCurrTag} },
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user