Browse Source

Added bind to show the pop-over with the error

master
Julio Biason 2 years ago
parent
commit
0661c14196
  1. 16
      nvim/init.lua
  2. 5
      nvim/lua/plugins.lua

16
nvim/init.lua

@ -6,7 +6,7 @@ vim.opt.termguicolors = true
vim.opt.cursorline = true -- highlight the line with the cursor
vim.opt.wrap = false -- do not wrap long lines
vim.opt.foldmethod = 'marker' -- when folding, use the marker
vim.opt.laststatus = 2 -- always show the status line
vim.opt.laststatus = 3 -- always show the status line, but only one, even with splits
vim.opt.showtabline = 2 -- always show the tab bar
vim.opt.scrolloff = 2 -- number of lines to always have around cursor
vim.opt.splitright = true -- vertical splits open on the right
@ -26,17 +26,3 @@ vim.diagnostic.config({signs = false})
-- My plugins and their configuration
require('plugins')
-- -- nvim-snippy
-- require('snippy').setup({
-- mappings = {
-- is = {
-- ['<Tab>'] = 'expand_or_advance',
-- ['<S-Tab>'] = 'previous',
-- },
-- nx = {
-- ['<leader>x'] = 'cut_text',
-- },
-- },
-- })

5
nvim/lua/plugins.lua

@ -22,7 +22,8 @@ return require('packer').startup(function()
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<space>f', '<cmd>lua vim.lsp.buf.format({async = true})<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'ge', '<cmd>lua vim.diagnostic.open_float()<CR>', opts)
if client.resolved_capabilities.document_formatting then
vim.api.nvim_command [[augroup Format]]
@ -46,7 +47,7 @@ return require('packer').startup(function()
'nvim-treesitter/nvim-treesitter',
config = function()
require('nvim-treesitter.configs').setup {
ensure_installed = 'maintained',
ensure_installed = { "python", "rust" },
sync_install = false,
highlight = {
enable = true,

Loading…
Cancel
Save