This commit is contained in:
Zoe Roux
2022-06-13 17:47:07 +02:00
parent 6274b72637
commit d50ef51b6c
4 changed files with 33 additions and 3 deletions

View File

@@ -48,6 +48,15 @@ local server_settings = {
},
}
},
ltex = {
settings = {
ltex = {
dictionary = {
en = { ":~/.cache/nvim/ltex.dictionary.en-us.txt" },
},
},
},
},
}
lsp_installer.settings({

View File

@@ -63,6 +63,7 @@ return packer.startup(function(use)
use "folke/tokyonight.nvim"
use { "catppuccin/nvim", as = "catppuccin" }
use {
{ 'nvim-telescope/telescope.nvim', requires = { { 'nvim-lua/plenary.nvim' } } },

View File

@@ -14,7 +14,11 @@ gfold.setup({
vim.lsp.stop_client(vim.lsp.get_active_clients())
vim.cmd("e .")
end
}
},
status = {
enable = false,
},
cwd = vim.fn.getenv("HOME") .. "/projects",
})
local wk = require "which-key"

View File

@@ -22,7 +22,7 @@ local toggleterm = {
fmt = function(str) return string.format("%7s", str) end
},
},
lualine_b = {
lualine_b = {
function()
return 'ToggleTerm #' .. vim.b.toggle_number
end
@@ -50,7 +50,23 @@ lualine.setup({
lualine_b = {
{
"diagnostics",
sources = { "nvim_diagnostic" },
sources = {
function()
local diag_severity = vim.diagnostic.severity
local function workspace_diag(severity)
local count = vim.diagnostic.get(nil, { severity = severity })
return vim.tbl_count(count)
end
return {
error = workspace_diag(diag_severity.ERROR),
warn = workspace_diag(diag_severity.WARN),
info = workspace_diag(diag_severity.INFO),
hint = workspace_diag(diag_severity.HINT)
}
end,
},
sections = { "error", "warn" },
symbols = { error = "", warn = "" },
always_visible = false,