Compare commits
No commits in common. "5c90dfb6d12ed5a6ef44d0f0ced40abab4da2028" and "ad7190446c96156d788e63252e4bf20728c3e364" have entirely different histories.
5c90dfb6d1
...
ad7190446c
4 changed files with 11 additions and 33 deletions
|
@ -18,11 +18,9 @@
|
|||
(aucmd :LspAttach {:callback (fn [args]
|
||||
(let [client (vim.lsp.get_client_by_id args.data.client_id)
|
||||
bufnr args.buf]
|
||||
(when (client.supports_method :textDocument/documentSymbol
|
||||
{: bufnr})
|
||||
(when (client.supports_method :textDocument/documentSymbol)
|
||||
(navic.attach client bufnr))
|
||||
(when (client.supports_method :textDocument/inlayHint
|
||||
{: bufnr})
|
||||
(when (client.supports_method :textDocument/inlayHint)
|
||||
(vim.lsp.inlay_hint.enable bufnr true)
|
||||
(setup-inlay-hint-toggle bufnr))
|
||||
(diagnostic.maybe-enable-lsp client bufnr)))
|
||||
|
@ -43,6 +41,7 @@
|
|||
:cssls
|
||||
:dockerls
|
||||
:erlangls
|
||||
:eslint
|
||||
:fennel_ls
|
||||
:html
|
||||
:jsonls
|
||||
|
|
|
@ -33,16 +33,13 @@
|
|||
(.. project-root :/config/checkstyle/checkstyle.xml)))
|
||||
(set fennel.globals [:vim :wezterm]))
|
||||
;; Configure Linters per FT
|
||||
(set lint.linters_by_ft
|
||||
{:dockerfile [:hadolint]
|
||||
:elixir [:credo]
|
||||
:fennel [:fennel]
|
||||
:fish [:fish]
|
||||
:java [:checkstyle]
|
||||
:nix [:deadnix :nix :statix]
|
||||
:sh [:shellcheck]
|
||||
:typescript [:eslint]
|
||||
:typescriptreact [:eslint]})
|
||||
(set lint.linters_by_ft {:dockerfile [:hadolint]
|
||||
:elixir [:credo]
|
||||
:fennel [:fennel]
|
||||
:fish [:fish]
|
||||
:java [:checkstyle]
|
||||
:nix [:deadnix :nix :statix]
|
||||
:sh [:shellcheck]})
|
||||
|
||||
(fn setup-linting [opts]
|
||||
(diagnostic.maybe-enable-diagnostics opts.buf)
|
||||
|
|
|
@ -19,12 +19,7 @@
|
|||
|
||||
history_filter = [
|
||||
"^base64decode"
|
||||
"^instagram-dl"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
programs.fish.shellInit = ''
|
||||
set -x fish_history ""
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -9,14 +9,8 @@
|
|||
settings = {
|
||||
add_newline = true;
|
||||
|
||||
character = {
|
||||
success_symbol = "[](bold green)";
|
||||
error_symbol = "[](bold red)";
|
||||
};
|
||||
|
||||
cmd_duration = {
|
||||
style = "yellow";
|
||||
format = "[ $duration]($style)";
|
||||
format = "\\[[ $duration]($style)\\]";
|
||||
};
|
||||
|
||||
docker_context = {
|
||||
|
@ -108,9 +102,6 @@
|
|||
username = {
|
||||
format = "\\[[ $user]($style)\\]";
|
||||
};
|
||||
|
||||
format = "$all";
|
||||
right_format = "$cmd_duration";
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -118,9 +109,5 @@
|
|||
function starship_transient_prompt_func
|
||||
starship module character
|
||||
end
|
||||
|
||||
function starship_transient_rprompt_func
|
||||
starship module cmd_duration
|
||||
end
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue