[fix] nixvim: lua = true
has been deprecated
Use custom `mkRaw` function and remove `lua = true`
This commit is contained in:
parent
7f05020a95
commit
0b9554b1bb
1 changed files with 18 additions and 31 deletions
|
@ -1,4 +1,6 @@
|
||||||
[
|
let
|
||||||
|
mkRaw = data: {__raw = data;};
|
||||||
|
in [
|
||||||
# Quickfix
|
# Quickfix
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
|
@ -48,107 +50,92 @@
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>dj";
|
key = "<leader>dj";
|
||||||
action = "vim.diagnostic.goto_next";
|
action = mkRaw "vim.diagnostic.goto_next";
|
||||||
lua = true;
|
|
||||||
options.desc = "Diagnostics next [J]";
|
options.desc = "Diagnostics next [J]";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>dk";
|
key = "<leader>dk";
|
||||||
action = "vim.diagnostic.goto_prev";
|
action = mkRaw "vim.diagnostic.goto_prev";
|
||||||
lua = true;
|
|
||||||
options.desc = "Diagnostics previous [K]";
|
options.desc = "Diagnostics previous [K]";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xx";
|
key = "<leader>xx";
|
||||||
action = "require('trouble').toggle";
|
action = mkRaw "require('trouble').toggle";
|
||||||
lua = true;
|
|
||||||
options.desc = "Toggle trouble";
|
options.desc = "Toggle trouble";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xw";
|
key = "<leader>xw";
|
||||||
action = "function() require('trouble').toggle('workspace_diagnostics') end";
|
action = mkRaw "function() require('trouble').toggle('workspace_diagnostics') end";
|
||||||
lua = true;
|
|
||||||
options.desc = "Toggle Workspace trouble";
|
options.desc = "Toggle Workspace trouble";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xd";
|
key = "<leader>xd";
|
||||||
action = "function() require('trouble').toggle('document_diagnostics') end";
|
action = mkRaw "function() require('trouble').toggle('document_diagnostics') end";
|
||||||
lua = true;
|
|
||||||
options.desc = "Toggle Document trouble";
|
options.desc = "Toggle Document trouble";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xq";
|
key = "<leader>xq";
|
||||||
action = "function() require('trouble').toggle('quickfix') end";
|
action = mkRaw "function() require('trouble').toggle('quickfix') end";
|
||||||
lua = true;
|
|
||||||
options.desc = "Toggle Quickfix trouble";
|
options.desc = "Toggle Quickfix trouble";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>xl";
|
key = "<leader>xl";
|
||||||
action = "function() require('trouble').toggle('loclist') end";
|
action = mkRaw "function() require('trouble').toggle('loclist') end";
|
||||||
lua = true;
|
|
||||||
options.desc = "Toggle Loclist trouble";
|
options.desc = "Toggle Loclist trouble";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "gR";
|
key = "gR";
|
||||||
action = "function() require('trouble').toggle('lsp_references') end";
|
action = mkRaw "function() require('trouble').toggle('lsp_references') end";
|
||||||
lua = true;
|
|
||||||
options.desc = "Toggle lsp References trouble";
|
options.desc = "Toggle lsp References trouble";
|
||||||
}
|
}
|
||||||
# Telescope
|
# Telescope
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>ff";
|
key = "<leader>ff";
|
||||||
action = "require('telescope.builtin').find_files";
|
action = mkRaw "require('telescope.builtin').find_files";
|
||||||
lua = true;
|
|
||||||
options.desc = "Find Files";
|
options.desc = "Find Files";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>fg";
|
key = "<leader>fg";
|
||||||
action = "require('telescope.builtin').live_grep";
|
action = mkRaw "require('telescope.builtin').live_grep";
|
||||||
lua = true;
|
|
||||||
options.desc = "Find Grep";
|
options.desc = "Find Grep";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>fh";
|
key = "<leader>fh";
|
||||||
action = "require('telescope.builtin').help_tags";
|
action = mkRaw "require('telescope.builtin').help_tags";
|
||||||
lua = true;
|
|
||||||
options.desc = "Find Help";
|
options.desc = "Find Help";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>fb";
|
key = "<leader>fb";
|
||||||
action = "require('telescope.builtin').buffers";
|
action = mkRaw "require('telescope.builtin').buffers";
|
||||||
lua = true;
|
|
||||||
options.desc = "Find Buffer";
|
options.desc = "Find Buffer";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>fd";
|
key = "<leader>fd";
|
||||||
action = "require('telescope.builtin').diagnostics";
|
action = mkRaw "require('telescope.builtin').diagnostics";
|
||||||
lua = true;
|
|
||||||
options.desc = "Find Diagnostics";
|
options.desc = "Find Diagnostics";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>fq";
|
key = "<leader>fq";
|
||||||
action = "require('telescope.builtin').quickfix";
|
action = mkRaw "require('telescope.builtin').quickfix";
|
||||||
lua = true;
|
|
||||||
options.desc = "Find Quickfix";
|
options.desc = "Find Quickfix";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
mode = "n";
|
mode = "n";
|
||||||
key = "<leader>w";
|
key = "<leader>w";
|
||||||
action = "require'conform'.format";
|
action = mkRaw "require'conform'.format";
|
||||||
lua = true;
|
|
||||||
options.desc = "Format buffer";
|
options.desc = "Format buffer";
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue