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