Skip to content

Commit

Permalink
Upates
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Nov 10, 2024
1 parent a1a17fd commit 8afead0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
24 changes: 21 additions & 3 deletions neovim/.config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ local servers = {
"linters",
"bin",
"ruff"
) .. " --quiet ${INPUT}",
) .. " check --quiet ${INPUT}",
lintStdin = true,
lintFormats = {
"%f:%l:%c: %m",
Expand Down Expand Up @@ -979,11 +979,20 @@ for _, server in pairs(servers) do
or function(startpath)
return vim.fs.root(startpath, { ".git" })
end
local capabilities =
vim.tbl_deep_extend("force", vim.lsp.protocol.make_client_capabilities(), {
workspace = {
didChangeWatchedFiles = {
dynamicRegistration = true,
},
},
})

vim.lsp.start({
name = server.name,
cmd = server.cmd,
on_attach = function(_, _) end,
capabilities = vim.lsp.protocol.make_client_capabilities(),
capabilities = capabilities,
settings = server.settings or vim.empty_dict(),
init_options = server.init_options and server.init_options(args.file) or vim.empty_dict(),
root_dir = root_dir(args.file),
Expand Down Expand Up @@ -1400,9 +1409,15 @@ require("lazy").setup({
vim.diagnostic.config({
underline = false,
update_in_insert = true,
virtual_text = { severity = vim.diagnostic.severity.ERROR },
virtual_text = {
severity = vim.diagnostic.severity.ERROR,
source = "if_many",
},
severity_sort = true,
signs = false,
jump = {
float = true,
},
})
vim.opt.foldenable = false
vim.opt.number = true
Expand Down Expand Up @@ -1461,6 +1476,9 @@ vim.filetype.add({
xacro = "xml",
install = "text",
repos = "yaml",
jinja = "jinja",
jinja2 = "jinja",
j2 = "jinja",
},
})

Expand Down
7 changes: 7 additions & 0 deletions scripts/.local/bin/myinstall
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ case "${1:-}" in
$0 fd
$0 repgrep
$0 pixi
$0 uv
$0 nvim nightly
$0 mold
$0 difftastic
Expand Down Expand Up @@ -428,6 +429,12 @@ case "${1:-}" in
rattler-build completion --shell=fish > ~/.config/fish/completions/rattler-build.fish
;;

uv)
curl -LsSf https://astral.sh/uv/install.sh | sh
echo 'uv generate-shell-completion fish | source' >> ~/.config/fish/config.fish
echo 'uvx --generate-shell-completion fish | source' >> ~/.config/fish/config.fish
;;

pixi)
wget https://github.com/prefix-dev/pixi/releases/latest/download/pixi-x86_64-unknown-linux-musl -O ~/.local/bin/pixi
chmod +x ~/.local/bin/pixi
Expand Down

0 comments on commit 8afead0

Please sign in to comment.