Browse Source

feat: update dotfiles for jackapp support

master
Tovi Jaeschke-Rogers 3 weeks ago
parent
commit
0ee131283c
7 changed files with 17 additions and 39 deletions
  1. +7
    -2
      .config/X11/Xresources
  2. +4
    -0
      .config/nvim/lua/core/remaps.lua
  3. +0
    -33
      .config/nvim/lua/plugins/linting.lua
  4. +1
    -1
      .config/nvim/lua/plugins/lspconfig.lua
  5. +2
    -2
      .config/nvim/lua/plugins/neotest.lua
  6. +2
    -0
      .local/bin/dwm-autostart
  7. +1
    -1
      .local/bin/scale-external-display.sh

+ 7
- 2
.config/X11/Xresources View File

@ -1,2 +1,7 @@
# For laptop screen scale
Xft.dpi: 144
Xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintslight
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

+ 4
- 0
.config/nvim/lua/core/remaps.lua View File

@ -58,3 +58,7 @@ vim.keymap.set(
) )
vim.keymap.set("t", "<C-space>", "<C-\\><C-n>", { silent = true }) vim.keymap.set("t", "<C-space>", "<C-\\><C-n>", { silent = true })
vim.keymap.set("n", "<leader>e", function() vim.cmd("edit notes.ignore.md") end)
vim.keymap.set("n", "<leader>.a", function() vim.cmd("edit app/api/.env") end)
vim.keymap.set("n", "<leader>.f", function() vim.cmd("edit app/frontend/.env.development.local") end)

+ 0
- 33
.config/nvim/lua/plugins/linting.lua View File

@ -51,39 +51,6 @@ return {
end, end,
} }
-- lint.linters.eslint_d = {
-- name = "eslint_d",
-- cmd = "eslint_d",
-- args = {
-- '--config=./frontend/.eslintrc.js',
-- '--no-warn-ignored',
-- '--format',
-- 'json',
-- '--stdin',
-- '--stdin-filename',
-- function()
-- return vim.api.nvim_buf_get_name(0)
-- end,
-- },
-- parser = function(output, _)
-- local diagnostics = {}
-- local decoded = vim.json.decode(output)
-- for _, message in ipairs(decoded[1].messages or {}) do
-- table.insert(diagnostics, {
-- lnum = message.line - 1,
-- end_lnum = message.endLine and message.endLine - 1 or nil,
-- col = message.column - 1,
-- end_col = message.endColumn and message.endColumn - 1 or nil,
-- message = message.message,
-- code = message.ruleId,
-- source = "eslint_d",
-- severity = severities[message.severity],
-- })
-- end
-- return diagnostics
-- end,
-- }
lint.linters_by_ft = { lint.linters_by_ft = {
javascript = { "eslint" }, javascript = { "eslint" },
typescript = { "eslint" }, typescript = { "eslint" },


+ 1
- 1
.config/nvim/lua/plugins/lspconfig.lua View File

@ -102,7 +102,7 @@ return {
local global_ts = base_path .. "/typescript/lib" local global_ts = base_path .. "/typescript/lib"
local found_ts = "" local found_ts = ""
local function check_dir(path) local function check_dir(path)
found_ts = table.concat({path, "node_modules", "typescript", "lib"}, "/")
found_ts = table.concat({path, "typescript", "lib"}, "/")
if vim.loop.fs_stat(found_ts) then if vim.loop.fs_stat(found_ts) then
return path return path
end end


+ 2
- 2
.config/nvim/lua/plugins/neotest.lua View File

@ -58,8 +58,8 @@ return {
adapters = { adapters = {
require("neotest-phpunit")({ require("neotest-phpunit")({
root_files = { "phpunit.xml", "composer.json" }, root_files = { "phpunit.xml", "composer.json" },
phpunit_cmd = { "docker", "compose", "exec", "fpm", "./vendor/bin/phpunit" },
-- phpunit_cmd = { "docker", "compose", "exec", "app-fpm", "./vendor/bin/phpunit" },
-- phpunit_cmd = { "docker", "compose", "exec", "fpm", "./vendor/bin/phpunit" },
phpunit_cmd = { "docker", "compose", "exec", "app-fpm", "./vendor/bin/phpunit" },
filter_dirs = { "vendor" }, filter_dirs = { "vendor" },
mapped_docker_dir = "/var/www", mapped_docker_dir = "/var/www",
append_to_cwd = "/api", append_to_cwd = "/api",


+ 2
- 0
.local/bin/dwm-autostart View File

@ -8,3 +8,5 @@ xsetroot -solid "#1A1A22"
# nohup /usr/lib/kdeconnectd >/dev/null 2>&1 & # nohup /usr/lib/kdeconnectd >/dev/null 2>&1 &
nohup dwmblocks & nohup dwmblocks &
~/.screenlayout/office.sh

+ 1
- 1
.local/bin/scale-external-display.sh View File

@ -1,3 +1,3 @@
#!/bin/bash #!/bin/bash
xrandr --output DP-3-1 --scale 1.5x1.5
xrandr --output HDMI-1 --scale 1.5x1.5

Loading…
Cancel
Save