diff --git a/init.lua b/init.lua index ec365301..dd25f6a3 100644 --- a/init.lua +++ b/init.lua @@ -230,6 +230,7 @@ vim.opt.rtp:prepend(lazypath) -- :Lazy update -- -- NOTE: Here is where you install your plugins. + require('lazy').setup({ -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically @@ -259,6 +260,72 @@ require('lazy').setup({ }, }, -- MY CONFIG + -- { + -- 'iamcco/markdown-preview.nvim', + -- cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' }, + -- ft = { 'markdown' }, + -- build = function() + -- vim.fn['mkdp#util#install']() + -- end, + -- }, + { + 'nvim-lualine/lualine.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons', 'archibate/lualine-time' }, + config = function() + require('lualine').setup { + options = { + icons_enabled = true, + theme = 'auto', + component_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, + disabled_filetypes = { + statusline = {}, + winbar = {}, + }, + ignore_focus = {}, + always_divide_middle = true, + always_show_tabline = true, + globalstatus = false, + refresh = { + statusline = 100, + tabline = 100, + winbar = 100, + }, + }, + sections = { + lualine_a = { 'mode' }, + lualine_b = { 'branch', 'diff', 'diagnostics' }, + lualine_c = { 'filename' }, + lualine_d = { 'lsp_progress' }, + lualine_w = { 'tabnine' }, + lualine_x = { 'ctime' }, + lualine_y = { 'encoding', 'fileformat', 'filetype' }, + lualine_z = { 'location' }, + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = { 'filename' }, + lualine_x = { 'location' }, + lualine_y = {}, + lualine_z = {}, + }, + tabline = {}, + winbar = {}, + inactive_winbar = {}, + extensions = {}, + } + end, + }, + { + 'numToStr/Comment.nvim', + opts = { + -- add any options here + }, + config = function() + require('Comment').setup() + end, + }, { 'mbbill/undotree' }, { 'christoomey/vim-tmux-navigator', @@ -361,7 +428,9 @@ require('lazy').setup({ -- you do for a plugin at the top level, you can do for a dependency. -- -- Use the `dependencies` key to specify the dependencies of a particular plugin - { vim.keymap.set('n', '', vim.cmd.UndotreeToggle, { desc = 'Undo tree toggle' }) }, + -- changed keymap + --{ vim.keymap.set('n', '', vim.cmd.UndotreeToggle, { desc = 'Undo tree toggle' }) }, + { vim.keymap.set('n', 'u', vim.cmd.UndotreeToggle, { desc = 'Undo tree toggle' }) }, { -- Fuzzy Finder (files, lsp, etc) 'nvim-telescope/telescope.nvim', event = 'VimEnter', @@ -487,7 +556,8 @@ require('lazy').setup({ 'neovim/nvim-lspconfig', dependencies = { -- Automatically install LSPs and related tools to stdpath for Neovim - { 'williamboman/mason.nvim', config = true }, -- NOTE: Must be loaded before dependants + { 'williamboman/mason.nvim', opts = { ensure_installed = { 'ansible-lint' } }, config = true }, + -- NOTE: Must be loaded before dependants 'williamboman/mason-lspconfig.nvim', 'WhoIsSethDaniel/mason-tool-installer.nvim', -- ADDED TO SUPPORT TOML @@ -648,7 +718,8 @@ require('lazy').setup({ local servers = { -- clangd = {}, -- gopls = {}, - -- pyright = {}, + pyright = {}, + ansiblels = {}, -- rust_analyzer = {}, -- ... etc. See `:help lspconfig-all` for a list of all the pre-configured LSPs -- @@ -748,7 +819,24 @@ require('lazy').setup({ }, }, }, - + --TABNINE + { + 'codota/tabnine-nvim', + build = './dl_binaries.sh', + config = function() + require('tabnine').setup { + disable_auto_comment = true, + accept_keymap = '', + dismiss_keymap = '', + debounce_ms = 800, + suggestion_color = { gui = '#808080', cterm = 244 }, + exclude_filetypes = { 'TelescopePrompt', 'NvimTree' }, + log_file_path = nil, -- absolute path to Tabnine log file + ignore_certificate_errors = false, + } + require('tabnine.status').status() + end, + }, { -- Autocompletion 'hrsh7th/nvim-cmp', event = 'InsertEnter', @@ -876,7 +964,8 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + --vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'tokyonight-storm' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' @@ -982,8 +1071,7 @@ require('lazy').setup({ -- require 'kickstart.plugins.lint', -- require 'kickstart.plugins.autopairs', -- require 'kickstart.plugins.neo-tree', - -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps - + require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- This is the easiest way to modularize your config. -- @@ -1016,5 +1104,8 @@ require('lazy').setup({ }, }) +-- transparencyv +vim.api.nvim_set_hl(0, 'Normal', { bg = 'none' }) +vim.api.nvim_set_hl(0, 'NormalFloat', { bg = 'none' }) -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et