summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
author2025-02-04 00:30:21 +0530
committer2025-02-04 00:30:21 +0530
commitcc32601238029a06bf9a9817514dfbfb3d48b126 (patch)
treed5faa6dea7ae45d8fb60d770d6fc96e3ac2d4821 /.local
parentUpdate plugins (diff)
downloaddotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.tar
dotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.tar.gz
dotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.tar.bz2
dotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.tar.lz
dotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.tar.xz
dotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.tar.zst
dotfiles-cc32601238029a06bf9a9817514dfbfb3d48b126.zip
Update neovim and added static http-server
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/http-static31
m---------.local/share/nvim/site/pack/plugins/start/conform0
m---------.local/share/nvim/site/pack/plugins/start/lazydev0
m---------.local/share/nvim/site/pack/plugins/start/mason-lspconfig0
m---------.local/share/nvim/site/pack/plugins/start/nvim-cmp0
m---------.local/share/nvim/site/pack/plugins/start/nvim-lspconfig0
m---------.local/share/nvim/site/pack/plugins/start/nvim-treesitter0
7 files changed, 31 insertions, 0 deletions
diff --git a/.local/bin/http-static b/.local/bin/http-static
new file mode 100755
index 0000000..7e6fa55
--- /dev/null
+++ b/.local/bin/http-static
@@ -0,0 +1,31 @@
+#!/usr/bin/env python3
+
+from argparse import ArgumentParser
+from collections.abc import Sequence
+from typing import Optional
+from pathlib import Path
+from http.server import SimpleHTTPRequestHandler,ThreadingHTTPServer
+import sys
+
+def serve(bind, port, directory):
+ def handler(request, client_address, server):
+ return SimpleHTTPRequestHandler(request, client_address, server, directory=directory)
+
+ with ThreadingHTTPServer((bind, port), handler) as httpd:
+ print(*httpd.socket.getsockname())
+ try:
+ httpd.serve_forever()
+ except KeyboardInterrupt:
+ return
+
+
+def main(argv: Optional[Sequence[str]] = None):
+ parser = ArgumentParser()
+ parser.add_argument('-b', '--bind', metavar='ADDRESS', default='', help='bind to this address')
+ parser.add_argument('-p', '--port', default=8080, type=int, help='bind to this port')
+ parser.add_argument('directory', type=Path, default=Path.cwd(), nargs="?", help='serve this directory')
+ args = parser.parse_args(argv)
+ serve(**vars(args))
+
+if __name__ == '__main__':
+ sys.exit(main())
diff --git a/.local/share/nvim/site/pack/plugins/start/conform b/.local/share/nvim/site/pack/plugins/start/conform
-Subproject 70019124aa4f2e6838be9fbd2007f6d13b27a96
+Subproject 363243c03102a531a8203311d4f2ae704c620d9
diff --git a/.local/share/nvim/site/pack/plugins/start/lazydev b/.local/share/nvim/site/pack/plugins/start/lazydev
-Subproject 8620f82ee3f59ff2187647167b6b47387a13a01
+Subproject a1b78b2ac6f978c72e76ea90ae92a94edf380cf
diff --git a/.local/share/nvim/site/pack/plugins/start/mason-lspconfig b/.local/share/nvim/site/pack/plugins/start/mason-lspconfig
-Subproject 97d9f1d3ad205dece6bcafd1d71cf1507608f3c
+Subproject f75e877f5266e87523eb5a18fcde2081820d087
diff --git a/.local/share/nvim/site/pack/plugins/start/nvim-cmp b/.local/share/nvim/site/pack/plugins/start/nvim-cmp
-Subproject 8c82d0bd31299dbff7f8e780f5e06d2283de967
+Subproject 12509903a5723a876abd65953109f926f4634c3
diff --git a/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig b/.local/share/nvim/site/pack/plugins/start/nvim-lspconfig
-Subproject 88157521e890fe7fdf18bee22438875edd6300a
+Subproject 00b236b795acfb79339bd6771488c155073a288
diff --git a/.local/share/nvim/site/pack/plugins/start/nvim-treesitter b/.local/share/nvim/site/pack/plugins/start/nvim-treesitter
-Subproject 097fb77312c731347180e8907424f6c967323f0
+Subproject 4e701776f8824fc188a6254f57d080971ce28c9