update notlua
This commit is contained in:
parent
86243fb78e
commit
00b2c78723
|
@ -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;
|
||||
};
|
||||
"<tab>" = CALL cmp.mapping (fallback:
|
||||
"<tab>" = 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" ];
|
||||
"<S-tab>" = CALL cmp.mapping (fallback:
|
||||
"<S-tab>" = 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 <c-x><c-o>
|
||||
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."; };
|
||||
"<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."; };
|
||||
"<space>D" = {
|
||||
rhs = vim.lsp.buf.type_definition;
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in a new issue