Recover linting info. Small tweaks

pull/1479/head
Juan Magalhães 2 years ago
parent 219d254ea5
commit 4287dfe370

@ -1,11 +1,14 @@
-- Lua quick doc reference https://learnxinyminutes.com/docs/lua/
require "core.settings"
-- Sets <space> as the <leader> key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- Bootsrap plugin manager
require "core.bootstrap-plugin-manager"
require "core.plugins"
require "core.settings"
require "core.keymaps"
require "core.setup"

@ -26,13 +26,16 @@ return function(buffer)
print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
end, '[W]orkspace [L]ist Folders')
-- nvim-ufo mappings
nmap("zR", require("ufo").openAllFolds, "Open All Folds")
nmap("zM", require("ufo").closeAllFolds, "Close All Folds")
nmap("zj", function()
local function peekAtFold()
local winid = require("ufo").peekFoldedLinesUnderCursor()
if not winid then
vim.lsp.buf.hover()
end
end, "Peek At Current Fold")
end
-- nvim-ufo mappings
nmap("zR", require("ufo").openAllFolds, "Open All Folds")
nmap("zM", require("ufo").closeAllFolds, "Close All Folds")
nmap("zj", peekAtFold, "Peek At Current Fold")
end

@ -0,0 +1,19 @@
return {
'nvim-telescope/telescope.nvim',
branch = '0.1.x',
dependencies = {
'nvim-lua/plenary.nvim',
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
-- Only load if `make` is available. Make sure you have the system
-- requirements installed.
{
'nvim-telescope/telescope-fzf-native.nvim',
-- NOTE: If you are having trouble with this installation,
-- refer to the README for telescope-fzf-native for more instructions.
build = 'make',
cond = function()
return vim.fn.executable 'make' == 1
end,
},
},
}

@ -103,20 +103,7 @@ local plugins = {
},
-- Fuzzy Finder (files, lsp, etc)
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } },
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
-- Only load if `make` is available. Make sure you have the system
-- requirements installed.
{
'nvim-telescope/telescope-fzf-native.nvim',
-- NOTE: If you are having trouble with this installation,
-- refer to the README for telescope-fzf-native for more instructions.
build = 'make',
cond = function()
return vim.fn.executable 'make' == 1
end,
},
require 'core.plugins.file-search',
{
-- Highlight, edit, and navigate code
@ -137,7 +124,6 @@ local plugins = {
require 'core.plugins.todo-comments',
-- require 'core.plugins.neo-tree',
require 'core.plugins.project-tree',
require 'core.plugins.nvim-ufo',

@ -1,9 +1,5 @@
-- [[ Setting options ]]
-- Sets <space> as the <leader> key
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
-- As in nvim-tree docs
-- disable netrw at the very start of your init.lua
@ -40,6 +36,9 @@ vim.o.smartcase = true
-- Keep signcolumn on by default
vim.wo.signcolumn = 'yes'
-- Save undo history
vim.o.undofile = true
-- Decrease update time
vim.o.updatetime = 250
vim.o.timeout = true

@ -67,11 +67,6 @@ end
require('lspconfig').tsserver.setup {
on_attach = tsserver_on_attach,
capabilities = capabilities,
init_options = {
preferences = {
disableSuggestions = true
}
},
commands = {
OrganizeImports = {
organize_imports,

Loading…
Cancel
Save