update notlua

This commit is contained in:
chayleaf 2023-03-20 19:04:09 +07:00
parent 86243fb78e
commit 00b2c78723
2 changed files with 9 additions and 10 deletions

View file

@ -133,7 +133,7 @@
]) ])
) _ ) _
IF (EQ filetype "markdown") ( IF (EQ filetype "markdown") (
SET (PROP (IDX vim.bo buf) "textwidth") 72 _ (SET (IDX vim.bo buf).textwidth 72)
) _ ) _
]); ]);
BufWinEnter = { buf, ... }: BufWinEnter = { buf, ... }:
@ -224,7 +224,7 @@
]); ]);
in compile "nvim_cmp" (LET (REQ "cmp") (REQ "lspkind") (cmp: lspkind: in compile "nvim_cmp" (LET (REQ "cmp") (REQ "lspkind") (cmp: lspkind:
# call is required because cmp.setup is a table # call is required because cmp.setup is a table
CALL cmp.setup { cmp.setup {
snippet = { snippet = {
expand = { body, ... }: luasnip.lsp_expand body {}; expand = { body, ... }: luasnip.lsp_expand body {};
}; };
@ -253,7 +253,7 @@
behavior = cmp.ConfirmBehavior.Replace; behavior = cmp.ConfirmBehavior.Replace;
select = false; select = false;
}; };
"<tab>" = CALL cmp.mapping (fallback: "<tab>" = cmp.mapping (fallback:
IF (CALL cmp.visible) ( IF (CALL cmp.visible) (
CALL cmp.select_next_item CALL cmp.select_next_item
) (CALL luasnip.expand_or_jumpable) ( ) (CALL luasnip.expand_or_jumpable) (
@ -265,7 +265,7 @@
CALL fallback CALL fallback
) )
) [ "i" "s" ]; ) [ "i" "s" ];
"<S-tab>" = CALL cmp.mapping (fallback: "<S-tab>" = cmp.mapping (fallback:
IF (CALL cmp.visible) ( IF (CALL cmp.visible) (
CALL cmp.select_prev_item CALL cmp.select_prev_item
) (luasnip.jumpable (-1)) ( ) (luasnip.jumpable (-1)) (
@ -341,8 +341,7 @@
LET LET
# LET on_attach # LET on_attach
(client: bufnr: L [ (client: bufnr: L [
# Enable completion triggered by <c-x><c-o> SET (IDX vim.bo bufnr).omnifunc "v:lua.vim.lsp.omnifunc" _
vim.api.nvim_buf_set_option bufnr "omnifunc" "v:lua.vim.lsp.omnifunc" _
# Mappings. # Mappings.
# See `:help vim.lsp.*` for documentation on any of the below functions # See `:help vim.lsp.*` for documentation on any of the below functions
keymapSetNs { keymapSetNs {
@ -370,7 +369,7 @@
rhs = vim.lsp.buf.remove_workspace_folder; rhs = vim.lsp.buf.remove_workspace_folder;
desc = "Remove a folder from the workspace folders."; }; desc = "Remove a folder from the workspace folders."; };
"<space>wl" = { "<space>wl" = {
rhs = DEFUN (print (CALL vim.inspect (CALL vim.lsp.buf.list_workspace_folders))); rhs = DEFUN (print (vim.inspect (CALL vim.lsp.buf.list_workspace_folders) {}));
desc = "List workspace folders."; }; desc = "List workspace folders."; };
"<space>D" = { "<space>D" = {
rhs = vim.lsp.buf.type_definition; rhs = vim.lsp.buf.type_definition;

View file

@ -61,11 +61,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1679217283, "lastModified": 1679313651,
"narHash": "sha256-oX6x3LeRH83LWwKGHGeKB+Sf+v43BWBry18/FsAu5+U=", "narHash": "sha256-SwYtZhHqcr5V5IF4XNHx8du+E5WLgZXzpiTp/6qy6W4=",
"owner": "chayleaf", "owner": "chayleaf",
"repo": "notlua", "repo": "notlua",
"rev": "2088a194da48d4b96807265c8d043a47162da953", "rev": "f04a6916767ebed80e5560d529c5bd8d95edebbc",
"type": "github" "type": "github"
}, },
"original": { "original": {