Commit graph

27 commits

Author SHA1 Message Date
Smirnov Oleksandr
a0cda75dd5 refactor(log): some types 2024-05-03 21:41:18 +03:00
Smirnov Oleksandr
5ea71be825 feat(log): add easy way to open log 2024-05-02 23:41:52 +03:00
Smirnov Oleksandr
385b951938 refactor(log): dont give a thing about var that is not even declared 2024-04-17 18:35:49 +03:00
Smirnov Oleksandr
a293b9e8d3 feat: LOGGER™ 2024-04-17 18:32:32 +03:00
Smirnov Oleksandr
a2710261bf refactor(utils): log notifications 2024-04-17 01:57:52 +03:00
Smirnov Oleksandr
517150e5c2 refactor(logger): add some type annotations 2024-04-17 01:56:56 +03:00
Smirnov Oleksandr
c43b33cb60 refactor(log, utils): get plugin name from config 2024-04-17 01:53:14 +03:00
Smirnov Oleksandr
1bd95bf18b refactor(utils): remove unused code 2024-04-17 01:51:05 +03:00
Smirnov Oleksandr
4d2f9a23e0 feat(log): add logger module 2024-04-17 01:34:00 +03:00
Smirnov Oleksandr
afb383c913
refactor(health): keep in mind new way of health check (#63) 2024-04-04 17:31:43 +03:00
Smirnov Oleksandr
2e89cea6f3 refactor: commands runner (#42)
* feat(utils): first impl of own commands runner

* refactor(gotests): uses own runner instead of vendored

* refactor(utils): back to plenary.job

* refactor(gotests): use new runner, clean code

* fix(runner): now it returns output correctly

* refactor(iferr): use vim.system

i have tried to use _utils.runner, but i can't figure out how to make `< file.go` for the command

* refactor(impl): use new runner

* refactor(installer): use new runner

* refactor(struct_tags): use new runner

* refactor: commands such as :GoGet runs with new runner

* refactor: throw errors in more lua way, i think

* refactor(utils): notify now has title

* refactor: use more correct way of notifying

* refactor(runner): write error message on error
2023-08-10 12:11:26 +03:00
Smirnov Oleksandr
5f8466d043
run tests independent of user nvim setup (#39)
* chore(lua_ls): now lua_ls knows about testing functions

* spec: change way how tests srtuctured

* test(config): refactor tests

* test: utils

* refactor(utils): remove not used function

* chore(ci): add test runner

* chore(ci): remove taskfile from deps

* fix: now it works
2023-07-21 02:57:46 +03:00
Smirnov Oleksandr
26b41bf68c
refactor of public plugin's api (#37)
* refactor: move all plugin functionality to init.lua

* fix(commands): now it uses correct module paths

* refactor(config): change way how it handles options

* refactor(gotests): use correct config, change way how deps required, fix some typos

* fix(healthchecker): use correct config

* refactor(iferr): change api

* refactor(impl): change api

* refactor(installer): change api

* refactor(struct_tags): change way of importting deps

* refactor(struct_tags): rename M to struct_tags

* run stylua

* refactor(dap): make it all in one file, and make some refactoring

* refactor(_utils): change way how it organizes

* fix: use new _utils api

* refactor(_utils.health): reorganize module

* refactor(_utils.ts): some renameing, moving requires lines

* run stylua
2023-07-19 23:38:23 +03:00
Smirnov Oleksandr
9d6bc761d4
healthcheck: refactoring, remove deprecation wanings (#35)
* refactor(checkhealth): remove deprecation warnings, complete rewrite

* refactor(checkhealth): rename util file

* style(healthchecker): reformat lua in vim file

* refactor(health): move all report function into table
2023-07-17 18:31:21 +03:00
Elliott Minns
03cabf675c
Resolve Neovim Deprecations for version 0.10 (#26)
* fix deprecation warnings for treesitter parse_query

* use treesitter.query.parse

* fix get_node_text deprecation
2023-05-07 17:56:26 +03:00
Smirnov Oleksandr
2f0edbfdfc
refactor: move requires in place where they used (#22)
* refactor(comment): move require to a function

* refactor(gotests): move requires inside of functions

* refactor(health): move requires inside of function

* refactor(iferr): move requires inside of a function

* refactor(impl): move some requires inside of functions

* refactor(installer): move requires inside of function

* refactor(struct_tags): move requires into function

* refactor(dap): move import into function

* refactor(utils): move import into functions
2022-12-19 11:47:43 +02:00
Smirnov Oleksandr
f835464d7f
Some refactoring (#20)
* feat: move all lua api into `api` module

* feat: remove boilerplate code, add go work suport

* refactor(utils): separete module for health

* refactor(dap): remove copy-paste code

* fix: comment

* chore(lsp): disable type checking

* feat: add `go work` command
2022-10-07 14:31:54 +00:00
Smirnov Oleksandr
413efcc9f2 feat(dap): fist naive implementaion 2022-09-22 17:28:04 +03:00
Smirnov Oleksandr
0fcdceeb89
Add comment generator (#10)
* feat(_utils.ts): get package

* feat(_utils.ts): get interface

* feat(_utils.ts): update type annotations

* feat(comments): first naive implementation

* docs: add comment [skip ci]
2022-06-30 12:00:13 +03:00
Smirnov Oleksandr
ebb3894b3b fix(_utils): set notification level 2022-06-27 14:30:02 +03:00
Smirnov Oleksandr
2adbb49064 refactor(_utils): notify by vim.notify in _utils 2022-06-25 12:00:58 +03:00
Smirnov Oleksandr
0b415c32e8 refactor: migrate to vim.notify from prints 2022-06-24 15:27:08 +03:00
Smirnov Olexander
250d4de718 refactor: add comments & update type anotation 2022-06-22 14:42:14 +03:00
Smirnov Olexander
8b3c68e38a feat(gotests): add generate one test
docs(gotests): add generate one test
2022-06-21 17:51:59 +03:00
Smirnov Olexander
f507a37a72 feat: add health checker 2022-06-07 01:08:33 +03:00
Smirnov Olexander
303b539475 feat: add gomodifytags support 2022-05-30 23:34:09 +03:00
Smirnov Olexander
08f3d2f88f feat: add treesitter utils 2022-05-30 23:33:14 +03:00