broken-rust

This commit is contained in:
u2515h
2024-01-14 17:30:57 +01:00
parent 3368536455
commit 2a99ca3ef9
4 changed files with 13 additions and 156 deletions

View File

@@ -2,8 +2,6 @@ local deps = require("nvim-deps")
vim.opt.termguicolors = true
vim.notify = require("notify")
vim.notify.setup({background_colour = "#000000"})
local distant = require('distant')
distant:setup()
require("oil").setup()
local telescope = require('telescope.builtin')
vim.keymap.set('n', '<leader>ff', telescope.find_files, {})
@@ -132,21 +130,16 @@ lspconfig.typst_lsp.setup {
cmd = {(deps["typst-lsp_path"] .. "/bin/typst-lsp")},
settings = {
exportPdf = "onType", -- Choose onType, onSave or never.
serverPath = (deps["typst-lsp_path"] .. "/bin/typst-lsp"), -- Normally, there is no need to uncomment it.
serverPath = (deps["typst-lsp_path"] .. "/bin/typst-lsp") -- Normally, there is no need to uncomment it.
}
}
lspconfig.nil_ls.setup {
cmd = {(deps.nil_path .. "/bin/nil")},
-- https://github.com/oxalica/nil/blob/main/docs/configuration.md
settings = {
command = {
formatting = "nixpkgs-fmt", },
},
flake = {
autoArchive = true,
autoEvalInputs = true,
},
settings = {command = {formatting = "nixpkgs-fmt"}},
flake = {autoArchive = true, autoEvalInputs = true}
}
require("lsp-inlayhints").setup()
require("rust.lua")
require("completion")