setting up lualine

This commit is contained in:
talksik
2024-03-20 12:08:53 -07:00
parent 45595037c5
commit 488527b6bb
2 changed files with 55 additions and 15 deletions
+8 -15
View File
@@ -516,6 +516,9 @@ require('lazy').setup({
-- For example, in C this would take you to the header.
map('gD', vim.lsp.buf.declaration, '[G]oto [D]eclaration')
map('<leader>lg', vim.diagnostic.open_float, 'Open diagnostics')
map('<leader>lf', vim.lsp.buf.format, '[L]sp [F]ormat')
-- The following two autocommands are used to highlight references of the
-- word under your cursor when your cursor rests there for a little while.
-- See `:help CursorHold` for information about when this is executed
@@ -553,6 +556,11 @@ require('lazy').setup({
-- - settings (table): Override the default settings passed when initializing the server.
-- For example, to see the options for `lua_ls`, you could go to: https://luals.github.io/wiki/settings/
local servers = {
-- FIXME:
-- qmlls = {
-- cmd = { '/home/talksik/Qt/6.6.1/gcc_64/bin/qmlls' },
-- filetypes = { 'qml' },
-- },
clangd = {
cmd = {
'/home/talksik/Qt/Tools/QtCreator/libexec/qtcreator/clang/bin/clangd',
@@ -789,21 +797,6 @@ require('lazy').setup({
-- - sr)' - [S]urround [R]eplace [)] [']
require('mini.surround').setup()
-- Simple and easy statusline.
-- You could remove this setup call if you don't like it,
-- and try some other statusline plugin
local statusline = require 'mini.statusline'
-- set use_icons to true if you have a Nerd Font
statusline.setup { use_icons = vim.g.have_nerd_font }
-- You can configure sections in the statusline by overriding their
-- default behavior. For example, here we set the section for
-- cursor location to LINE:COLUMN
---@diagnostic disable-next-line: duplicate-set-field
statusline.section_location = function()
return '%2l:%-2v'
end
-- ... and there is more!
-- Check out: https://github.com/echasnovski/mini.nvim
end,