Compare commits
4 Commits
4b6a1a9a7c
...
435937ddb8
Author | SHA1 | Date | |
---|---|---|---|
435937ddb8 | |||
efaa05fe5d | |||
9787880ec5 | |||
0c1cd5e246 |
@ -156,6 +156,7 @@ return {
|
||||
{
|
||||
name = "lua-latex-symbols",
|
||||
option = { cache = true },
|
||||
max_item_count = 5,
|
||||
trigger_characters = { "\\" },
|
||||
},
|
||||
{ name = "zsh", max_item_count = 5 },
|
||||
|
@ -324,6 +324,10 @@ return {
|
||||
if capabilities.semanticTokensProvider and capabilities.semanticTokensProvider.full then
|
||||
require("hlargs").disable_buf(bufnr)
|
||||
end
|
||||
|
||||
if capabilities.inlayHintProvider and not vim.lsp.inlay_hint.is_enabled({ bufnr = bufnr }) then
|
||||
vim.lsp.inlay_hint.enable(true, { bufnr = bufnr })
|
||||
end
|
||||
end,
|
||||
})
|
||||
local lspconfig = require("lspconfig")
|
||||
@ -483,15 +487,22 @@ return {
|
||||
dap_debug_gui = true,
|
||||
})
|
||||
|
||||
lspconfig.nil_ls.setup({
|
||||
-- TODO: Make this more general, this will support my own NixOS config and dot file
|
||||
-- stuff, but not generally usable for other projects. Would be good to use something
|
||||
-- like `.nvim.lua` for this or whatever else works 🤷.
|
||||
lspconfig.nixd.setup({
|
||||
cmd = { "nixd", "--semantic-tokens=false" },
|
||||
settings = {
|
||||
["nil"] = {
|
||||
formatting = { command = { "nixfmt" } },
|
||||
nix = {
|
||||
maxMemoryMB = 60000,
|
||||
flake = {
|
||||
autoArchive = true,
|
||||
autoEvalInputs = true,
|
||||
nixd = {
|
||||
nixpkgs = {
|
||||
expr = "import <nixpkgs> { }",
|
||||
},
|
||||
formatting = {
|
||||
command = { "nixfmt" },
|
||||
},
|
||||
options = {
|
||||
home_manager = {
|
||||
expr = '(builtins.getFlake ("git+file://" + toString ./.)).homeConfigurations.price.options',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -32,6 +32,7 @@ in
|
||||
packages =
|
||||
with pkgs;
|
||||
[
|
||||
nixd
|
||||
inkscape
|
||||
sqlx-cli
|
||||
postgresql
|
||||
|
Loading…
Reference in New Issue
Block a user