From 26de954766d713150f56f8f498eac1981ffa30c0 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 30 Apr 2022 20:45:39 +0800 Subject: [PATCH] Update Neovim config --- nvim/lua/lsp-user-config.lua | 4 ++-- nvim/lua/plugins.lua | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/nvim/lua/lsp-user-config.lua b/nvim/lua/lsp-user-config.lua index c63ba27..9a3e5be 100644 --- a/nvim/lua/lsp-user-config.lua +++ b/nvim/lua/lsp-user-config.lua @@ -5,8 +5,8 @@ function setup() -- Use an on_attach function to only map the following keys -- after the language server attaches to the current buffer local on_attach = function(client, bufnr) - local function keymap_set(...) vim.keymap.set(bufnr, ...) end - local function buf_set_option(...) vim.keymap.set(bufnr, ...) end + local function keymap_set(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end + local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end -- Enable completion triggered by buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index 2058a78..740891c 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -264,6 +264,14 @@ return require("packer").startup(function(use) use { "vmchale/dhall-vim" } -- Dhall use { "ziglang/zig.vim" } -- Zig + -- Use Neovim even inside of browsers. + use { + "glacambre/firenvim", + run = function() + vim.fn["firenvim#install"](0) + end + } + if packer_bootstrap then require("packer").sync() end