broken-rust
This commit is contained in:
15
init.lua
15
init.lua
@@ -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")
|
||||
|
Reference in New Issue
Block a user