(neovim) lualine changes, markdownlint settings
This commit is contained in:
parent
4841a9b627
commit
c3152fb088
3 changed files with 19 additions and 2 deletions
3
config/common/nvim/linters/markdownlint-cli2.yaml
Normal file
3
config/common/nvim/linters/markdownlint-cli2.yaml
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
config:
|
||||||
|
MD004: false
|
||||||
|
MD013: false
|
12
config/common/nvim/lua/plugins/linter.lua
Normal file
12
config/common/nvim/lua/plugins/linter.lua
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-lint",
|
||||||
|
opts = {
|
||||||
|
linters = {
|
||||||
|
["markdownlint-cli2"] = {
|
||||||
|
args = { "--config", vim.fn.stdpath("config") .. "/linters/global.markdownlint-cli2.yaml" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -9,8 +9,8 @@ return {
|
||||||
},
|
},
|
||||||
sections = {
|
sections = {
|
||||||
lualine_a = { "mode" },
|
lualine_a = { "mode" },
|
||||||
lualine_b = { "branch" },
|
lualine_b = {
|
||||||
lualine_c = {
|
{ "branch" },
|
||||||
{
|
{
|
||||||
"diff",
|
"diff",
|
||||||
symbols = {
|
symbols = {
|
||||||
|
@ -28,6 +28,8 @@ return {
|
||||||
hint = " ",
|
hint = " ",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
},
|
||||||
|
lualine_c = {
|
||||||
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
|
{ "filetype", icon_only = true, separator = "", padding = { left = 1, right = 0 } },
|
||||||
{ "filename", file_status = true, path = 1 },
|
{ "filename", file_status = true, path = 1 },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue