qol changes to formatters/keymaps

This commit is contained in:
kossLAN 2025-06-04 13:55:59 -04:00
parent e54bd1fe69
commit f0b0787c91
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
7 changed files with 24 additions and 21 deletions

View file

@ -1,5 +1,5 @@
-- Exit if the language server isn't available
if vim.fn.executable('nixd') ~= 1 then
if vim.fn.executable('nil') ~= 1 then
return
end
@ -11,8 +11,8 @@ local root_files = {
local lsp = require('user.lsp')
vim.lsp.start {
name = 'nixd',
cmd = { 'nixd' },
name = 'nil',
cmd = { 'nil' },
root_dir = vim.fs.dirname(vim.fs.find(root_files, { upward = true })[1]),
capabilities = lsp.make_client_capabilities(),
on_attach = lsp.on_attach,