Updating vue, changing font, adding pomo
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
-- Paths for working with vue
|
||||
local vue_typescript_plugin_path = vim.fs.normalize '~/node_modules/@vue/typescript-plugin'
|
||||
local vue_language_server_path = vim.fs.normalize(vim.fn.stdpath 'data' .. '/mason/packages/vue-language-server/node_modules/@vue/language-server')
|
||||
|
||||
local azurePipelineFileGlobs = {
|
||||
'/azure-pipeline*.y*l',
|
||||
'/*.azure*',
|
||||
|
||||
@@ -36,10 +36,12 @@
|
||||
"nvim-lint": { "branch": "master", "commit": "7ef127aaede2a4d5ad8df8321e2eb4e567f29594" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "f0c6ccf43997a1c7e9ec4aea36ffbf2ddd9f15ef" },
|
||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "c2599a81ecabaae07c49ff9b45dcd032a8d90f1a" },
|
||||
"pastify.nvim": { "branch": "main", "commit": "4a1d1e03c3ae725ee4af796deca8c7c169ef626e" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||
"pomo.nvim": { "branch": "main", "commit": "7e06e5221d8d1e596a0ab29dd4d7fcee5f3cd05a" },
|
||||
"roslyn.nvim": { "branch": "main", "commit": "8c949b1485aea6f56a7acc24c2362517e6002f2b" },
|
||||
"schemastore.nvim": { "branch": "main", "commit": "29e3e76967d32d434836d72380b4acea07bd0f50" },
|
||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
||||
|
||||
@@ -37,6 +37,7 @@ require('lazy').setup({
|
||||
require 'plugins.markdown-preview',
|
||||
require 'plugins.neotest',
|
||||
require 'plugins.markview',
|
||||
require 'plugins.pomo',
|
||||
|
||||
-- TODO: Move these next
|
||||
require 'kickstart.plugins.debug',
|
||||
|
||||
@@ -18,10 +18,10 @@ return {
|
||||
end,
|
||||
keys = {
|
||||
{
|
||||
'<leader>cp',
|
||||
'<leader>mb',
|
||||
ft = 'markdown',
|
||||
'<cmd>MarkdownPreviewToggle<cr>',
|
||||
desc = 'Markdown Preview',
|
||||
desc = 'Markdown [B]rowser Render',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
-- Paths for working with vue
|
||||
local vue_typescript_plugin_path = vim.fs.normalize '~/node_modules/@vue/typescript-plugin'
|
||||
local vue_language_server_path = vim.fs.normalize(vim.fn.stdpath 'data' .. '/mason/packages/vue-language-server/node_modules/@vue/language-server')
|
||||
|
||||
return {
|
||||
{
|
||||
-- Main LSP Configuration
|
||||
@@ -158,30 +162,6 @@ return {
|
||||
}
|
||||
|
||||
local servers = {
|
||||
--ts_ls = {
|
||||
-- init_options = {
|
||||
-- hostInfo = 'neovim',
|
||||
-- plugins = {
|
||||
-- {
|
||||
-- name = '@vue/typescript-plugin',
|
||||
-- --location = '', -- use local node_modules path
|
||||
-- location = vue_typescript_plugin_path,
|
||||
-- languages = { 'vue', 'javascript', 'typescript' },
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- filetypes = { 'javascript', 'javascriptreact', 'javascript.jsx', 'typescript', 'typescriptreact', 'typescript.tsx', 'vue' },
|
||||
--},
|
||||
-- Volar is deprecated in favor of vue_ls
|
||||
--volar = {
|
||||
-- filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
-- init_options = {
|
||||
-- vue = {
|
||||
-- -- disable hybrid mode
|
||||
-- hybridMode = true,
|
||||
-- },
|
||||
-- },
|
||||
--}, -- hybrid mode is default
|
||||
vue_ls = {},
|
||||
vtsls = {
|
||||
filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' },
|
||||
@@ -212,19 +192,6 @@ return {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
-- on_attach = function(client, bufnr)
|
||||
-- client.server_capabilities.documentFormattingProvider = true
|
||||
-- if client.server_capabilities.documentFormattingProvider then
|
||||
-- local au_lsp = vim.api.nvim_create_augroup('eslint_lsp', { clear = true })
|
||||
-- vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
-- pattern = '*',
|
||||
-- callback = function()
|
||||
-- vim.lsp.buf.format { async = true }
|
||||
-- end,
|
||||
-- group = au_lsp,
|
||||
-- })
|
||||
-- end
|
||||
-- end,
|
||||
},
|
||||
html = {},
|
||||
cssls = {},
|
||||
|
||||
21
AppData/Local/nvim/lua/plugins/pomo.lua
Normal file
21
AppData/Local/nvim/lua/plugins/pomo.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
vim.api.nvim_set_keymap('n', '<leader>Tw', '<cmd>TimerStart 25m Work<cr>', { desc = '⏲️ Start 25m [w]ork timer' })
|
||||
vim.api.nvim_set_keymap('n', '<leader>Tb', '<cmd>TimerStart 5m Break<cr>', { desc = '⏲️ Start 5m [b]reak time' })
|
||||
vim.api.nvim_set_keymap('n', '<leader>TB', '<cmd>TimerStart 10m Break<cr>', { desc = '⏲️ Start 10m [B]reak time' })
|
||||
vim.api.nvim_set_keymap('n', '<leader>Ts', '<cmd>TimerStop<cr>', { desc = '⏲️ [s]top timer' })
|
||||
|
||||
return {
|
||||
{
|
||||
'epwalsh/pomo.nvim', -- https://github.com/epwalsh/pomo.nvim
|
||||
version = '*', -- Recommended, use latest release instead of latest commit
|
||||
lazy = true,
|
||||
cmd = { 'TimerStart', 'TimerRepeat', 'TimerSession' },
|
||||
dependencies = {
|
||||
-- Optional, but highly recommended if you want to use the "Default" timer
|
||||
'rcarriga/nvim-notify',
|
||||
},
|
||||
opts = {},
|
||||
config = function(_, opts)
|
||||
require('pomo').setup(opts)
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -47,6 +47,7 @@ return {
|
||||
spec = {
|
||||
{ '<leader>s', group = '[S]earch' },
|
||||
{ '<leader>t', group = '[T]oggle' },
|
||||
{ '<leader>T', group = '[T]ools' },
|
||||
{ '<leader>h', group = 'Git [H]unk', mode = { 'n', 'v' } },
|
||||
{ '<leader>m', group = '[M]arkdown' },
|
||||
{ '<leader>r', group = '[R]eload' },
|
||||
|
||||
Reference in New Issue
Block a user