mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-28 14:07:46 +01:00
nvim: load colorscheme first and indent on demand
This commit is contained in:
parent
131c2084a4
commit
580eb5dc2a
@ -16,6 +16,7 @@ return require("lazy").setup({
|
|||||||
-- colorscheme
|
-- colorscheme
|
||||||
{
|
{
|
||||||
'tiyn/tccs.nvim',
|
'tiyn/tccs.nvim',
|
||||||
|
priority = 1000,
|
||||||
config = function()
|
config = function()
|
||||||
require('tccs').setup()
|
require('tccs').setup()
|
||||||
vim.cmd('colorscheme tccs')
|
vim.cmd('colorscheme tccs')
|
||||||
@ -31,6 +32,7 @@ return require("lazy").setup({
|
|||||||
-- show indentation lines
|
-- show indentation lines
|
||||||
{
|
{
|
||||||
'lukas-reineke/indent-blankline.nvim',
|
'lukas-reineke/indent-blankline.nvim',
|
||||||
|
event = "BufReadPre",
|
||||||
opts = {
|
opts = {
|
||||||
show_current_context = true,
|
show_current_context = true,
|
||||||
show_current_context_start = true
|
show_current_context_start = true
|
||||||
@ -141,9 +143,6 @@ return require("lazy").setup({
|
|||||||
config = function()
|
config = function()
|
||||||
require("null-ls").setup({
|
require("null-ls").setup({
|
||||||
sources = {
|
sources = {
|
||||||
require("null-ls-embedded").nls_source.with({
|
|
||||||
filetypes = { "markdown" }
|
|
||||||
}),
|
|
||||||
require("null-ls").builtins.formatting.black,
|
require("null-ls").builtins.formatting.black,
|
||||||
require("null-ls").builtins.formatting.mdformat
|
require("null-ls").builtins.formatting.mdformat
|
||||||
}
|
}
|
||||||
@ -155,10 +154,9 @@ return require("lazy").setup({
|
|||||||
opts = {
|
opts = {
|
||||||
automatic_installation = true,
|
automatic_installation = true,
|
||||||
ensure_installed = { "black", "mdformat" }
|
ensure_installed = { "black", "mdformat" }
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'LostNeophyte/null-ls-embedded'
|
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
ui = {
|
ui = {
|
||||||
@ -202,11 +200,10 @@ return require("lazy").setup({
|
|||||||
automatic_setup = true,
|
automatic_setup = true,
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bashls",
|
"bashls",
|
||||||
"jdtls",
|
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
"marksman",
|
"marksman",
|
||||||
"nimls",
|
"nimls",
|
||||||
"pyright",
|
"pylsp",
|
||||||
"texlab"
|
"texlab"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -367,21 +364,18 @@ return require("lazy").setup({
|
|||||||
'p00f/nvim-ts-rainbow',
|
'p00f/nvim-ts-rainbow',
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("nvim-treesitter").setup({
|
require("nvim-treesitter.configs").setup({
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"bash",
|
"bash",
|
||||||
"c",
|
|
||||||
"cpp",
|
|
||||||
"css",
|
"css",
|
||||||
"html",
|
"html",
|
||||||
"java",
|
|
||||||
"markdown",
|
"markdown",
|
||||||
"latex",
|
"latex",
|
||||||
"python",
|
"python",
|
||||||
|
"lua",
|
||||||
},
|
},
|
||||||
|
highlight = { enable = true },
|
||||||
autotag = { enable = true },
|
autotag = { enable = true },
|
||||||
})
|
|
||||||
require("nvim-treesitter.configs").setup({
|
|
||||||
rainbow = {
|
rainbow = {
|
||||||
enable = true,
|
enable = true,
|
||||||
extended_mode = true,
|
extended_mode = true,
|
||||||
@ -588,7 +582,7 @@ return require("lazy").setup({
|
|||||||
config = function()
|
config = function()
|
||||||
vim.o.nospell = true
|
vim.o.nospell = true
|
||||||
end
|
end
|
||||||
}
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
-- lazy.nvim configuration
|
-- lazy.nvim configuration
|
||||||
|
Loading…
x
Reference in New Issue
Block a user