dnvm: for dotnet
This commit is contained in:
parent
d0a3781717
commit
51274e2ac7
6
.bashrc
6
.bashrc
@ -42,8 +42,10 @@ function re_source() {
|
|||||||
|
|
||||||
export PAGER="less -R"
|
export PAGER="less -R"
|
||||||
|
|
||||||
export PATH=/Users/jwall/.local/bin/luna-studio:$PATH
|
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
export NVM_DIR="$HOME/.nvm"
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
|
if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then
|
||||||
|
. "$HOME/Library/Application Support/dnvm/env"
|
||||||
|
fi
|
||||||
|
4
.profile
4
.profile
@ -4,3 +4,7 @@ export PATH="/Users/jwall/Library/Application Support/edgedb/bin:$PATH"
|
|||||||
|
|
||||||
# added by Snowflake SnowSQL installer v1.2
|
# added by Snowflake SnowSQL installer v1.2
|
||||||
export PATH=/Applications/SnowSQL.app/Contents/MacOS:$PATH
|
export PATH=/Applications/SnowSQL.app/Contents/MacOS:$PATH
|
||||||
|
|
||||||
|
if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then
|
||||||
|
. "$HOME/Library/Application Support/dnvm/env"
|
||||||
|
fi
|
@ -9,4 +9,6 @@ bindkey '^R' history-incremental-search-backward
|
|||||||
[[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
[[ ! -r ~/.opam/opam-init/init.zsh ]] || source ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||||
|
|
||||||
# dotnet stuff
|
# dotnet stuff
|
||||||
[[ ! -d /usr/local/share/dotnet ]] || DOTNET_ROOT=/usr/local/share/dotnet PATH=$PATH:/usr/local/share/dotnet
|
if [ -f "$HOME/Library/Application Support/dnvm/env" ]; then
|
||||||
|
. "$HOME/Library/Application Support/dnvm/env"
|
||||||
|
fi
|
||||||
|
@ -40,6 +40,7 @@
|
|||||||
};
|
};
|
||||||
roslyn-lsp = {
|
roslyn-lsp = {
|
||||||
url = "github:zaphar/roslyn.nvim/non_nightly";
|
url = "github:zaphar/roslyn.nvim/non_nightly";
|
||||||
|
#url = "github:jmederosalvarado/roslyn.nvim";
|
||||||
flake = false;
|
flake = false;
|
||||||
};
|
};
|
||||||
heracles-flake.url = "github:zaphar/Heracles";
|
heracles-flake.url = "github:zaphar/Heracles";
|
||||||
@ -297,6 +298,7 @@ EOF";
|
|||||||
mkcert
|
mkcert
|
||||||
kubo
|
kubo
|
||||||
#dotnet-sdk_7
|
#dotnet-sdk_7
|
||||||
|
#dotnet-sdk_8
|
||||||
#netcoredbg
|
#netcoredbg
|
||||||
powershell
|
powershell
|
||||||
unstablePkgs.ocaml
|
unstablePkgs.ocaml
|
||||||
|
@ -136,45 +136,45 @@ lspconfig.nil_ls.setup {
|
|||||||
capabilities = caps,
|
capabilities = caps,
|
||||||
}
|
}
|
||||||
|
|
||||||
--require('roslyn').setup({
|
require('roslyn').setup({
|
||||||
-- on_attach = function (client, _)
|
on_attach = function (client, _)
|
||||||
-- --vim.notify(vim.inspect(client))
|
--vim.notify(vim.inspect(client))
|
||||||
-- end,
|
end,
|
||||||
-- capabilities = caps,
|
capabilities = caps,
|
||||||
-- log_level = "Trace",
|
log_level = "Trace",
|
||||||
--});
|
});
|
||||||
|
|
||||||
local vim_pid = vim.fn.getpid()
|
local vim_pid = vim.fn.getpid()
|
||||||
|
|
||||||
-- "FormatterOptions:EnableEditorConfigSupport=true"
|
-- "FormatterOptions:EnableEditorConfigSupport=true"
|
||||||
local omnisharp_cmd = { 'omnisharp', '--languageserver', '-v', '--hostPID', tostring(vim_pid), }
|
--local omnisharp_cmd = { 'omnisharp', '--languageserver', '-v', '--hostPID', tostring(vim_pid), }
|
||||||
|
|
||||||
local function toSnakeCase(str)
|
local function toSnakeCase(str)
|
||||||
return string.gsub(str, "%s*[- ]%s*", "_")
|
return string.gsub(str, "%s*[- ]%s*", "_")
|
||||||
end
|
end
|
||||||
|
|
||||||
lspconfig.omnisharp.setup {
|
--lspconfig.omnisharp.setup {
|
||||||
cmd = omnisharp_cmd,
|
-- cmd = omnisharp_cmd,
|
||||||
enable_roslyn_analyzers = true,
|
-- enable_roslyn_analyzers = true,
|
||||||
enable_editorconfig_support = true,
|
-- enable_editorconfig_support = true,
|
||||||
enable_import_completion = true,
|
-- enable_import_completion = true,
|
||||||
-- Omnisharp has issues with the semanticTokens feature we need to massage it a bit.
|
-- -- Omnisharp has issues with the semanticTokens feature we need to massage it a bit.
|
||||||
on_attach = function(client, bufnr)
|
-- on_attach = function(client, bufnr)
|
||||||
-- https://github.com/OmniSharp/omnisharp-roslyn/issues/2483#issuecomment-1492605642
|
-- -- https://github.com/OmniSharp/omnisharp-roslyn/issues/2483#issuecomment-1492605642
|
||||||
local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers
|
-- local tokenModifiers = client.server_capabilities.semanticTokensProvider.legend.tokenModifiers
|
||||||
for i, v in ipairs(tokenModifiers) do
|
-- for i, v in ipairs(tokenModifiers) do
|
||||||
tokenModifiers[i] = toSnakeCase(v)
|
-- tokenModifiers[i] = toSnakeCase(v)
|
||||||
end
|
-- end
|
||||||
local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes
|
-- local tokenTypes = client.server_capabilities.semanticTokensProvider.legend.tokenTypes
|
||||||
for i, v in ipairs(tokenTypes) do
|
-- for i, v in ipairs(tokenTypes) do
|
||||||
tokenTypes[i] = toSnakeCase(v)
|
-- tokenTypes[i] = toSnakeCase(v)
|
||||||
end
|
-- end
|
||||||
end,
|
-- end,
|
||||||
handlers = {
|
-- handlers = {
|
||||||
["textDocument/definition"] = require('omnisharp_extended').handler,
|
-- ["textDocument/definition"] = require('omnisharp_extended').handler,
|
||||||
},
|
-- },
|
||||||
capabilities = caps,
|
-- capabilities = caps,
|
||||||
}
|
--}
|
||||||
|
|
||||||
--ocaml
|
--ocaml
|
||||||
lspconfig.ocamllsp.setup {
|
lspconfig.ocamllsp.setup {
|
||||||
|
@ -26,7 +26,7 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
options.services.durnitisp = {
|
options.services.durnitisp = {
|
||||||
enable = mkEnableOption "Enable the heracles server";
|
enable = mkEnableOption "Enable the durnitisp server";
|
||||||
listen = mkOption {
|
listen = mkOption {
|
||||||
description = "[host]:port to listen on for the durnitisp metrics server";
|
description = "[host]:port to listen on for the durnitisp metrics server";
|
||||||
default = "localhost:9002";
|
default = "localhost:9002";
|
||||||
@ -138,7 +138,11 @@ with lib;
|
|||||||
"--listenHost=${config.services.durnitisp.listen}"
|
"--listenHost=${config.services.durnitisp.listen}"
|
||||||
];
|
];
|
||||||
|
|
||||||
KeepAlive = true;
|
KeepAlive = {
|
||||||
|
NetworkState = true;
|
||||||
|
};
|
||||||
|
#StandardOutPath = "/var/log/durnitisp.log";
|
||||||
|
#StandardErrorPath = "var/log/durnitisp.err.log";
|
||||||
RunAtLoad = true;
|
RunAtLoad = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user