Commit Graph
2040 Commits
Author SHA1 Message Date
Pedro Alves d3b63cafbb modules/highlights: fix typo 2023-01-21 17:21:12 +00:00
traxysandPedro Alves 2f2f724f6a nvim-lsp: Add settings for rust-analyzer (#113)
* nvim-lsp: Add settings for rust-analyzer

Because the settings are quite complex they are auto-generated. This
commit adds the script creating it & the generated options.

* Update flake.nix

Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-21 17:15:46 +00:00
Gaétan Lepage 5b84bbb513 plugins/utils/startify: fix wrongly named option: startify_custom_header (#118) 2023-01-21 17:13:01 +00:00
Gaétan Lepage 7a2f063f07 plugins/completion/nvim-cmp: add missing tpe of option "auto_enable_sources" (#119) 2023-01-21 17:12:32 +00:00
Gaétan LepageandPedro Alves 3c918cfc92 misc: remove trailing whitespaces (#121)
Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-21 17:12:09 +00:00
Gaétan LepageandPedro Alves 1022eae161 modules/highlights: added a wrapper around vim.fn.matchadd (#123)
* modules/highlights: added a wrapper around vim.fn.matchadd

* modules/highlights: fix mkIf

Co-authored-by: Pedro Alves <pta2002@pta2002.com>
2023-01-21 17:09:58 +00:00
Gaétan Lepage 1480ffe201 plugins/utils/nvim-tree: change implementation of autoClose (#125) 2023-01-21 17:04:28 +00:00
traxys 55ed602814 tree-sitter: Switch to using nvim-treesitter grammars (#131)
The grammars in the tree-sitter package and nvim-treesitter package are
not the same. The grammars in the nvim-treesitter package are directly
taken from the grammars supported by the plugin, whereas tree-sitter
grammars are hard-coded in nixpkgs.

This means that there are more tree-sitter grammars available from
nvim-treesitter rather than tree-sitter.
2023-01-21 17:02:16 +00:00
Pedro Alves 809aeb7561 intellitab: fix wrong cfg 2023-01-21 16:46:06 +00:00
Pedro Alves 7bf2de6735 null-ls: fix mistyped variable 2023-01-21 15:19:51 +00:00
Alexander Nortung d2f714c40e bufferline: refactor - added package and extraOptions options. (#126) 2023-01-19 20:39:37 +00:00
Pedro Alves 11da3bfbc1 fix several broken options 2023-01-19 16:02:40 +00:00
Pedro Alves 5b0e3623a0 fix broken documentation 2023-01-19 15:53:33 +00:00
Alexander Nortung 3f9effc575 general: add package options (#127)
* barbar: package option

* Base16: package option

* gruvbox: package option

* nord: package option

* one: package option

* onedark: package option

* tokyonight: package option

* nvim-cmp: package option

* coq: package option

* lspkind: package option

* helpers: added package option to mkPlugin

* fugitive: package option

* gitgutter: package option

* gitsigns: package option

* neogit: package option

* ledger: package option

* nix: package option

* plantuml-syntax: package option

* treesitter-context: package option + formatting

* treesitter-refactor: package option + formatting

* treesitter: package option

* zig: package option

* null-ls: package option

* null-ls/servers: package option

* lsp-lines: package option

* lspsaga: package option

* trouble: package option

* luasnip: added description for package option

* airline: package option

* lightline: package option

* lualine: package option

* telescope: package option

* telescope/frecency: package option

* telescope/fzf-native: package option

* telescope/media-files: package option

* comment-nvim: package option

* vim-commentary: package option

* dashboard: package option

* easyescape: package option

* emmet: package option

* endwise: package option

* floaterm: package option

* goyo: package option

* intellitab: package option

* mark-radar: package option

* notify: package option

* nvim-autopairs: package option

* nvim-tree: package option

* project-nvim: package option

* specs: package option

* startify: package option

* surround: package option

* undotree: package option
2023-01-19 10:45:15 +00:00
Gaétan Lepage 83f6e1647f nvim-lsp: add sumneko_lua language server (#109) 2023-01-19 10:37:36 +00:00
Alexander Nortung 2180675750 lsp: added packageoption to basic lsp servers (#61)
* nvim-lsp: added package options for basic servers

* nvim-lsp: updated package options

* nvim-lsp: added cmd to plugins that share dependency
2023-01-19 10:36:56 +00:00
Gaétan Lepage 50bda39cd2 update flake nixpkgs input (#122) 2023-01-18 14:41:59 +00:00
Gaétan Lepage d0910a6ddb modules: add autocmd (#120) 2023-01-16 23:40:29 +00:00
Gaétan Lepage b9a4f0ca19 plugins/languages/treesitter: fixed parsers installation when not using nixGrammars (#116) 2023-01-13 10:48:24 +00:00
Gaétan LepageandPedro Alves 20d47fb283 treesitter: change default value for parserInstallDir (#117)
* plugins/languages/treesitter: change default value for parserInstallDir

* better document parserInstallDir

Co-authored-by: Pedro Alves <pta2002@pta2002.com>
2023-01-12 19:17:43 +00:00
Gaétan LepageandPedro Alves 5c6ba55f8a keymaps: switch to lua API vim.keymap.set (#115)
* modules/keymaps: switch to lua API vim.keymap.set

* add test for keymaps

Co-authored-by: Pedro Alves <pta2002@pta2002.com>
2023-01-12 19:13:47 +00:00
Pedro Alves 9aec0f9275 readme: add link to matrix 2023-01-11 13:04:19 +00:00
traxysandPedro Alves b1ba5f873e lsp: add support for several LSP clients (#111)
* nvim-lsp: Allow to pass settings to clients

Some clients (like rust-analyzer, nil_ls, ...) can take settings
specified in the setup function. This commit adds two fields for the
'mkLsp' function to handle this:

- extraOptions: define nix module options
- settings: A function that takes the corresponding lsp module config
  and formats it as a settings object compatible with the server.

* nvim-lsp: Add nil-ls (for Nix)

* nvim-lsp: Add bashls (for Bash)

* nvim-lsp: Add dartls, for dart

Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2023-01-10 22:47:52 +00:00
Gaétan Lepage 02f28c7b48 nvim-lsp: add texlab language server (#110) 2023-01-10 12:42:22 +00:00
Gaétan Lepage f32627307a nvim-lsp: add bashls language server (#108) 2023-01-10 12:41:47 +00:00
Gaétan Lepage 84006ea282 nvim-tree: typo in option updateFocusedFile (#107) 2023-01-10 12:38:59 +00:00
Gaétan Lepage 7827947ca9 readme: fix typos (#106) 2023-01-10 12:38:25 +00:00
traxys 7713f5d441 plantuml: init syntax plugin (#104) 2023-01-06 15:14:30 +00:00
traxys 2f9c21ffc8 treesitter: add tree-sitter context plugin (#103) 2023-01-06 11:31:54 +00:00
traxys 1f723e8abd treesitter: add module for treesitter-refactor (#101)
As treesitter-refactor is a treesitter module we need a way to pass
extra configuration options to the treesitter setup. This is done
through a `moduleConfig` attrset. This set should not be used outside
nixvim.
2023-01-05 14:23:23 +00:00
traxys 125ed74a42 null-ls: Add gitsigns code action (#100)
As this is not an external command but a plugin it adds the gitsigns
plugin if enabled.
2022-12-30 21:04:43 +00:00
traxys 30fc8b4f43 gitsigns: init plugin (#99) 2022-12-30 20:21:59 +00:00
Pedro Alves 7807c51ccf nixvim: add nix-darwin wrapper 2022-12-30 21:14:54 +01:00
volkswagenfeatureandtristan BetaBlue-NixOS-2022 de9a5913d2 magma-vnim: init
* Added magma-nvim skeleton

* Added magma-nvim options

* formatting, suggestions

Co-authored-by: tristan BetaBlue-NixOS-2022 <tristan@BetaBlue-NixOS-2022.com>
2022-12-30 15:02:59 +00:00
traxys 660c9319e1 wrappers: Extend and document the makeNixvim function (#86)
* wrappers: Allow to customize the nixpkgs used for nixvim

This allows to pass overlays and other such modifications of nixpkgs.

* wrappers: Allow to pass a custom module to nixvim

This is useful to be able to take full advantage of the Nix module
system, with `imports` and `options`.

* README: Update the documentation on the standalone usage

The following information were out of date or incomplete:

- The `build` function has be changed to the `makeNixvim` function.
- `makeNixvimWithModule` has been introduced in order to allow more
customization.
- Added a full example using nixvim in a standalone flake
2022-12-29 17:51:57 +00:00
Pedro Alves 4dedb06ceb readme: update to reflect documentation home 2022-12-29 17:40:39 +00:00
Pedro Alves 498986d90a docs: fix CI documentation generation 2022-12-29 17:36:54 +00:00
Pedro Alves dd9ec124a2 docs: fix documentation generation 2022-12-29 17:34:54 +00:00
traxys 5f67918bae tokyonight: Fix configuration and align more with defaults (#87)
The global variables don't work for applying configuration, we need to
switch to using the 'setup' function. This also aligns the default
option values in tokyonight upstream.
2022-12-24 00:08:54 +00:00
Pedro Alves fdbba2238e null-ls: add fnlfmt 2022-12-19 02:18:15 +00:00
Alexander Nortung 470fd9c07e copilot: add package option (#84) 2022-12-15 17:04:24 +00:00
Alexander Nortung de6519f713 nvim-lsp/tailwindcss: init (#85) 2022-12-15 17:03:31 +00:00
Pedro Alves db8a2c0b97 lsp-lines: add currentLine option 2022-12-11 19:39:51 +00:00
*Kim Zick a7fbb81224 options: add viAlias and vimAlias (#75) 2022-12-08 17:12:57 +00:00
Syahdan 472e10f069 lsp: add bufnr to passed argument (#82)
* lsp: add bufnr to passed argument

* lsp: add docs for last commit
2022-12-05 02:49:37 +00:00
*Kim Zick 78f5f36738 fix: basic flake check should work now (#74) 2022-12-01 23:15:21 +00:00
Alexander NortungandPedro Alves 4880459702 telescope: added extraOptions and defaults (#67)
* telescope: added extraOptions and defualtConfig

* Update default.nix

Co-authored-by: Pedro Alves <pta2002@users.noreply.github.com>
2022-12-01 19:58:35 +00:00
Alexander Nortung 90b8a45092 Added extra options (#62)
* Added extraOptions helper

* project-nvim: added extraOptions
2022-12-01 19:57:06 +00:00
Pedro Alves 1bd5e97892 README: direct people to GH Discussions 2022-12-01 19:55:54 +00:00
Pedro Alves 27bf782ed8 nvim-lsp: try again to fix haskell gaaaaa 2022-12-01 15:15:54 +00:00