From 00b2c7872370bfeb78ba529be0985131e854bea6 Mon Sep 17 00:00:00 2001 From: chayleaf Date: Mon, 20 Mar 2023 19:04:09 +0700 Subject: [PATCH] update notlua --- home/common/nvim.nix | 13 ++++++------- home/flake.lock | 6 +++--- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/home/common/nvim.nix b/home/common/nvim.nix index c8b25ad..18e3267 100644 --- a/home/common/nvim.nix +++ b/home/common/nvim.nix @@ -133,7 +133,7 @@ ]) ) _ IF (EQ filetype "markdown") ( - SET (PROP (IDX vim.bo buf) "textwidth") 72 _ + (SET (IDX vim.bo buf).textwidth 72) ) _ ]); BufWinEnter = { buf, ... }: @@ -224,7 +224,7 @@ ]); in compile "nvim_cmp" (LET (REQ "cmp") (REQ "lspkind") (cmp: lspkind: # call is required because cmp.setup is a table - CALL cmp.setup { + cmp.setup { snippet = { expand = { body, ... }: luasnip.lsp_expand body {}; }; @@ -253,7 +253,7 @@ behavior = cmp.ConfirmBehavior.Replace; select = false; }; - "" = CALL cmp.mapping (fallback: + "" = cmp.mapping (fallback: IF (CALL cmp.visible) ( CALL cmp.select_next_item ) (CALL luasnip.expand_or_jumpable) ( @@ -265,7 +265,7 @@ CALL fallback ) ) [ "i" "s" ]; - "" = CALL cmp.mapping (fallback: + "" = cmp.mapping (fallback: IF (CALL cmp.visible) ( CALL cmp.select_prev_item ) (luasnip.jumpable (-1)) ( @@ -341,8 +341,7 @@ LET # LET on_attach (client: bufnr: L [ - # Enable completion triggered by - vim.api.nvim_buf_set_option bufnr "omnifunc" "v:lua.vim.lsp.omnifunc" _ + SET (IDX vim.bo bufnr).omnifunc "v:lua.vim.lsp.omnifunc" _ # Mappings. # See `:help vim.lsp.*` for documentation on any of the below functions keymapSetNs { @@ -370,7 +369,7 @@ rhs = vim.lsp.buf.remove_workspace_folder; desc = "Remove a folder from the workspace folders."; }; "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."; }; "D" = { rhs = vim.lsp.buf.type_definition; diff --git a/home/flake.lock b/home/flake.lock index af679de..76c6faa 100644 --- a/home/flake.lock +++ b/home/flake.lock @@ -61,11 +61,11 @@ ] }, "locked": { - "lastModified": 1679217283, - "narHash": "sha256-oX6x3LeRH83LWwKGHGeKB+Sf+v43BWBry18/FsAu5+U=", + "lastModified": 1679313651, + "narHash": "sha256-SwYtZhHqcr5V5IF4XNHx8du+E5WLgZXzpiTp/6qy6W4=", "owner": "chayleaf", "repo": "notlua", - "rev": "2088a194da48d4b96807265c8d043a47162da953", + "rev": "f04a6916767ebed80e5560d529c5bd8d95edebbc", "type": "github" }, "original": {