mirror of
https://github.com/zoriya/dotfiles.git
synced 2025-12-06 06:36:17 +00:00
qol
This commit is contained in:
@@ -48,6 +48,15 @@ local server_settings = {
|
||||
},
|
||||
}
|
||||
},
|
||||
ltex = {
|
||||
settings = {
|
||||
ltex = {
|
||||
dictionary = {
|
||||
en = { ":~/.cache/nvim/ltex.dictionary.en-us.txt" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
lsp_installer.settings({
|
||||
|
||||
@@ -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' } } },
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user