Updated theme
This commit is contained in:
@@ -49,7 +49,7 @@ vim.o.scrolloff = 8
|
||||
|
||||
vim.o.showmode = false
|
||||
|
||||
vim.o.showtabline = 2
|
||||
vim.o.showtabline = 0
|
||||
|
||||
vim.o.wrap = false
|
||||
|
||||
@@ -192,6 +192,37 @@ require('lazy').setup({
|
||||
section_separators = '',
|
||||
globalstatus = true,
|
||||
},
|
||||
sections = {
|
||||
lualine_a = { 'mode' },
|
||||
lualine_b = { 'branch' },
|
||||
lualine_c = { 'diff', 'diagnostics', 'filename' },
|
||||
lualine_x = {
|
||||
{
|
||||
-- Lsp server name .
|
||||
function()
|
||||
local msg = ''
|
||||
-- local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
||||
local clients = vim.lsp.get_active_clients({ bufnr = 0 })
|
||||
if next(clients) == nil then
|
||||
return 'No Active Lsp'
|
||||
end
|
||||
for _, client in ipairs(clients) do
|
||||
-- local filetypes = client.config.filetypes
|
||||
-- if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
||||
msg = msg .. client.name .. " - "
|
||||
-- end
|
||||
end
|
||||
if msg == '' then
|
||||
return 'No Active Lsp'
|
||||
end
|
||||
return msg:sub(1, -4)
|
||||
end,
|
||||
color = { fg = '#afd787' },
|
||||
}, 'filetype',
|
||||
},
|
||||
lualine_y = { 'progress' },
|
||||
lualine_z = { 'location' }
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -289,6 +320,17 @@ require('lazy').setup({
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
version = "*",
|
||||
dependencies = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup {}
|
||||
end,
|
||||
},
|
||||
|
||||
}, {})
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
||||
3
config/nvim/lua/.luarc.json
Normal file
3
config/nvim/lua/.luarc.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"workspace.checkThirdParty": false
|
||||
}
|
||||
3
config/nvim/lua/user/.luarc.json
Normal file
3
config/nvim/lua/user/.luarc.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"workspace.checkThirdParty": false
|
||||
}
|
||||
Reference in New Issue
Block a user