Commit Graph

151 Commits

Author SHA1 Message Date
Folke Lemaitre 33a3431768
fix: fixed some type annotations 2022-11-16 11:46:52 +01:00
Folke Lemaitre c8f95a7411
style: added a couple of annotations 2022-11-16 11:29:04 +01:00
Folke Lemaitre 68ea26422a
fix: fixed health text 2022-11-16 11:28:50 +01:00
Folke Lemaitre 67eb9862cf
fix: flatten translation lines before concatenating 2022-10-11 23:39:16 +02:00
Folke Lemaitre 97e73e017a
fix: commands 2022-10-11 23:35:14 +02:00
Folke Lemaitre 139cbbfc49
fix: renamed command from Settings to Neoconf 2022-09-21 22:08:34 +02:00
Folke Lemaitre 814ebc8667
docs: fix develop branch links 2022-09-18 22:14:14 +02:00
Folke Lemaitre 0214d1a854
fix: make translations deterministic 2022-09-18 22:11:39 +02:00
Folke Lemaitre c085805a1c
feat: added translations for cssls, html, jsonls, ltex, rust_analyzer & tsserver 2022-09-18 22:08:31 +02:00
Folke Lemaitre a2f83e40a9
fix: don't use filetype API. Use autocmd instead to make it work on 0.7.2 as well 2022-09-18 22:08:31 +02:00
Folke Lemaitre 334ae339d7
fix: return root_dir when found instead of fallbacks 2022-09-18 22:08:31 +02:00
Folke Lemaitre eb2bdbf10f
fix: fix file_patterns for autocmd BufWritePost 2022-09-18 22:08:31 +02:00
Folke Lemaitre 79133ab99e
fix: removed get_schema code. No longer needed. 2022-09-18 22:08:31 +02:00
Folke Lemaitre 657ca4c2bc
refactor: moved setup check to health 2022-09-17 20:44:51 +02:00
Folke Lemaitre 69cba885e1
feat: build import schemas based on main schema 2022-09-17 19:45:41 +02:00
Folke Lemaitre 762b2f1517
refactor: renamed config files from .nvim.settings.json to .neoconf.json 2022-09-17 18:01:54 +02:00
Folke Lemaitre efa50461a5
feat: move imported schema defs for jsonls to separate file 2022-09-17 18:01:54 +02:00
Folke Lemaitre 8a275c6cee
refactor: changed module name from nvim-settings to neoconf 2022-09-17 18:01:54 +02:00
Folke Lemaitre 5a291f89ae
fix: check on jq format error 2022-09-17 18:01:53 +02:00
Folke Lemaitre d3c4365d69
refactor: on longer needed 2022-09-17 18:01:53 +02:00
Folke Lemaitre 83b88fe260
refactor: generate index.json and use that for builds 2022-09-17 18:01:53 +02:00
Folke Lemaitre 5d6de20d89
style: fixed title for notify 2022-09-17 18:01:53 +02:00
Folke Lemaitre d846af1c6d
refactor: renamed module to nvim-settings 2022-09-17 18:01:52 +02:00
Folke Lemaitre 4700af98c6
feat: check if we're running 0.7.2 2022-09-16 10:13:49 +02:00
Folke Lemaitre b7b2e626e5
feat: added `util.has_lspconfig(server)` 2022-09-16 10:13:49 +02:00
Folke Lemaitre e33e8921a6
docs: auto-generate list of supported LSP servers for README.md 2022-09-12 00:11:10 +02:00
Folke Lemaitre fa06c07ab1
docs: first version 2022-09-11 23:53:00 +02:00
Folke Lemaitre 04b31c7994
feat: added check for loading order of lspconfig during setup 2022-09-11 23:33:36 +02:00
Folke Lemaitre d93f9bcab2
feat: added check for lua-dev to checkhealth 2022-09-11 23:00:04 +02:00
Folke Lemaitre c2f6a81071
feat: added checkhealth for settings.nvim 2022-09-11 22:56:57 +02:00
Folke Lemaitre 8e9e52d231
fix: better options for the float window 2022-09-11 22:26:38 +02:00
Folke Lemaitre 46e420c101
docs: added readme for used lua json library 2022-09-11 21:41:46 +02:00
Folke Lemaitre 2bc84de7f2
feat: added proper jsonc parser, with relaxed error handling of comments and extra commas 2022-09-11 21:39:05 +02:00
Folke Lemaitre 2cc0287ec5
feat: apply filetype jsonc instead of json for settings files, to allow comments 2022-09-11 21:15:54 +02:00
Folke Lemaitre 94b9aee923
refactor: initial_config 2022-09-11 21:15:15 +02:00
Folke Lemaitre d970db012f
fix: properly check if given server is part of lspconfig 2022-09-11 21:15:00 +02:00
Folke Lemaitre f5400aa818
feat: added translations for jsonls schema 2022-09-11 20:55:41 +02:00
Folke Lemaitre 5dac4bd276
refactor: commands.get_files 2022-09-11 19:47:13 +02:00
Folke Lemaitre 85cad63cda
fix: better way to reload lsp configs 2022-09-11 19:46:53 +02:00
Folke Lemaitre b19a63488e
feat: util.on_config 2022-09-11 18:28:44 +02:00
Folke Lemaitre 177d29e17f
refactor: make lspconfig root_pattern and find_git_ancestor available in util 2022-09-11 18:28:20 +02:00
Folke Lemaitre 7737061dab
feat: improved sorting of json files for Settings command 2022-09-11 16:09:15 +02:00
Folke Lemaitre cebd05b30e
fix: show list when multiple local/global files exist instead of jumping to the first one 2022-09-11 15:59:52 +02:00
Folke Lemaitre 164a8a132f
refactor: rename global settings file from nvim.settings.json to settings.json 2022-09-11 15:59:21 +02:00
Folke Lemaitre 62e9b4ffe8
feat: added json_format using jq, when building files 2022-09-11 14:58:18 +02:00
Folke Lemaitre 1dde6397ae
build: dont check on mtime 2022-09-11 14:57:58 +02:00
Folke Lemaitre b580be8e45
fix: sort annotations 2022-09-11 14:57:23 +02:00
Folke Lemaitre 05a8fce2af
build: cleanup 2022-09-11 14:23:20 +02:00
Folke Lemaitre c64ef42057
refactor: better sumneko class names for lspconfig 2022-09-11 14:22:54 +02:00
Folke Lemaitre 2b3ea3867a
fix: use { ... } and unpack instead of table.pack and table.unpack 2022-09-10 16:29:01 +02:00
Folke Lemaitre 5c9c9ef4f0
refactor: remove types.lua 2022-09-10 15:09:21 +02:00
Folke Lemaitre 580c644c37
feat: added settings files to lsp settings view 2022-09-10 14:47:33 +02:00
Folke Lemaitre 2d0bda5450
fix: pass fully qualified fname to on_update instead of event.match 2022-09-10 14:41:46 +02:00
Folke Lemaitre 8c4868e87e
fix: only reload lsp when settings file is part of settings root for root_dir 2022-09-10 14:41:46 +02:00
Folke Lemaitre 3bc55eac73
fix: return deepcopy of defaults when key value is nil 2022-09-10 14:41:46 +02:00
Folke Lemaitre 5afbede9ba
feat: dont show imported files that dont exist for commands and views 2022-09-10 14:13:43 +02:00
Folke Lemaitre 16a44b9575
feat: always recursively expand keys in when loading settings 2022-09-10 14:05:59 +02:00
Folke Lemaitre c6f962183b
feat: wrap pcall in try util method to show error on error 2022-09-10 14:05:31 +02:00
Folke Lemaitre 1097809894
feat: added float to see merged settings 2022-09-10 14:05:07 +02:00
Folke Lemaitre f6835648d8
feat: added importers for vscode, nlsp-settings and coc-settings 2022-09-10 14:04:32 +02:00
Folke Lemaitre 675bdd9a80
fix: load settings from "settings" instead of "settings.nvim" 2022-09-10 14:04:01 +02:00
Folke Lemaitre a8e496f73e
feat: easier way to work with setting patterns 2022-09-10 14:03:08 +02:00
Folke Lemaitre 79a3cf0176
refactor: better structure for sumneko config 2022-09-10 11:05:10 +02:00
Folke Lemaitre 4c01527b7d
feat: added generic return for settings.get 2022-09-09 23:24:44 +02:00
Folke Lemaitre f0680397ac
feat: helper method to log errors with pcall 2022-09-09 23:24:44 +02:00
Folke Lemaitre 4d72d213c7
feat: use global/local settings for all plugins 2022-09-09 23:24:44 +02:00
Folke Lemaitre c6f75787e7
feat: added settings.nvim config schema 2022-09-09 23:24:44 +02:00
Folke Lemaitre 944333cda4
feat: added config options for all plugins 2022-09-09 23:24:44 +02:00
Folke Lemaitre 9fc940e3c8
refactor: renamed plugin lsp to lspconfig 2022-09-09 23:24:44 +02:00
Folke Lemaitre 92978e9215
refactor: cleanup 2022-09-09 23:24:43 +02:00
Folke Lemaitre ce69f90b6a
feat: make it all work without an active lsp client 2022-09-09 23:24:43 +02:00
Folke Lemaitre 58422942eb
feat: properly setup sumenko to include generated lsp server settings 2022-09-09 18:03:03 +02:00
Folke Lemaitre d824affc44
feat: added sumneko annotations for lsp server settings! 2022-09-09 18:02:38 +02:00
Folke Lemaitre 40c894af26
refactor: moved some stuff under build 2022-09-09 18:01:00 +02:00
Folke Lemaitre 045585e102
feat: custom build for sumneko schema to include language translations for descriptions 2022-09-09 11:05:42 +02:00
Folke Lemaitre 16d8f906dd
feat: improved lsp schema building and loading 2022-09-09 10:32:16 +02:00
Folke Lemaitre 7aa4048ed7
feat: added proper Settings command 2022-09-08 15:06:11 +02:00
Folke Lemaitre 7d33bb851e
refactor: renamed to settings.nvim 2022-09-08 13:19:48 +02:00
Folke Lemaitre f51b7aac58
feat: add plugin generated json schemas to jsonls 2022-09-08 13:12:39 +02:00
Folke Lemaitre 89f459fc2e
feat: simple method to generate a json schema based on a lua table 2022-09-08 13:12:24 +02:00
Folke Lemaitre d71e54e9cb
feat: easy getter to get settings 2022-09-08 12:24:43 +02:00
Folke Lemaitre 200c6fa936
feat: only apply configuration when it actually changed 2022-09-08 11:58:35 +02:00
Folke Lemaitre 2d205f4419
fix: clear settings on update 2022-09-08 11:57:39 +02:00
Folke Lemaitre 0f14609af5
feat: added autocmd to trigger reload and user command Settings 2022-09-08 11:53:09 +02:00
Folke Lemaitre 24637ddc0e
feat: moved jsonls and lsp to its own plugin 2022-09-08 11:52:46 +02:00
Folke Lemaitre be31d39559
refactor: added easy getters for local, global and merged settings 2022-09-08 10:26:46 +02:00
Folke Lemaitre c8a42cdf49
refactor: allow multiple global settings files 2022-09-08 09:39:48 +02:00
Folke Lemaitre 483adc2102
refactor: config.global_settings is always one file 2022-09-08 08:45:39 +02:00
Folke Lemaitre 689dafa90d
feat: helper method to detect root_dir for buffers without attached lsp clients 2022-09-08 08:44:54 +02:00
Folke Lemaitre c67efcf205
feat: read schemas from json file instead of generated lua packages 2022-09-07 22:27:37 +02:00
Folke Lemaitre b808c26eaf
feat: added live-reloading of LSP server configs 2022-09-07 21:12:59 +02:00
Folke Lemaitre eff7473db4
feat: added method to clear cached settings for a given file 2022-09-07 21:12:59 +02:00
Folke Lemaitre 6e4d994455
feat: added markdown support to logging methods 2022-09-07 21:12:59 +02:00
Folke Lemaitre 6e3ed46b11
feat: added LspSettings command to show lsp settings for the current buffer 2022-09-07 18:13:32 +02:00
Folke Lemaitre a92f091809
feat: hooks for lspconfig and jsonls 2022-09-07 18:13:07 +02:00
Folke Lemaitre 3a19ef12c5
feat: top-level config and api 2022-09-07 18:12:52 +02:00
Folke Lemaitre 567f664ed6
feat: json strip comments 2022-09-07 18:12:37 +02:00
Folke Lemaitre 972a7aa1ee
build: auto-generated schema doc urls 2022-09-07 18:12:27 +02:00
Folke Lemaitre f8721c851f
feat: class to work with settings 2022-09-07 18:12:06 +02:00
Folke Lemaitre d9b25d6bf6
feat: build class to generate json schemas 2022-09-07 18:11:33 +02:00