config(nvim): change display position for nvim-recorder lualine module
This commit is contained in:
1 parent
89e17eb26f
commit
ffbd5af0d7
4 files changed
+16
-15
No files matched your search
@@ -1,34 +1,38 @@
|
|||||||
-- Options are automatically loaded before lazy.nvim startup
|
-- Options are automatically loaded before lazy.nvim startup
|
||||||
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
|
||||||
-- Add any additional options here
|
-- Add any additional options here
|
||||||
local o = vim.g
|
local go = vim.g
|
||||||
|
local o = vim.opt
|
||||||
|
|
||||||
-- Optimizations on startup
|
-- Optimizations on startup
|
||||||
vim.loader.enable()
|
vim.loader.enable()
|
||||||
|
|
||||||
-- Define leader key
|
-- Define leader key
|
||||||
o.mapleader = " "
|
go.mapleader = " "
|
||||||
o.maplocalleader = "\\"
|
go.maplocalleader = "\\"
|
||||||
|
|
||||||
-- Autoformat on save (Global)
|
-- Autoformat on save (Global)
|
||||||
o.autoformat = true
|
go.autoformat = true
|
||||||
|
|
||||||
-- Font
|
-- Font
|
||||||
o.gui_font_default_size = 10
|
go.gui_font_default_size = 10
|
||||||
o.gui_font_size = o.gui_font_default_size
|
go.gui_font_size = go.gui_font_default_size
|
||||||
o.gui_font_face = "JetBrainsMono Nerd Font"
|
go.gui_font_face = "JetBrainsMono Nerd Font"
|
||||||
|
|
||||||
-- Enable EditorConfig integration
|
-- Enable EditorConfig integration
|
||||||
o.editorconfig = true
|
go.editorconfig = true
|
||||||
|
|
||||||
-- Disable some repl providers
|
-- Disable some repl providers
|
||||||
for _, provider in ipairs({ "node", "perl", "python3", "ruby" }) do
|
for _, provider in ipairs({ "node", "perl", "python3", "ruby" }) do
|
||||||
vim.g["loaded_" .. provider .. "_provider"] = 0
|
go["loaded_" .. provider .. "_provider"] = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Root dir detection
|
-- Root dir detection
|
||||||
vim.g.root_spec = {
|
go.root_spec = {
|
||||||
"lsp",
|
"lsp",
|
||||||
{ ".git", "lua", ".obsidian", "package.json", "Makefile", "go.mod", "cargo.toml", "pyproject.toml", "src" },
|
{ ".git", "lua", ".obsidian", "package.json", "Makefile", "go.mod", "cargo.toml", "pyproject.toml", "src" },
|
||||||
"cwd",
|
"cwd",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Show last command in the status line
|
||||||
|
o.showcmd = false
|
||||||
@@ -27,7 +27,7 @@ return {
|
|||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
opts = function(_, opts)
|
opts = function(_, opts)
|
||||||
table.insert(opts.sections.lualine_x, 2, require("recorder").displaySlots)
|
table.insert(opts.sections.lualine_x, 1, require("recorder").displaySlots)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"epwalsh/obsidian.nvim",
|
"epwalsh/obsidian.nvim",
|
||||||
event = {
|
event = { "BufReadPre /docs/Documentos/Obsidian/**.md" },
|
||||||
"BufReadPre " .. vim.fn.expand("~") .. "/Documentos/Obsidian/obsidianVault/**.md",
|
|
||||||
},
|
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"gf",
|
"gf",
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ return {
|
|||||||
opts.options.component_separators = { left = "", right = "" }
|
opts.options.component_separators = { left = "", right = "" }
|
||||||
opts.options.section_separators = { left = "", right = "" }
|
opts.options.section_separators = { left = "", right = "" }
|
||||||
|
|
||||||
table.remove(opts.sections.lualine_x, 1)
|
|
||||||
table.insert(opts.sections.lualine_x, 2, lsp)
|
table.insert(opts.sections.lualine_x, 2, lsp)
|
||||||
table.insert(opts.sections.lualine_x, 2, formatter)
|
table.insert(opts.sections.lualine_x, 2, formatter)
|
||||||
table.insert(opts.sections.lualine_x, 2, linter)
|
table.insert(opts.sections.lualine_x, 2, linter)
|
||||||
|
|||||||
Reference in new issue
Block a user