Skip to content
This repository has been archived by the owner on Aug 20, 2023. It is now read-only.

Commit

Permalink
nushell lsp
Browse files Browse the repository at this point in the history
  • Loading branch information
siph committed Mar 19, 2023
1 parent 299dcb5 commit c007ce4
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@
url = "github:simrat39/rust-tools.nvim";
flake = false;
};
nvim-nu = {
url = "github:LhKipp/nvim-nu";
flake = false;
};

# Copying/Registers
registers = {
Expand Down Expand Up @@ -323,6 +327,7 @@
java = true;
kotlin = true;
lua = true;
nu = true;
};
vim.visuals = {
enable = true;
Expand Down
1 change: 1 addition & 0 deletions modules/lib/types-plugin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ with lib; let
"nvim-dap-ui"
"nvim-lightbulb"
"nvim-lspconfig"
"nvim-nu"
"nvim-tree-lua"
"nvim-treesitter"
"nvim-treesitter-context"
Expand Down
8 changes: 8 additions & 0 deletions modules/lsp/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ in {
java = mkEnableOption "Java language LSP";
kotlin = mkEnableOption "Kotlin language LSP";
lua = mkEnableOption "Lua Language LSP";
nu = mkEnableOption "Nushell Language LSP";
};

config = mkIf cfg.enable (
Expand All @@ -87,6 +88,11 @@ in {
then "sqls-nvim"
else null
)
(
if cfg.nu
then "nvim-nu"
else null
)
]
++ (
if cfg.rust.enable
Expand Down Expand Up @@ -200,6 +206,8 @@ in {
else "false"
};
require'nu'.setup{}
-- Enable formatting
format_callback = function(client, bufnr)
vim.api.nvim_create_autocmd("BufWritePre", {
Expand Down

0 comments on commit c007ce4

Please sign in to comment.