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] = { -- components.active[3][6] = {
provider = function() -- provider = function()
local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t") -- local dir_name = vim.fn.fnamemodify(vim.fn.getcwd(), ":t")
return " " .. assets.dir .. " " .. dir_name .. " " -- return " " .. assets.dir .. " " .. dir_name .. " "
end, -- end,
enabled = is_enabled(80), -- enabled = is_enabled(80),
hl = { -- hl = {
fg = sett.text, -- fg = sett.text,
bg = sett.curr_dir, -- bg = sett.curr_dir,
}, -- },
left_sep = { -- left_sep = {
str = assets.left_separator, -- str = assets.left_separator,
hl = { -- hl = {
fg = sett.curr_dir, -- fg = sett.curr_dir,
bg = sett.curr_file, -- bg = sett.curr_file,
}, -- },
}, -- },
} -- }
-- ######## Right -- ######## Right
-- Inanctive components -- Inanctive components

@ -36,7 +36,7 @@ return {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
config = function() config = function()
require("mason-lspconfig").setup({ require("mason-lspconfig").setup({
ensure_installed = { "rust_analyzer", "pyright", "lua_ls" }, ensure_installed = { "rust_analyzer", "pyright", "lua_ls", "marksman" },
}) })
require("mason-lspconfig").setup_handlers({ require("mason-lspconfig").setup_handlers({
-- default handler -- default handler
@ -45,14 +45,11 @@ return {
end, end,
["ltex"] = function() ["ltex"] = function()
require("lspconfig")["ltex"].setup({ require("lspconfig")["ltex"].setup(lsp.default_config)
on_attach = function(_, _) require("ltex_extra").setup({
require("ltex_extra").setup({ load_langs = { "es-AR", "en-US" },
load_langs = { "es-AR", "en-US" }, init_check = true,
init_check = true, path = vim.fn.stdpath("data") .. "/dictionary",
path = vim.fn.stdpath("data") .. "/dictionary",
})
end,
}) })
end, end,
@ -159,6 +156,9 @@ return {
local null_ls = require("null-ls") local null_ls = require("null-ls")
null_ls.setup({ null_ls.setup({
sources = { 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.beautysh,
null_ls.builtins.formatting.stylua.with({ null_ls.builtins.formatting.stylua.with({
extra_args = { "--indent-type", "spaces" }, extra_args = { "--indent-type", "spaces" },

Loading…
Cancel
Save