Update Neovim config

This commit is contained in:
Gabriel Arazas 2022-04-30 20:45:39 +08:00
parent cc226ff929
commit 26de954766
2 changed files with 10 additions and 2 deletions

View File

@ -5,8 +5,8 @@ function setup()
-- Use an on_attach function to only map the following keys -- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer -- after the language server attaches to the current buffer
local on_attach = function(client, bufnr) local on_attach = function(client, bufnr)
local function keymap_set(...) vim.keymap.set(bufnr, ...) end local function keymap_set(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.keymap.set(bufnr, ...) end local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
-- Enable completion triggered by <c-x><c-o> -- Enable completion triggered by <c-x><c-o>
buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc") buf_set_option("omnifunc", "v:lua.vim.lsp.omnifunc")

View File

@ -264,6 +264,14 @@ return require("packer").startup(function(use)
use { "vmchale/dhall-vim" } -- Dhall use { "vmchale/dhall-vim" } -- Dhall
use { "ziglang/zig.vim" } -- Zig 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 if packer_bootstrap then
require("packer").sync() require("packer").sync()
end end