feat(nvim): random stuff, who knows really

chezmoi
sgoudham 2 years ago
parent a16ee3cd41
commit 7dd544193d
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -492,24 +492,24 @@ function M.get()
},
}
components.active[3][6] = {
provider = function()
local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
return " " .. assets.dir .. " " .. dir_name .. " "
end,
enabled = is_enabled(80),
hl = {
fg = sett.text,
bg = sett.curr_dir,
},
left_sep = {
str = assets.left_separator,
hl = {
fg = sett.curr_dir,
bg = sett.curr_file,
},
},
}
-- components.active[3][6] = {
-- provider = function()
-- local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
-- return " " .. assets.dir .. " " .. dir_name .. " "
-- end,
-- enabled = is_enabled(80),
-- hl = {
-- fg = sett.text,
-- bg = sett.curr_dir,
-- },
-- left_sep = {
-- str = assets.left_separator,
-- hl = {
-- fg = sett.curr_dir,
-- bg = sett.curr_file,
-- },
-- },
-- }
-- ######## Right
-- Inanctive components

@ -36,7 +36,7 @@ return {
"williamboman/mason-lspconfig.nvim",
config = function()
require("mason-lspconfig").setup({
ensure_installed = { "rust_analyzer", "pyright", "lua_ls" },
ensure_installed = { "rust_analyzer", "pyright", "lua_ls", "marksman" },
})
require("mason-lspconfig").setup_handlers({
-- default handler
@ -45,16 +45,13 @@ return {
end,
["ltex"] = function()
require("lspconfig")["ltex"].setup({
on_attach = function(_, _)
require("lspconfig")["ltex"].setup(lsp.default_config)
require("ltex_extra").setup({
load_langs = { "es-AR", "en-US" },
init_check = true,
path = vim.fn.stdpath("data") .. "/dictionary",
})
end,
})
end,
["rust_analyzer"] = function()
-- https://github.com/simrat39/rust-tools.nvim/issues/300
@ -159,6 +156,9 @@ return {
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.ruff,
null_ls.builtins.formatting.yamlfmt,
null_ls.builtins.formatting.latexindent,
null_ls.builtins.formatting.beautysh,
null_ls.builtins.formatting.stylua.with({
extra_args = { "--indent-type", "spaces" },

Loading…
Cancel
Save