From 7dd544193d51d43d8362ebfa5f1d0c9f3cf6e37a Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 31 Mar 2023 07:46:57 +0100 Subject: [PATCH] feat(nvim): random stuff, who knows really --- dot_config/nvim/lua/extra/feline.lua | 36 ++++++++++++++-------------- dot_config/nvim/lua/plugins/lsp.lua | 18 +++++++------- 2 files changed, 27 insertions(+), 27 deletions(-) diff --git a/dot_config/nvim/lua/extra/feline.lua b/dot_config/nvim/lua/extra/feline.lua index a10a71c..58b6b78 100644 --- a/dot_config/nvim/lua/extra/feline.lua +++ b/dot_config/nvim/lua/extra/feline.lua @@ -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 diff --git a/dot_config/nvim/lua/plugins/lsp.lua b/dot_config/nvim/lua/plugins/lsp.lua index c9015ff..f8b2182 100644 --- a/dot_config/nvim/lua/plugins/lsp.lua +++ b/dot_config/nvim/lua/plugins/lsp.lua @@ -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,14 +45,11 @@ return { end, ["ltex"] = function() - require("lspconfig")["ltex"].setup({ - on_attach = function(_, _) - require("ltex_extra").setup({ - load_langs = { "es-AR", "en-US" }, - init_check = true, - path = vim.fn.stdpath("data") .. "/dictionary", - }) - end, + 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, @@ -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" },