Commit graph

240 commits

Author SHA1 Message Date
kylo252
47ebd70817
Add LunarVim info panel (Experimental) (#1241)
* feat: lunarvim info (Experimental)

* Add missing providers info

* Use nvim api directly to create the popup

* width tweaks
2021-08-06 16:27:19 +02:00
grvxs
9fc6a2e1cd
fix: typos in lua/ 2021-08-06 16:50:25 +05:30
kylo252
67de24227f
chore: remove unncessary logic from utils (#1238) 2021-08-05 10:35:58 -04:00
kylo252
76a16b6676
stop registering duplicate null-ls providers (#1240) 2021-08-05 10:34:25 -04:00
Pasi Bergman
db19d4c13c
[Bugfix]: Don't override formatter with empty exe (#1224)
* fix(lsp): don't override formatter with empty exe

* Check for nil value
2021-08-04 09:12:01 -04:00
kylo252
7cd03ff4e3
chore: minor cleanup to root_dir comments (#1222) 2021-08-04 11:05:51 +04:30
Abouzar Parvan
e504e1f08c
fix formatting and linting (#1220) 2021-08-04 05:28:24 +00:00
christianchiarulli
6c6fb67a88 use old vim rooter logic, fallback on new way if vimrooter is disabled 2021-08-03 23:02:09 -04:00
kylo252
4c3c3f3885
feat: add lvim.lsp.smart_cwd (#1218)
- Enable querying the language-server for the `root_dir`
- Use `root_dir` to set the current working-directory (CWD)
- Make vim-rooter configurable and add an option to disable it

Inspired by "ahmedkhalf/lsp-rooter.nvim"
2021-08-03 12:10:54 -04:00
Will Leinweber
fc018cdc47
Fix lsp reporting when v.source is nil (#1209) 2021-08-03 00:51:32 -04:00
kylo252
77e283bd9c
[Refactor] Allow editing default keymaps (#1213) 2021-08-02 17:42:56 -04:00
Abouzar Parvan
fbbf1b22a4
fix the formatting :pepehands: (#1208) 2021-08-01 20:51:53 +00:00
Chris
0e05f05e9d respect override table 2021-08-01 15:13:56 -04:00
kylo252
e2dd993ce7
refactor null-ls (#1202) 2021-08-01 10:02:10 +00:00
Abouzar Parvan
30ad4b81f5
Hotfix/eslint d (#1198) 2021-08-01 09:57:15 +00:00
christianchiarulli
8ee070833e fix linter present when executable not found 2021-07-31 19:45:42 -04:00
Abouzar Parvan
2badb25f36
why is eslint_d so bad (#1192) 2021-07-31 15:56:25 +00:00
Abouzar Parvan
c4bff33745
show the actual command (#1191) 2021-07-31 15:42:12 +00:00
Abouzar Parvan
de200da87d
fix eslint_d issue (#1189) 2021-07-31 15:29:52 +00:00
Luc Sinet
fe5daa722f
[Feature] Expose lsp config (#1156) 2021-07-31 14:12:29 +00:00
Geet Sethi
cf16a2e826
Add the better peek functions (#1172) 2021-07-31 13:44:08 +00:00
kylo252
8157f50d13
feat: get null-ls registered providers by filetype (#1186) 2021-07-31 13:04:22 +00:00
kylo252
f36082da0d
feat: add diagnostics source name (#1147) 2021-07-31 12:52:25 +00:00
kylo252
d977e7384e
cleanup formatting handler (#1185) 2021-07-31 08:19:57 +00:00
Abouzar Parvan
2db171eee4
fix luacheck issues (#1184) 2021-07-31 07:45:01 +00:00
Chris
5646462a50 fix format_handler 2021-07-31 00:07:47 -04:00
kylo252
9d89929d9b
Enable querying lang-server formatting capabilities (#1078) 2021-07-31 00:06:08 -04:00
Pasi Bergman
3eaf6d461c
fix: Use null-ls eslint diagnostics config with eslint_d exe (#1159) 2021-07-29 17:33:03 +04:30
aaronsms
9e4a2c4516 fix: change peekDefinition method location 2021-07-29 17:04:03 +08:00
Chris
667bc9a227 fix null-ls 2021-07-29 02:01:15 -04:00
Chris
045fb1425b require when needed 2021-07-29 01:47:20 -04:00
Chris
d1ca23af34 move lsp autocommand 2021-07-28 19:18:30 -04:00
Chris
56c21c60e0 require at the top 2021-07-28 19:16:45 -04:00
Chris
3ee44cb393 service was a good idea, thank you tasty 2021-07-28 19:13:07 -04:00
Chris
ed71e50593 refactor capabilites function 2021-07-28 19:03:29 -04:00
Chris
f73da2a1b2 use utils in null-ls 2021-07-28 17:24:55 -04:00
Chris
2e3a07480f move istable and isstring to utils 2021-07-28 17:24:05 -04:00
Chris
15eaebff92 refactor lsp keybinds 2021-07-28 17:20:25 -04:00
Chris
78dd92b616 more refactor 2021-07-28 17:15:35 -04:00
Chris
f220dc4893 begin lsp refactor 2021-07-28 17:13:50 -04:00
Abouzar Parvan
21971cbed5
null-ls formatter name is different from its command (#1141)
* null-ls formatter name is different from it's command

* add more language support

* nil is unnecessary
2021-07-28 11:03:49 -04:00
Chris
a82fd81106 remove ts-tools 2021-07-27 10:50:49 -04:00
Chris
908ce4f51a don't remap tab, too much pain involved 2021-07-27 10:34:24 -04:00
devtoi
41b5a28624
Wrap lsp default_keybindings in function instead of load on 1st require (#1128)
Co-authored-by: Johan Melin <johan.melin@paradoxinteractive.com>
2021-07-27 10:29:40 -04:00
Chris
4d68c6eb78 don't break for .fish 2021-07-26 14:32:29 -04:00
Luc Sinet
12c0a7441e
[Refactor] remove lv prefix (#1112)
* Rename lv-utils into utils

* Move commands defined in utils into core/commands.lua
2021-07-26 13:14:23 -04:00
Christian Chiarulli
c512ac5683
only one formatter is allowed (#1095)
Co-authored-by: christianchiarulli <chrisatmachine@gmail.com>
2021-07-25 14:45:40 -04:00
christianchiarulli
924565feba fix csharp 2021-07-25 13:58:34 -04:00
kylo252
e37a511abc
Fix ignored user autocommands (#1090) 2021-07-25 11:55:19 +00:00
Abouzar Parvan
c94aac07cd
removed unused loop variable index 2021-07-25 11:36:46 +00:00
Abouzar Parvan
229720a1f6
removd unused loop variable index 2021-07-25 11:36:22 +00:00
Chris
e984fa3c93 some todos 2021-07-25 03:10:08 -04:00
Chris
b694a3ddc2 better logic for null-ls 2021-07-25 02:49:16 -04:00
Chris
425b312799 idk how python got there 2021-07-25 02:30:46 -04:00
Christian Chiarulli
1c3b80d041
implement language overrides (#1081)
Co-authored-by: Chris <chris@macbook.local>
2021-07-25 00:13:35 -04:00
Christian Chiarulli
98f8a77819
New contract (#1080)
Changes to the global config object

O is now lvim
user_plugins is now plugins
user_autocommands is now autocommands
No more lang specific plugins

Null-ls has replaced both formatter.nvim and nvim-lint
2021-07-24 21:17:11 -04:00
kylo252
840e07c7fc
[Feature] Make common_on_attach configurable (#1024) 2021-07-21 02:04:44 +04:30
PBird
ecb02ba7fe
fix document highlight bug for javascript,typescript... (#1017) 2021-07-19 21:14:44 +04:30
Luc Sinet
bdd6e0cf37
Fix reports from luacheck (#1031) 2021-07-19 20:42:59 +04:30
JVaverka
fe69c43d66
[Feature]: Add language server support for Julia (#423) (#918) 2021-07-19 12:03:57 +04:30
Ben Goldberg
849b28f153
Add setting to enable/disable the default lsp keybinds (#896) 2021-07-18 20:01:54 +00:00
Pasi Bergman
dd4dbdd184
[Bugfix] Fix tsserver lsp setup. Fix ts-fmt-lint setup (#1013) 2021-07-18 14:38:41 -04:00
christianchiarulli
a3f3f3b60c nil check for extended args 2021-07-18 14:10:15 -04:00
William Goulois
75fab5cea1
fix: diagnostics level for eslint and $ missing (#1001) 2021-07-17 09:46:31 -04:00
christianchiarulli
ad373002d8 this throws errors sometimes 2021-07-17 00:11:18 -04:00
christianchiarulli
30a9becf6d global virtualtext is respected for js 2021-07-16 18:32:43 -04:00
christianchiarulli
3550d7c06a update 2021-07-15 20:49:33 -04:00
christianchiarulli
a0900923cf more refactor 2021-07-14 16:27:08 -04:00
Chris
3214ffed7a language template 2021-07-14 12:54:26 -04:00
hui.liu
946b251233
Fix tsserver formatter not working (#925) 2021-07-14 11:35:25 +04:30
hui.liu
07199a3082
Allow override tsserver formatter args (#921) 2021-07-14 00:46:01 -04:00
hui.liu
3dfb4184b7
Add formatter for typescript and typescriptreact (#920) 2021-07-14 00:37:26 -04:00
Chris
f87e85a032 already namespaced, will also move these to a dir called language 2021-07-14 00:29:47 -04:00
Chris
2d65ffcff2 begine language refactor 2021-07-14 00:21:32 -04:00
christianchiarulli
3279553481 java default formatter 2021-07-13 20:57:58 -04:00
Abouzar Parvan
de7ec62f5f
Added default formatters (#908)
* added default formatters for a couple of langs

* fix: sugesstions from tastyep

* allow users to change default formatters

* suggestion: mellow pointed out the telescope issue

* we don't need to use formatter.setup
2021-07-13 19:49:36 -04:00
christianchiarulli
eceb656b4b poc with local prettier working 2021-07-13 00:48:37 -04:00
Pasi Bergman
ab103baf51
Set root_dir for efm-langserver configurations (#899) 2021-07-12 17:03:20 -04:00
Rafael
c41d900bb9
add function to preview definitions (#883)
* add function to preview definitions

* add funciton to preview types and implementations

* add borders

Co-authored-by: Abouzar Parvan <abzcoding@users.noreply.github.com>
2021-07-12 00:21:07 -04:00
Pasi Bergman
a7fb911586
Enable emmet-ls on vue filetype (#875) 2021-07-11 09:37:59 -04:00
William Goulois
26c5c74303
add eslint and eslint_d to efm (#877) 2021-07-11 09:36:35 -04:00
Abouzar Parvan
93379a2977
avoiding OCD attack with the help of folke/todo-comments (#839) 2021-07-10 17:34:20 -04:00
christianchiarulli
f30158d3e3 change formatter to exe 2021-07-10 14:53:01 -04:00
christianchiarulli
ff89ebd8e6 namespace document highlight under lsp 2021-07-10 02:38:38 -04:00
hui.liu
8717f4f9a9
Refactor tsserver-ls as a shared module (#806) 2021-07-09 08:08:17 -04:00
Abouzar Parvan
2866ba528c
fix styling issues (#811) 2021-07-09 08:07:25 -04:00
hui.liu
35e37f06da
Setup tailwindcss-ls (#729) 2021-07-06 12:18:03 -04:00
kjssad
5eed5cf3ec
Add borders to lsp popups (#686)
* feat(lsp): add single type border to hover popup

* feat(lsp): add single type border to signatureHelp

* feat(lsp): add border to line diagnostic popup

* feat(lsp): use global option to configure borders
2021-07-05 10:43:37 -04:00
Robin Kautz
bd9296c4e8
fixes condition to use local prettier (#678) 2021-07-05 03:21:41 -04:00
Chris
b4a9023c9e remove lspsaga 2021-07-05 02:57:06 -04:00
christianchiarulli
3376118304 emmet-ls technically doesn't support react 2021-07-04 22:56:20 -04:00
Chris
0b251be44c shelfing null-ls for now, seems to slow things down significantly 2021-07-04 22:49:47 -04:00
maxime50
d2324d14e1
Better JS/TS Development Experience (#667)
Co-authored-by: Maxime <m.romero@progtechinformatique.ca>
2021-07-04 18:22:10 -04:00
Chris
0d14b91e1e seems to disable everything we may have to use a more complicated method 2021-07-04 10:22:16 -04:00
rob
1ed7392534
Prevent startup errors on first run (#645) 2021-07-04 10:07:11 -04:00
christianchiarulli
a8ccb55260 eslint working (fixes) prettier working (with node modules) 2021-07-03 18:50:21 -04:00
James Walmsley
c05eaf4537
[LSP] key-bind - ca is the nvim default for "change around". (#602) 2021-07-03 11:36:36 -04:00
christianchiarulli
20ed47e21e lsp in ftplugin austonautomoy 2021-07-01 23:42:26 -04:00
Chris
e541ef5482 fix autoformatting 2021-06-30 22:09:18 -04:00
christianchiarulli
9e7ad60747 refactor autocommands 2021-06-30 18:45:40 -04:00