* stylua -> EmmyLuaCodeStyle: config and doc * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle: CI * stylua -> EmmyLuaCodeStyle * stylua -> EmmyLuaCodeStyle: call_arg_parentheses = always * stylua -> EmmyLuaCodeStyle * stylua -> EmmyLuaCodeStyle
This commit is contained in:
committed by
GitHub
parent
9650e735ba
commit
1ae1c33ce1
@@ -1,5 +1,5 @@
|
||||
local HL_POSITION = require("nvim-tree.enum").HL_POSITION
|
||||
local diagnostics = require "nvim-tree.diagnostics"
|
||||
local diagnostics = require("nvim-tree.diagnostics")
|
||||
|
||||
local M = {
|
||||
-- highlight strings for the icons
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
local M = {}
|
||||
|
||||
local utils = require "nvim-tree.utils"
|
||||
local utils = require("nvim-tree.utils")
|
||||
|
||||
local function hide(win)
|
||||
if win then
|
||||
@@ -42,7 +42,7 @@ local function show()
|
||||
return
|
||||
end
|
||||
|
||||
local line = vim.fn.getline "."
|
||||
local line = vim.fn.getline(".")
|
||||
local leftcol = vim.fn.winsaveview().leftcol
|
||||
-- hide full name if left column of node in nvim-tree win is not zero
|
||||
if leftcol ~= 0 then
|
||||
@@ -81,7 +81,7 @@ local function show()
|
||||
|
||||
vim.api.nvim_buf_add_highlight(0, ns_id, details.hl_group, 0, col, details.end_col)
|
||||
end
|
||||
vim.cmd [[ setlocal nowrap cursorline noswapfile nobuflisted buftype=nofile bufhidden=hide ]]
|
||||
vim.cmd([[ setlocal nowrap cursorline noswapfile nobuflisted buftype=nofile bufhidden=hide ]])
|
||||
end)
|
||||
end
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ end
|
||||
function M.setup(opts)
|
||||
M.config = opts.renderer.icons
|
||||
|
||||
M.devicons = pcall(require, "nvim-web-devicons") and require "nvim-web-devicons" or nil
|
||||
M.devicons = pcall(require, "nvim-web-devicons") and require("nvim-web-devicons") or nil
|
||||
end
|
||||
|
||||
return M
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
local M = {}
|
||||
|
||||
M.diagnostics = require "nvim-tree.renderer.components.diagnostics"
|
||||
M.full_name = require "nvim-tree.renderer.components.full-name"
|
||||
M.icons = require "nvim-tree.renderer.components.icons"
|
||||
M.padding = require "nvim-tree.renderer.components.padding"
|
||||
M.diagnostics = require("nvim-tree.renderer.components.diagnostics")
|
||||
M.full_name = require("nvim-tree.renderer.components.full-name")
|
||||
M.icons = require("nvim-tree.renderer.components.icons")
|
||||
M.padding = require("nvim-tree.renderer.components.padding")
|
||||
|
||||
function M.setup(opts)
|
||||
M.diagnostics.setup(opts)
|
||||
|
||||
@@ -117,7 +117,7 @@ function M.setup(opts)
|
||||
return " "
|
||||
end
|
||||
-- return the first character from the UTF-8 encoded string; we may use utf8.codes from Lua 5.3 when available
|
||||
return symbol:match "[%z\1-\127\194-\244][\128-\191]*"
|
||||
return symbol:match("[%z\1-\127\194-\244][\128-\191]*")
|
||||
end
|
||||
|
||||
for k, v in pairs(M.config.indent_markers.icons) do
|
||||
|
||||
Reference in New Issue
Block a user