Nvim: update treesitter and use themify
This commit is contained in:
@@ -73,7 +73,7 @@ vim.opt.cmdheight = 1
|
|||||||
|
|
||||||
-- Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
-- Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
||||||
-- delays and poor user experience.
|
-- delays and poor user experience.
|
||||||
--vim.opt.updatetime = 300
|
vim.opt.updatetime = 300
|
||||||
|
|
||||||
-- Don't pass messages to |ins-completion-menu|.
|
-- Don't pass messages to |ins-completion-menu|.
|
||||||
vim.opt.shortmess:append('c')
|
vim.opt.shortmess:append('c')
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ if not vim.loop.fs_stat(lazypath) then
|
|||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
"--branch=stable", -- latest stable release
|
--"--branch=stable", -- latest stable release
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
@@ -18,5 +18,8 @@ require'lazy'.setup('plugins', {
|
|||||||
change_detection = {
|
change_detection = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
notify = false
|
notify = false
|
||||||
|
},
|
||||||
|
dev = {
|
||||||
|
path = '/home/kmcr'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,162 +1,35 @@
|
|||||||
return {{
|
return {
|
||||||
"xero/miasma.nvim",
|
'lmantw/themify.nvim',
|
||||||
|
|
||||||
lazy = false,
|
lazy = false,
|
||||||
priority = 1000,
|
priority = 999,
|
||||||
|
|
||||||
config = function()
|
config = function()
|
||||||
--vim.cmd("colorscheme miasma")
|
require('themify').setup({
|
||||||
end,
|
"xero/miasma.nvim",
|
||||||
},
|
"wuelnerdotexe/vim-enfocado",
|
||||||
{
|
"fenetikm/falcon",
|
||||||
"wuelnerdotexe/vim-enfocado",
|
"casr/vim-colors-reference",
|
||||||
lazy = false,
|
"blazkowolf/gruber-darker.nvim",
|
||||||
priority = 1000,
|
"rebelot/kanagawa.nvim",
|
||||||
config = function()
|
"jaredgorski/spacecamp",
|
||||||
--vim.cmd.colorscheme('enfocado')
|
"lifepillar/vim-gruvbox8",
|
||||||
end
|
"marko-cerovac/material.nvim",
|
||||||
},
|
"srcery-colors/srcery-vim",
|
||||||
{
|
"tanvirtin/monokai.nvim",
|
||||||
"fenetikm/falcon",
|
"dasupradyumna/midnight.nvim",
|
||||||
lazy = false,
|
"bluz71/vim-moonfly-colors",
|
||||||
priority = 1000,
|
"kuznetsss/meadow.nvim",
|
||||||
config = function()
|
"kepano/flexoki-neovim",
|
||||||
--vim.cmd.colorscheme('falcon')
|
{
|
||||||
end
|
url = "https://gitlab.com/bartekjaszczak/distinct-nvim",
|
||||||
},
|
},
|
||||||
{
|
'kevinm6/kurayami.nvim',
|
||||||
"casr/vim-colors-reference",
|
'gerardbm/vim-atomic',
|
||||||
lazy = false,
|
'fynnfluegge/monet.nvim',
|
||||||
priority = 1000,
|
'sho-87/kanagawa-paper.nvim',
|
||||||
config = function()
|
'qaptoR-nvim/chocolatier.nvim',
|
||||||
--vim.cmd.colorscheme('reference')
|
'default'
|
||||||
end
|
})
|
||||||
},
|
|
||||||
{
|
|
||||||
"blazkowolf/gruber-darker.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('gruber-darker')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"rebelot/kanagawa.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('kanagawa')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"jaredgorski/spacecamp",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('spacecamp')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"lifepillar/vim-gruvbox8",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('gruvbox8')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"marko-cerovac/material.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('material')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"srcery-colors/srcery-vim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('srcery')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"tanvirtin/monokai.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('monokai')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"dasupradyumna/midnight.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
vim.cmd.colorscheme('midnight')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"bluz71/vim-moonfly-colors",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('moonfly')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kuznetsss/meadow.nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
-- require('meadow').setup()
|
|
||||||
-- vim.cmd.colorscheme('meadow')
|
|
||||||
-- vim.cmd [[ hi! Conceal guibg=black ]]
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kepano/flexoki-neovim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('flexoki-dark')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"https://gitlab.com/bartekjaszczak/distinct-nvim",
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
-- require("distinct").setup({
|
|
||||||
-- doc_comments_different_color = true, -- Use different colour for documentation comments
|
|
||||||
-- })
|
|
||||||
-- vim.cmd.colorscheme('distinct')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'kevinm6/kurayami.nvim',
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('kurayami')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'gerardbm/vim-atomic',
|
|
||||||
lazy = false,
|
|
||||||
priority = 1000,
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('atomic')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'fynnfluegge/monet.nvim',
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('atomic')
|
|
||||||
end
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'sho-87/kanagawa-paper.nvim',
|
|
||||||
config = function()
|
|
||||||
--vim.cmd.colorscheme('kanagawa-paper')
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,27 +0,0 @@
|
|||||||
return {
|
|
||||||
"luckasRanarison/nvim-devdocs",
|
|
||||||
dependencies = {
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
"nvim-treesitter/nvim-treesitter",
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
dir_path = vim.fn.stdpath("data") .. "/devdocs", -- installation directory
|
|
||||||
telescope = {}, -- passed to the telescope picker
|
|
||||||
float_win = { -- passed to nvim_open_win(), see :h api-floatwin
|
|
||||||
relative = "editor",
|
|
||||||
height = 25,
|
|
||||||
width = 100,
|
|
||||||
border = "rounded",
|
|
||||||
},
|
|
||||||
wrap = true, -- text wrap, only applies to floating window
|
|
||||||
previewer_cmd = nil, -- for example: "glow"
|
|
||||||
cmd_args = {}, -- example using glow: { "-s", "dark", "-w", "80" }
|
|
||||||
cmd_ignore = {}, -- ignore cmd rendering for the listed docs
|
|
||||||
picker_cmd = false, -- use cmd previewer in picker preview
|
|
||||||
picker_cmd_args = {}, -- example using glow: { "-p" }
|
|
||||||
ensure_installed = nil, -- get automatically installed
|
|
||||||
after_open = function(bufnr) end, -- callback that runs after the Devdocs window is opened. Devdocs buffer ID will be passed in
|
|
||||||
},
|
|
||||||
event = "VeryLazy"
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,14 @@
|
|||||||
return {
|
return {
|
||||||
'glacambre/firenvim',
|
'glacambre/firenvim',
|
||||||
build = ":call firenvim#install(0)"
|
build = ":call firenvim#install(0)",
|
||||||
|
config = function()
|
||||||
|
vim.api.nvim_create_autocmd({'UIEnter'}, {
|
||||||
|
callback = function(event)
|
||||||
|
local client = vim.api.nvim_get_chan_info(vim.v.event.chan).client
|
||||||
|
if client ~= nil and client.name == "Firenvim" then
|
||||||
|
vim.o.laststatus = 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,13 +5,14 @@ return {
|
|||||||
-- "SmiteshP/nvim-navbuddy",
|
-- "SmiteshP/nvim-navbuddy",
|
||||||
"jubnzv/virtual-types.nvim",
|
"jubnzv/virtual-types.nvim",
|
||||||
--"ray-x/lsp_signature.nvim",
|
--"ray-x/lsp_signature.nvim",
|
||||||
|
'sontungexpt/better-diagnostic-virtual-text',
|
||||||
{url = "http://git.sr.ht/~p00f/clangd_extensions.nvim"},
|
{url = "http://git.sr.ht/~p00f/clangd_extensions.nvim"},
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local nvim_lsp = require('lspconfig')
|
local nvim_lsp = require('lspconfig')
|
||||||
require('clangd_extensions').setup({
|
require('clangd_extensions').setup({
|
||||||
inlay_hints = {
|
inlay_hints = {
|
||||||
inline = true,
|
inline = false,
|
||||||
-- Options other than `highlight' and `priority' only work
|
-- Options other than `highlight' and `priority' only work
|
||||||
-- if `inline' is disabled
|
-- if `inline' is disabled
|
||||||
-- Only show inlay hints for the current line
|
-- Only show inlay hints for the current line
|
||||||
@@ -126,6 +127,7 @@ return {
|
|||||||
-- })
|
-- })
|
||||||
require("clangd_extensions.inlay_hints").setup_autocmd()
|
require("clangd_extensions.inlay_hints").setup_autocmd()
|
||||||
require("clangd_extensions.inlay_hints").set_inlay_hints()
|
require("clangd_extensions.inlay_hints").set_inlay_hints()
|
||||||
|
require("better-diagnostic-virtual-text.api").setup_buf(ev.buf, {})
|
||||||
|
|
||||||
local signs = {
|
local signs = {
|
||||||
{ name = "DiagnosticSignError", text = "" },
|
{ name = "DiagnosticSignError", text = "" },
|
||||||
|
|||||||
@@ -17,5 +17,9 @@ return { {
|
|||||||
-- WARN
|
-- WARN
|
||||||
toc_format = '%s- [%s](<%s#%s>)',
|
toc_format = '%s- [%s](<%s#%s>)',
|
||||||
}
|
}
|
||||||
},
|
}, {
|
||||||
|
'SCJangra/table-nvim',
|
||||||
|
ft = 'markdown',
|
||||||
|
opts = {},
|
||||||
|
}
|
||||||
} }
|
} }
|
||||||
|
|||||||
@@ -7,23 +7,15 @@ return {
|
|||||||
--"nvim-treesitter/playground",
|
--"nvim-treesitter/playground",
|
||||||
},
|
},
|
||||||
build = ':TSUpdate',
|
build = ':TSUpdate',
|
||||||
config = function()
|
opts = function()
|
||||||
-- Tree-sitter configuration
|
-- Tree-sitter configuration
|
||||||
|
|
||||||
local ts = require'nvim-treesitter.configs'
|
local ts = require'nvim-treesitter.configs'
|
||||||
|
|
||||||
ts.setup {
|
ts.setup {
|
||||||
highlight = {
|
ignore_install = {'javascript'},
|
||||||
enable = true,
|
sync_install = true,
|
||||||
disable = function(lang, buf)
|
auto_install = true,
|
||||||
local max_filesize = 100 * 1024
|
|
||||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
|
||||||
if ok and stats and stats.size > max_filesize then
|
|
||||||
return true
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
additional_vim_regex_highlighting = false,
|
|
||||||
},
|
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"arduino",
|
"arduino",
|
||||||
"awk",
|
"awk",
|
||||||
@@ -64,8 +56,20 @@ return {
|
|||||||
"vim",
|
"vim",
|
||||||
"yaml",
|
"yaml",
|
||||||
},
|
},
|
||||||
|
modules = {},
|
||||||
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
disable = function(lang, buf)
|
||||||
|
local max_filesize = 100 * 1024 -- 100 KB
|
||||||
|
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||||
|
if ok and stats and stats.size > max_filesize then
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
indent = {
|
indent = {
|
||||||
enable = false,
|
enable = false,
|
||||||
},
|
},
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
@@ -79,11 +83,11 @@ return {
|
|||||||
matchup = {
|
matchup = {
|
||||||
enable = true,
|
enable = true,
|
||||||
-- disable = { "c", "ruby" },
|
-- disable = { "c", "ruby" },
|
||||||
include_match_words
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
vim.opt.foldmethod = "expr"
|
vim.opt.foldmethod = "manual"
|
||||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"
|
||||||
vim.opt.foldlevelstart = 99
|
vim.opt.foldlevelstart = 99
|
||||||
|
vim.opt.foldminlines = 50
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user